If you are a Windows 7 user and you want to test Windows 8, this is a great way to accomplish that. Using a VHD to dual-boot will be as if the OS was installed directly in a partition or in a different hard drive in your computer, but without having the need of risking the current Windows 7 installation or repartitioning the hard drive, and there is not boot loader to configure. At the start-up you’ll be able to choose which operating system you want to boot, then to switch back you would just need to reboot and select the OS you want to use next.

Downloading Windows 8 and creating a bootable media

If you haven’t done it yet, here are the links to download all the versions of Windows 8 Developer Preview, and here is how to create a bootable USB drive or bootable DVD for Windows 8.

Creating a VHD (Virtual Hard Drive) using the Command Prompt

Once you are done creating a bootable media, follow the steps below to create a VHD to install Windows 8, using the Command Prompt from the Windows install wizard.

  1. Insert the bootable Windows 8 media in the computer running Windows 7 and reboot. 

  2. Click Next at the beginning of the wizard and then press Shift+F10 to bring the Command Prompt.

  3. Type the following command to start Diskpart, which is a utility that enables enhance storage configuration and can be used to create a new VHD:

  4. Next, you need to see a list of all the current attached disks in your system, use the following command to do this:

  5. Now, select the disk where you want to create the new Virtual Hard Disk with this command:

  6. To continue with the next step, you’ll need to know the drive letter of the disk you are about to create the VHD, so type the next command:

  7. The following command will create a Dynamic VHD that can grow up to 30GB in the hard drive you have selected (e.g., Windows 7 root drive or different hard drive). In the case your hard drive’s free space is less than, let say, 30GB then be sure you use a smaller number, but you need to have at least 20GB of available space in the hard drive to install Windows 8 Developer Preview:

  8. Select the Virtual Hard Disk with the following command:

  9. Next, mount the VHD that way it become available to the Windows installer:

  10. To finish with this operation type:

OK, so far you started Diskpart, list all the disks in your system and selected the disk where you want to install Windows 8, then you listed all the volume to identify the drive letter of the disk that is going to house the new operating system, and created, selected and attached the new Virtual Hard Disk to make it available to the Windows installer. Next to dual-boot Windows 8 with Windows 7, it is just the matter of installing the OS in this new VHD.

Installing Windows 8 on a VHD (Dual-boot with Windows 7)

  1. Once you have exited the Command Prompt and you are at the Windows install wizard, click Install Now to continue, accept the license, click Next and the choose Custom (advanced).
  2. In “Where do you want to install Windows?”, select the Virtual Hard Disk that you just created, the disk should have a part of the label that reads: “Unallocated Space”. The disk number will be different depending on your configuration.

Oh, and don’t worry on the bottom where it says “Windows cannot be installed to this disk.”, just click Next and the installation will begin. After the installation has completed the Windows 8 boot loader will run and it will ask you Choose an operating system. There you will be able to choose either to start Windows 7 or the new Windows 8. Also during the install, the boot loader will only appear for 3 second, after that you’ll have a good 30 seconds to choose which operating system to start, before starting the first operating system on the list, in which case will be Windows 8.

  1. When you select to start Windows 8 for the first time, you’ll go through the Personalize, Settings, and creating a local user account to complete the installation.

That’s it, now you can test Windows 8 without modifying the Windows 7 installation, and you are even able to access the Windows 7 partition by just using the Windows Explorer, which you’ll noticed that it will appear with a different drive letter, i.e., D:. Enjoy testing Windows 8 Developer Preview! All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.