Installing to VHD

To deploy the Windows 10 image to the VHD disk, complete the following steps:

  1. Press Windows key + X to display the administrator's menu (known also as the secret Start menu), as shown in Figure 2.2:
Figure 2.2 Administrator's menu (a secret Start menu)
  1. Select Disk Management.
  2. Right-click on the volume that has the most free space, and select Shrink Volume.
  3. In the Enter the amount of space to shrink in MB textbox, enter the value 30000, and click Shrink.
  4. Right-click on the unallocated volume and select New Simple Volume.
  5. Complete the New Simple Volume Wizard by clicking a few times on Next, and finally Finish.

 

  1. Your newly created volume (named BootFromVHD) is shown in Figure 2.3:
Figure 2.3 New volume created using Disk Management
  1. Make sure to extract the Windows 10 ISO file to an accessible folder anywhere in your computer.
  2. Press Windows key + X to display the administrator's menu, and select Windows PowerShell (Admin).

 

  1. Enter DISM /Apply-Image /ImageFile:C:\Windows10\sources\install.wim /Index:1 /ApplyDir:E:\ to apply the Windows 10 image to the VHD disk (define the path according to your scenario; mine is C:\Windows10\sources\install.wim), as shown in Figure 2.4:
Figure 2.4 Applying the Windows 10 image to the VHD disk