-
Insert the Windows 8 media and restart your computer.
-
At the first setup screen, press Shift+F10 to open a command prompt.
-
From the x:\sources directory, type Diskpart at the command line and press Enter to launch DiskPart.
-
Type List Disk at the DiskPart prompt and note the available disks in the system.
-
Type select disk # where # is the number of the disk.
-
With the disk selected, enter List Volume at the command line and press Enter.
This displays the volumes available and the drive letters associated with them. You will need this in the next step when creating a new VHD.
-
Type select volume #, where # is the number of the volume being selected, at the command line, and press Enter.
-
Type the following command:
Create VDisk file=x:\vhd\windows8.vhd maximum=<size in MB> type=<expandable |
fixed>
where x:\ is the drive letter of the volume selected in the previous step and the vhd type is specified as expandable or fixed. The maximum
value should be the maximum exposed size of the VHD in MB. If you
choose a type of fixed for the VHD, you will need to specify the
size=xx option rather than the maximum=xx option to designate the size
of the disk file.
-
After the VHD file is created, locate the VHD and its information by typing List Vdisk at the DiskPart command line and pressing Enter.
-
Select the VHD by typing Select vdisk file=“<path to vhd>” and pressing Enter.
The path to the VHD is displayed by the List Vdisk command.
-
To attach the selected VHD so that Windows can use it as a target disk, type attach vdisk at the command line and press Enter.
-
Exit the DiskPart utility by typing exit on the command line.
-
Exit the command prompt by typing exit again and pressing Enter.
-
Now that the VHD is attached to the computer, select the language,
keyboard, and time and currency settings and tap or click Next.
-
Tap or click Install Now.
-
Enter the product key for Windows 8 and tap or click Next.
-
Select I Accept on the End User License Agreement and tap or click Next.
-
On the Where Do You Want To Install Windows page of the Windows
Setup Wizard, select the new disk as the installation location for
Windows.