VHD Utilities for Windows 7

Windows 7 has the ability to mount and boot to Virtual Hard Disks. Although Windows 7 has such features, they aren’t the easiest to use. I’ve created an application that automates mounting, un-mounting, adding the VHD to the boot screen, and removing the VHD from the boot screen.

There are some caveats, like requiring UAC to be disabled and that you have to create the VHD yourself. I could automate VHD creation, but I didn’t want to make a GUI when Disk Management does a fantastic job.

Some notes, to boot to a VHD you need to have an operating system installed on it. This can easily be done using Virtual PC beta (the Windows 7 version of course).

To mount a VHD, simply double click it. Un-mounting should be done by right clicking the VHD and clicking “Un-mount'”. To add a VHD to the boot screen, right click the VHD and choose “Add to boot menu”. To remove it, right click the mounted drive and choose “Remove from boot menu”.

Update 10/13/2009: Booting from a VHD will only work with Ultimate and Enterprise editions of Windows 7 or Server 2008 R2 installed in the VHD. You cannot boot operating systems other than Windows 7 or Server 2008 R2. There is a new version of VHD Mount available here.

Download

Screen Shots:

Mounted VHD in Explorer VHD File

Context Menu Options

Comments

Into Windows

For some reason, it simply stops working whenever I try to execute it.


Into Windows

Hey, it's working great now. I have also blogged about this tool on http://www.intowindows.com..


unawave

1. I only can boot Windows 7 "Ultimate" from VHD. Of course I can INSTALL e.g. Windows 7 "Professional" in a VHD. But whilst booting first time I get the error message similar: "This version is not allowed booting from a VHD".

2. I can install and boot Windows XP or Vista in a "Virtual PC" environment. But I can not boot this created VHDs native.


Brent Friedman

unawave,

Correct, it's only for Windows 7. However I didn't know that it was only for specific versions.


Brandon Scott

Is there any way of booting XP from VHD then?


Brent Friedman

@Brandon,

Unfortunately, no. At least not yet..


unawave

It would be very interesting to have XP or Vista in a VHD file. Just for giving support to friends via phone or so. I tried to boot a XP VHD file from Virtual PC but get a HAL error (hardware abstractions layer). I tried to replace the "hal.dll" with other version - but no luck. Seems to me that the VHD file is starting but within the VHD file the HAL error appears.


Brent Friedman

@unawave,

Windows XP isn't hardware independent like Vista and 7. There might be a way to boot Windows Vista from a VHD, but I haven't tried or figured it out.


Terry

It worked great for me a few times but now it brings up the menu that asks "Chose the program that you want to open this file" and it does nothing to the multi-boot menu. I can't figure this one out so I had to go back to bcdedit. Perhaps there is a limit to the number of vhd drives that can be listed in the menu. I have 3.


unawave

@Terry:

I don't think there is a limit. I have heard that other have installed 10 VHDs without problems.

Could it be that your boot manager "bootmgr" is replaced with an earlier version from Vista ? Because Vista also uses "bootmgr". But this boot manager doesn't know anything about VHD files. Look for properties and date of "bootmgr".


TDMPRO2K

This doesnt seem to work on X64 RTM versions. Double click it nothing happens. tried on threee machines all do the same. 2 x64 and 1 x86


Brent Friedman

@TDMPRO2K,

Is/was UAC disabled?


TDMPRO2K

UAC disabled


TDMPRO2K

I have tried it with uac non and elevated privs but still nothing.if i drop on the vhd onto the vhdmount.exe then it mounts the image. It doesn't seem to put all the registery keys in so i can use add to boot menu etc via the context menu.


appyface

Brent, unawave is correct. This morning I created VHD of W7 RTN Professional and received the message 'this version doesn't allow booting' when trying to boot with it. I can't find the link again just now, this morning within Microsoft's Technet site I found a page stating the VHD must be W7 Ultimate or W7 Enterprise (corp version of Ultimate). VHD booting of other W7 versions is not supported.


TDMPRO2K

I am running Windows 7 ultimate RTM genuine from the ms action pack. does not longer works with any rtm version as far as i can tell.


Brent Friedman

@TDMPRO2K,

I'll have to take another look at it when I have enough time, thanks.


JohnDoe

Brent, any update on this?

I'd love to mount/unmount my VHDs with a right-click, but on the final version of Win7, it simply doesn't work :(


Brent Friedman

JohnDoe,

Yes, I've fixed it. Just re-download the application. Before running, run this to delete the old information in the registry: reg delete HKCR\VHDMount /va

After deleting the key, place the VHDMount exe in a place where the user has write privileges (keep the same file name). This is because it can now auto-elevate if UAC is enabled, but it needs at least write privs to the folder it is in.

After placing the exe, run it once. Then the context menus will appear when you right click VHDs. Just opening a VHD will mount it, but for other options, right click it.


JohnDoe

That's brilliant!!

Thanks a lot, Brent!


Brent Friedman

JohnDoe,

You're welcome. Though I did just make some modifications, mainly for adding and removing boot entries. It used to log the boot data to a file BCD.dat (so entries could be removed) but that didn't always work the right way. So I was able to workaround that in a more efficient manner that should always work. Just redownload the EXE from the post (should show up as 1.0.2.0 in the File Info) to update.


Big

Hi,

i'm sorry, this seems to be a great tool, but it doesn't work on my 7 rtm :(

nothing happen when I launch the latest version, and nothing in menu when right click a vhd :(

(nothing in registry and no rename, acl ok, uac disable)

help please

thx


Sameer Dhoot

I does not work on my Win 7 RTM Ent. edition. I downloaded this for first time today saved it to the C:\Windows double click no prompt. I open new explorer instance but still could not see the context menu. I also tried after reboot no success. My UAC is disabled. Will enabling it make work?


Brent Friedman

Try running:

reg delete HKCR\.vhd /va

reg delete HKCR\VHDMount /va

Then rerun VHDMount.exe