Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Boot from a VHD using Windows 7



 

Boot from a VHD using Windows 7

Published by dmex
11-20-2008
Default Boot from a VHD using Windows 7

How to Boot VHD`s using Windows 7

information   Information
Windows 7 includes support for creating, mounting and booting from VHD images but not many seem to know how to use this functionality to boot VHDs at boot time... I will detail the steps required to have another OS bootable using Windows 7...

While all Windows 7 editions can create and attach a VHD, only the Windows 7 Ultimate and Enterprise editions support booting from a VHD.


warning   Warning
This only works with Vista and Windows 7 VHD images!

If you do not have a good knowledge of how to reset your VirtualOS configuration like HAL type and driver configuration then your VHD will fail to boot, It must be cleaned of VirtualOS configuration correctly before windows 7 can boot your VHD!!
Step 1: Begin by following this Tutorial to create a VHD: Virtual Hard Disk - Create and Attach VHD


Step 2: Open a elevated command prompt.


Step 3: Copy and Paste this command below and press Enter.
bcdedit /copy {current} /d "VHD_Boot"
If the command succeeds, BCDEdit displays a message similar to the following:


The entry was successfully copied to {CLSID_Number}

Take note of the CLSID number as you will need this during the next step

Step 4: Then type this command below and press Enter.
bcdedit /set {CLSID_Number} osdevice vhd=[C:]\disk1.vhd




Step 5: Thats it, You can now boot VHDs using Windows 7
To confirm the settings simply type bcdedit

If your VHD is configured correctly You can reboot and select the extra boot-option to boot from your VHD
warning   Warning
VirtualPC VHDs can not be used for booting with Windows 7 because VirtualPC uses a Pentium 3 HAL and this prevents them from being used as boot media, You can however use this Tutorial: Virtual Hard Disk - Create and Attach VHD and create then mount a VHD for use with VMWare Workstation....

You simply set VMWare workstation to use a Physical Disk, you can then Install a separate OS onto this mounted VHD for use with Windows 7.

Tip   Tip
You Must reset your VHD VirtualOS configuration like HAL type and driver configuration or your VHD will fail to boot!!! It must be cleaned of VirtualOS configuration correctly before windows 7 can boot your VHD!!

Note   Note
There are still many bugs associated with VHD booting with Windows 7 at this time, I suspect Microsoft will be releasing a new Version of VirtualPC that's able to manage this entire process of creating, installing and booting separate VHDs at boot-time easily and without so many problems





Published by
Expelled
Join Date: Jun 2008
Posts: 1,433
dmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond reputedmex has a reputation beyond repute

Tutorial Tools
11-20-2008   #1
z3r010


Windows 7 Ultimate x64 SP1
 
 


Great work Steve

My System SpecsSystem Spec
11-20-2008   #2
Bare Foot Kid


W 7 64-bit Ultimate
 
 


Hello Steven.

I've been wondering what you were working on for the last day or so. Good Work!

Thank you!













Later Ted
My System SpecsSystem Spec
11-20-2008   #3
Brink


Windows 7 Ultimate x64 SP1
 
 


Very nice Steven.
My System SpecsSystem Spec
.


11-20-2008   #4
garysgold


Vista Ult 64 bit Seven Ult RTM x64
 
 


Good job Steven. Going to have to give that a try. Thanks.

Gary
My System SpecsSystem Spec
11-21-2008   #5
dmex


 


Quote   Quote: Originally Posted by garysgold View Post
Good job Steven. Going to have to give that a try. Thanks.

Gary
Heres another way of creating a bootable VHD..

1. Boot Windows 7 DVD
2. Choose Windows Repair
3. start CMD
4. Run Diskpart
5. Create vdisk file=c:\windows7.vhd maximum=100000
6. select vdisk file=c:\windows7.vhd
7. attach vdisk
8. exit Windows Repair (without Reboot)
9. Install Windows 7 to this surfaced VHD
10. Reboots and boots Windows 7 from VHD

UPDATE

See tutorial here - Virtual Hard Drive VHD File - Create and Start with at Boot
My System SpecsSystem Spec
01-05-2009   #6
kenshen


Windows 7 rtm
 
 

boot from vhd build 7000

Boot from a VHD using Windows 7 sry if this is the wrong thread i follow the guide excatly but no boot menu entry all i get is a error message
My System SpecsSystem Spec
01-05-2009   #7
johngalt


Windows 7 Enterprise x64 SP1 | Windows 8 build 7989
 
 


You *do* have a VHD that you are trying to boot from, right?
My System SpecsSystem Spec
01-05-2009   #8
kenshen


Windows 7 rtm
 
 


yes
My System SpecsSystem Spec
01-12-2009   #9
Yanze


Windows Server 2008 R2
 
 


Quote:
Tip
You Must reset your VHD VirtualOS configuration like HAL type and driver configuration or your VHD will fail to boot!!!
It must be cleaned of VirtualOS configuration correctly before windows 7 can boot your VHD!!
What do you mean by that? How do I reset my VHD VirtualOS configuration?
My System SpecsSystem Spec
Comment

Boot from a VHD using Windows 7 problems?



Tutorial Tools



Similar Threads for: Boot from a VHD using Windows 7
Windows 7 Tutorial Category
Recover Windows 7 boot on dual boot system with GRUB masterboot General Discussion
Unable to boot Windows 7 after unistalling Ubuntu Dual boot Installation & Setup
Solved cannot boot windows 7, boot to black screen with blinking line General Discussion
dual boot windows 7 and vista boot error winload.exe Installation & Setup
Black Magic with WinXP Boot.ini and Windows 7 boot file General Discussion


All times are GMT -5. The time now is 05:06 AM.



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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30