Wednesday, August 5, 2015

Guide to install Windows 8 on a VHD Virtual Hard Disk

Yesterday I posted a blog about installing Windows 8 on a virtual machine. Easy to do, but not exactly what I want. This because i think it's better to create a VHD (Virtual Hard Disk) and use the full resources of your device. Today my second install of Windows 8 takes place, this time on a VHD. The following steps are needed to get it done.

1) Download the Windows 7 USB/DVD download tool and install it on your Windows device. Download
2) Start the Windows 7 USB/DVD download tool and follow the steps. Select the Windows 8 ISO and use a empty USB device (4GB min.)


Select the Windows 8 ISO file on the hard disk
Use an empty USB device for installing Windows 8
Select the empty USB device and start/begin copying
Copy job is done and the USB device is ready to use now!
3) Open Disk Management and create a VHD file with Action > Create VHD. I've selected a dynamically expanding 20GB Virtual Hard Disk.

It's also possible to use DISKPART for that, but I'm just a GUI user. The steps needed for this will be then:
  • DISKPART
  • CREATE VDISK FILE="D:\VHD\Win8.vhd" TYPE=Expandable MAXIMUM=20000
  • SELECT VDISK FILE="D:\VHD\Win8.vhd"
  • ATTACH VDISK
  • CREATE PARTITION PRIMARY (optional)
  • EXIT
Just create a VHD file on your hard disk with enough free space
4) Now it's time to start from the bootable USB device. Choose USB when booting in the BIOS boot order menu. Windows 8 installation is starting then from the USB device!
5) Choose for a Custom installation, dont select an existing partition but just press SHIFT-F10 for a command window. Now choose the following commands:
  • DISKPART
  • SELECT VDISK FILE="D:\VHD\Win8.vhd" (Use List Disk in Diskpart to see what's drive the VHD is on. It's different then usual, so see comments for that one)
  • ATTACH VDISK
  • EXIT
6) Select the Windows installation screen again and press Refresh. That way the new created VHD partition becomes available.
7) Just install Windows 8 on the selected VHD partition, and let the magic happen! It will takes some time..

During installation a few reboots are needed. After that Windows 8 will be started. Select your network connection (wired/wireless) and start working immediately. There are default Apps for Twitter and Facebook available, so there's enough to do and see ;)

After the next restart a boot menu becomes available. When choose Options here, there's the choice between Windows 7 (existing OS) and Windows Developer Preview (a.k.a. Windows 8).

Both Operating Systems can be used by now, no need to use a virtual machine (or something like that) anymore. Just experience the full OS on full screen with all hardware resources available! Mine is running on 1680x1050 and wireless connection. That way Windows 8 will let you experience the true functionality.

Update: This guide can also be used for Windows 8 Consumer Preview. Just remember to write down the product key needed.

Update 1-3-2012: When the 0x000000f error is showed on first boot, and no OS can be started at all, just try the following:
  • Boot from USB to be able to select your Windows (7) OS
  • Remove Windows 8 from boot order with BCDEDIT
  • Disable BitLocker (!)
  • Try again…
Thanks to @micmyh for support on this!

Update 1-6-2012: This guide can also be used for Windows 8 Release Preview. Just remember to write down the product key needed.