Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Virtual Hard Drive VHD File - Create and Start with at Boot

04 Sep 2009   #70

Windows 7
Way more simple

Here is a MUCH MUCH easier and simple way to create the VHD

* You need to download the following 3 files and run the script:
* YOU WILL FIRST NEED the program ImageX.exe Here is a shortcut to get the 32 or
64 bit versions (WITHOUT the need to download the 1 GB Developer's kit iso from
Microsoft and burn it to cd to extract it.)
ImageX 6001.18000 (x86 and x64 for Windows Server 2008 and Vista SP1) Standalone Download » Tip and Trick
* Second, You'll need to download "Wim2vhd.scr"
The Lazy Admin : Create a “Bootable” Windows 7 VHD

* I STRONGLY recommend that you create a folder name VHD and put ImagX.exe,
Wim2Vhd.scr and COPY BcdBoot.exe and BcdEdit.exe (from your \windows\system32
folder) into it - then go to the command prompt in the VHD folder, verify you
have those 4 files and THEN run the script.
As you will find (on that web page) the command line ( you run from the command prompt) is:
cscript wim2vhd.wsf /wim:X:\sources\install.wim /sku:ULTIMATE /vhd:C:\Win7Ultimate.vhd /size:40960 /disktype:Fixed
This command won't work until you change the X to C because install.wim is on
your C: drive by default. Make sure the path to install.wim is correct before
you run the script. Install.wim also on the Windows 7 cd.
NOTE the VHD file size is 40 gb in the example. Windows VHD only needs 7 gb for
Win 7 BUT you need space for installing programs and downloading files, so I
changed mine to 20 gb. The file size can be set to dynamic, rather than fixed...
and it will expand if/when needed HOWEVER, you system will be VERY SLOW when/if
it has to expand the file size. This is not recommended - but keep in mind that
you can not increase the size of a fixed VHD once it has been created.

* Here is the exact command I copied and pasted to the command prompt in my VHD folder:

cscript wim2vhd.wsf /wim:C:\sources\install.wim /sku:ULTIMATE /vhd:C:\vhd\Win7Ultimate.vhd /size:20960 /disktype:Fixed
Note I also put the Win7ultamate.vhd file in the VHD folder rather than the root
drive in the example. This makes it easier to find, backup, and increment.

* When your VHD file is ceated you can finish the process with this handy tool:
VHD Mount for Windows 7 -- adds all VHD related action like Mount, Un-mount,
Boot from VHD images right in your Right Click Context menu. After you run it,
just right click on any VHD image and select "add to boot menu."

That's it...

Now reboot and install windows 7 and reboot back to your Host OS and backup the VHD file....

NOW you can beat your VHD os like a rented mule and when it dies you oly have to copy over the backup and start again.

Oh you can run Msconfig and go to the boot tab to modify the timeout and boot sequence ...etc etc.

My System SpecsSystem Spec
28 Sep 2009   #71

Windows 7 Ultimate x64

Is it possible to install Mac OSX Leopard on a VHD?
My System SpecsSystem Spec
12 Jan 2010   #72


is it possible windows xp or xp mode install with sysprep on vpc's vhd boot from windows 7.

1) install windows 7 on pc
2) install virtual pc on windows 7
3) install windows xp or xp mode on vpc
4) install sysprep on windows xp or xp mode
5) use this vhd boot on windows 7

is it possible :S
My System SpecsSystem Spec
13 Jan 2010   #73

64-bit Windows 10 Pro

Hello Souldcube, and welcome to Seven Forums.

I have not tried it before, but it would be worth a try to see though. You might also see if you can boot from the VHD using this below as well.

Boot from a VHD using Windows 7
My System SpecsSystem Spec

14 Jan 2010   #74

Windows 7 Ult x64(x2), HomePrem x32(x4), Server 08 (+VM), 08 R2 (VM) , SuSe 11.2 (VM), XP 32 (VM)

Quote   Quote: Originally Posted by soulcube View Post
is it possible windows xp or xp mode install with sysprep on vpc's vhd boot from windows 7.

1) install windows 7 on pc
2) install virtual pc on windows 7
3) install windows xp or xp mode on vpc
4) install sysprep on windows xp or xp mode
5) use this vhd boot on windows 7

is it possible :S
if i understand correctly you are trying to boot a XP vhd image correct?
if this is true then no its not currently possible to boot XP from a image...
only Windows 7 (and then only the two higher SKUs (Enterprise and Ult.)....) allow native vhd booting...
someone already tried booting of a vhd xp but he said its not possible...
Vhd Boot
My System SpecsSystem Spec
14 Jan 2010   #75


