[Update: I have verified this procedure to also work with Windows 8 Consumer Preview]
Back in September I wrote a quick guide explaining how to boot from VHD from Windows 8 Developer Preview. This turned out to be a very popular blog that attracted thousands of viewers.
Today we can expect Windows 8 Consumer Preview and although I have not yet been able to test the procedure with this build, I am pretty confident that the following guide will work as well. As soon as I have the ISO I will proof these steps and change my blog if necessary.
INTRODUCTION
The four steps are:
- Prepare VHD
- Locate install.wim image
- Apply Windows *.wim image to VHD
- Configure VHD for native boot
From an administrator command prompt in Windows 7 or Windows Server 2008 R2 (SP1):
- Create directory [drive]:VHD
- Mount Windows 8 ISO
- Copy sourcesinstall.wim from ISO to [drive]:VHD
- Download Install-WindowsImage.ps1 PowerShell script and copy to [drive]:VHD
Create VHD
- > diskpart
- > create vdisk file=”[drive]:vhdwin8beta.vhd” maximum=40000 type=FIXED
- > select vdisk file=”[drive]:vhdwin8beta.vhd”
- > attach vdisk
- > create partition primary
- > assign letter=W #can be any free drive letter; cancel popup to format this disk
- > format quick fs=ntfs label=WIN8BETA
- > exit
LOCATE INSTALL.WIM IMAGE
- Check that install.wim and the PowerShell script are in the [drive]:vhd directory
APPLY WIM IMAGE TO VHD
- > cd [drive]:vhd
- > Powershell
- PS> set-ExecutionPolicy Unrestricted
- PS> .Install-WindowsImage.ps1 –WIM [drive]:vhdinstall.wim
- PS> [R}un once
You know see there is one or more images:
[image not preserved in the archive]
- PS> .Install-WindowsImage.ps1 –WIM [drive]:vhdinstall.wim –Apply –Index 1 –Destination W:
- PS> [R}un once
This may take up to 15 minutes. [image not preserved in the archive]
CONFIGURE VHD FOR NATIVE BOOT
- > bcdboot w:windows
You can now check the boot entries with
- > bcdedit /v
If you want this installation of Windows 8 to also support Hyper-V, add the following entry to your boot configuration
- Find the GUID of the Windows 8 boot part which is between { }
- Make a copy of your boot file with
- > bcdedit /export “tempbcdbackup”
- Add hypervisor entry
- > bcdedit /set {ee73a92b-c385-11e0-a663-be9bd6f43bf9} hypervisorlaunchtype auto
(Use the identifier that bcdboot has created on your computer)
After you reboot, the sysprepped Windows 8 Consumer Preview will start and you can configure your Windows 8 server or client.
With the new Windows 8 graphical bootloader you can change the boot order (amongst other things).
[image not preserved in the archive]
Well, good luck and let me know if it has been successful. If you find any mistakes, also let me know!
A few retweets might help [image not preserved in the archive]