Powered by System Center
How to Boot from VHD with Windows 8 Developer Preview
I received a tweet from Jeffery Hicks that many of you want to know how I did the boot from VHD with Windows (Server/Client 8. Here we go!
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 \sources\install.wim from ISO to [drive]:\VHD
- Download Install-WindowsImage.ps1 PowerShell script and copy to [drive]:\VHD
Create VHD
- > diskpart
- > create vdisk file=”[drive]:\vhd\winsrv8devprev.vhd” maximum=40000 type=FIXED
- > select vdisk file=”[drive]:\vhd\winsrv8devprev.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=WINSRV8DEVPREV
- > 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]:\vhd\install.wim
- PS> [R}un once
You know see there is one or more images:
- PS> .\Install-WindowsImage.ps1 –WIM [drive]:\vhd\install.wim –Apply –Index 1 –Destination W:
- PS> [R}un once
This may take up to 15 minutes. With a fast SDD this is much shorter
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 “\temp\bcdbackup”
- Add hypervisor entry
- > bcdedit /set {ee73a92b-c385-11e0-a663-be9bd6f43bf9} hypervisorlaunchtype auto
After you reboot, the sysprepped Windows 8 Developers Preview will start and you can configure your Windows 8 server or client.
Don’t panic if you don’t see a boot choice when you start your computer. The boot choice is moved to the Windows 8 Boot Loader Screen which looks very pretty.
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 ![]()
| Print article | This entry was posted by Hans Vredevoort on September 15, 2011 at 10:08, and is filed under Hans Vredevoort, Hyper-v. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
- Install steps Windows 8 Server as VM » Jack's Server blog
- BCDEdit Command-Line Options | Tech Tips
- How to Boot from VHD with Windows 8 Developer Preview | Hyper-v.nu | Tech Tips
- How to Boot from VHD with Windows 8 Developer Preview | Hyper-v.nu « t3ch
- Windows 8 developer preview, De installatie « berryvermeulen
- How to Boot from a VHD in Windows Server 2012 / Windows 8 | ScorpioTek’s Blog









Twitter
RSS
about 1 year ago
If you use bitlocker (like me) this = no go!
about 1 year ago
VHD is not attached at boot time and the boot loader sees no fles to load, so dual boot fails. I am using windows 7 Enterprise and created the vhd in a folder on drive C. Seems it can only work with HyperV. Any suggestions?
about 1 year ago
quotes are needed around your GUID
about 1 year ago
Have you done the bcdboot [drive]\windows ?
I have worked with Boot from VHD with Windows 7 Enteprise for several years no without an issue.
As Sander said Bitlocker should be disabled
Regards, Hans
about 1 year ago
Worked great for me for:
- a VHD in Win7 (no HyperV needed)
- a 2011 MacBook Pro
- installing the Win8 Preview w/ Developer Tools
Only tip if you do the same, make sure to have the Mac’s disks ready to reinstall the Mac BootCamp-specific wireless and keyboard drivers afterwards since Win8 doesn’t support them out of the box – but they definitely work with a Win7-compatibility install.
Thanks – exactly what I wanted to do.
about 1 year ago
Its working fine..in my windows7 home basic laptop …
Thanks a lot…
about 1 year ago
Hey, just wanted to say thanks for this. It was exactly what I was looking for, no nonsense just straight to the point 1,2,3.
Also a quick note for other readers: Don’t forget native VHD boot is only supported in Win7 Ultimate or WinServer 2008 R2.
about 1 year ago
As well as Windows 7 Enterprise
about 1 year ago
Many thanks!!!
I was having many problems installing Win8 on a UEFI system since it does not recognize NTFS USB sticks and Win8DevPreviewWithTools cannot be stored on a FAT USB since it has a file >4GB.
This saved my day!