everyone give to me a link. i visited this links. my head turned. but i could not find a result for my idea.
My System SpecsSystem Spec
14 Jan 2010   #76

64-bit Windows 10 Pro


It doesn't appear to be possible with a XP VHD.
My System SpecsSystem Spec
16 Jan 2010   #77

windows 7 Pro 64

I am trying to install a vLite-created Windows 7 Pro 64 to a VHD.
I want to boot the the VHD to test the vLite version before wiping out all the DELL-created partions and re-installing Win 7
I have followed this tutorial but when I get to the point in the install where I select the partition where I want to install Win7, I have a problem.
If my VHD is unallocated space, it does not show up in the list of partitions.
If I create a simple volume on my VHD, it does show up, but when I try to install to that partition I get the message that Windows cannot be installed to this disk and the NEXT button is inactive and I can go no further with the install.
I tried creating the VHD through the installed Windows 7 OS.
I tried creating the VHD during the Windows 7 install.
I tried installing from a vLite-created version of Win7 on disk.
I tried installing from the OEM DVD that came with my Dell.
I hope someone on this forum has some ideas of how to get this to work.
My System SpecsSystem Spec
16 Jan 2010   #78

64-bit Windows 10 Pro

Hello MNcamper,

I'm not sure if this will work with a slipstreamed vLite Windows 7 DVD or not.

You might see if you can create a ISO file from this DVD using the free program ISODisk, then download and install Windows Virtual PC to create a virtual machine with the ISO file to see if it works this way instead.

Windows Virtual PC - Create Virtual Machine

Hope this helps,
My System SpecsSystem Spec
17 Jan 2010   #79

windows 7 Pro 64

Thanks for the help, Brink.
I tried the IMAGEX solution before trying VIRTUALPC.

I followed the steps I found at
leedesmond’s blog
(scroll down to "How to: boot from VHD...")

This procedure allowed me to run the install procedure for the vLite generated Windows 7 Pro 64 installation. The install aborted with a problem later, so I still have issues with vLite but at least I can get the install to run on a VHD now.
My System SpecsSystem Spec

 Virtual Hard Drive VHD File - Create and Start with at Boot

Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search

Similar help and support threads
Windows 7 Tutorial Category
Fail to start up - Can't boot hard drive - Windows cannot be installed
Hi everyone, recently I bought a new laptop, MSI GP70 which came with Windows 8... I tried it for few weeks and than I decided to downgrade it to Windows 7. So, I did it, everything went well, I was using Windows 7 for couple of weeks, but now I have a problem... Last night I didn't turn it off,...
Installation & Setup
Virtual Hard Disk - Create and Attach VHD
How to Create and Attach a Virtual Hard Disk in Windows 7 A Virtual Hard Disk is a created VHD file on your hard drive that acts as a separate hard drive disk in Computer. This will show you how to create and attach (mount), or only attach (mount) an existing, a VHD in Windows 7. Special...
Boot issues with virtual hard disk. No windows boot manager
Hi, I really need some help here. My system has two drives: 1) SSD (C: drive) where my win7 OS boots from (call this normal_win7) 2) HDD (D: drive) where I keep my data I created a D:\virtual_win7.vhd file and installed win7 on it (for testing purposes) following these instructions: ...
Installation & Setup
Can i boot from a VHD (Virtual Hard Drive)
Hi, i was wondering if it is possible to boot my computer from a vhd and add it to the boot menu. I do not want to dual boot, I am trying to use the vhd like a dual boot. I am running Windows 7 Ultimate x64. Thanks
A Virtual Hard Drive? Two separate hard drives now run Win 7 x64
While looking into another possible problem with a hard drive on my system,I began unplugging the devices (there are four of them) to isolate the problem and in doing so, I I seriously corrupted C drive, and began getting 0x7b BSOD messages. First I tried to do a System Repair with the Repair...
Backup and Restore
WEI fails (cannot write file to hard drive) Boot drive set to B:\
I had a regular install of Windows 7 on a WD 1 TB drive with the usual C:\ as the boot drive. I just got a new SSD, so I set up a parallel or dual boot of Windows 7 on the SSD which is set up as the B: drive. So when I boot into the Windows on the SSD (B:\) and run the WEI, it fails because...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 15:59.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App