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

08 Jul 2009   #50
spydaz

Windows 7 64-bit 7600 OEM
 
 

Quote   Quote: Originally Posted by wivelden View Post
Right..I installed Windows 7 into a VHD and it boots to it fine. What I would like to know is if I can move the VHD file to an external USB drive and boot to it. The idea is that if my internal drive goes out I could still boot to the VHD. Now I know there isnt a bootmgr in the VHD so how can I set one up on say a USB Flash drive and point it to the VHD on a partition on my external USB drive?

I already have the partition setup on the external drive as a 20GB partition and have copied the VHD file to it..I would just like to know how to get it to boot to it. Thanks in advance..

There IS a way, With the Windows PE 3.0 for windows 7 automated installation kit. to Run a PE Environment from a USB KEY, by editing the BCD configuration data. Technically the same could be done from a .Wim / VHD but the computer loading the KEy would have to have the equivelent RAM to host the whole os in ram... unless the bcd data on the host machine pointed to the usb key as a menu item, but if the key was not inserted then that os would not load..... ITS PoSSiBLE, i will check it out!


My System SpecsSystem Spec
.
22 Jul 2009   #51
mukul

Vista Home Premium 32-bit/ Win7 RC/ Debian Lenny
 
 
How to Uninstall ??

Hi,

How can I delete the installed Win7 from my system? I cannot upgrade it to the latest released version . It says "vhd installation cannot be upgraded".
Also, how to restore vista boot manager to its original state after deleting Win7 from my dual boot system?

I followed this guide and got Win7 working.

Regards
Mukul
My System SpecsSystem Spec
22 Jul 2009   #52
garysgold

Vista Ult 64 bit Seven Ult RTM x64
 
 

Delete the vhd, and then type msconfig into the start menu search bar and hit enter. On the boot tab select the entry for the vhd and delete that also.
My System SpecsSystem Spec
22 Jul 2009   #53
spydaz

Windows 7 64-bit 7600 OEM
 
 

Quote   Quote: Originally Posted by mukul View Post
Hi,

How can I delete the installed Win7 from my system? I cannot upgrade it to the latest released version . It says "vhd installation cannot be upgraded".
Also, how to restore vista boot manager to its original state after deleting Win7 from my dual boot system?

I followed this guide and got Win7 working.

Regards
Mukul
To delete the vhd Use Admistrator CMD PROMPT:
BCDEDIT /DELETE {GUID}

The guid must be the guid that referes to the vhd installation.
This will delete the entry in the bcd edit file.
This will enable you to delete the old VHD File.

Now that your Boot Partition HAS BEEN UPRGADED. You should still be able to boot the previous windows vista... BUT IF WANT THE OLDER BOOTLOADER.....
then you would have to use the original startup vista installation disk. when booted into the setup, you would have to delete the system partition where the Win7 Bootloader IS..IN THE DISK MANAGEMENT PART OF THE SETUP.
Then X off the corner of the screen Bringing you back tho the INSTALL NOW SCREEN.
GOTO REPAIR MY COMPUTER.....
Here the repair will efectively put the bootloader BACK into the Original Vista Partition....Restart It should be working....

IF THIS DOES NOT WORK.. You will have to do an Upgrade install on the old vista installation, fixing the problem after the bootloader partition from the windows 7 has been deleted.

If this Fails: Quickly do a default install of the win7, get back the bootloader.... Instal WIndows AIK... Capture the VISTA INSTALLATION TO EXTERNAL HARD DRIVE... Format hardrive and Install basic vista, and apply old image.

LOL.

Hopefully that should give you some direction...
I have had many a simular situation.....
My System SpecsSystem Spec
.

22 Jul 2009   #54
spydaz

Windows 7 64-bit 7600 OEM
 
 

or even just delete the vhd, Create a new one with ImageX /apply install.wim [image] SAMENAME.VHD.
to set up a sysprep new install of win7 and replace with old VHD...
Because THe New Functionalty of the win7 Bootloader should be KEPT.
AS A VERY USEFULL TOOL even if you dont upgrade, you can still attatch VHDS..... You can always Make a WindowsPE environment for any BCDWORK. or VHD / IMAGE WORK... IE: HyperV / Win2k8 , as a guy who loves reinstalling and multi boot stuff... Best boot loader yet...
Still comming to grips with all the different type of CONFIGS(loads which are not public yet) there are loads of guide on the common stuff....
But MY QUESTION IS, HOW DO I INSTALL THE MAC OS< ONTO MY PC NOT VMWARE... HOW WOULD I CONFIGURE THE BOOTLOADER... & FOR DUAL BOOT LINUX.....
My System SpecsSystem Spec
22 Jul 2009   #55
spydaz

Windows 7 64-bit 7600 OEM
 
 

Quote   Quote: Originally Posted by spydaz View Post
There IS a way, With the Windows PE 3.0 for windows 7 automated installation kit. to Run a PE Environment from a USB KEY, by editing the BCD configuration data. Technically the same could be done from a .Wim / VHD but the computer loading the KEy would have to have the equivelent RAM to host the whole os in ram... unless the bcd data on the host machine pointed to the usb key as a menu item, but if the key was not inserted then that os would not load..... ITS PoSSiBLE, i will check it out!

YEP YOU CAN : BUT YOU NEED A 25GIG KEY CORSAIR, THE KEY needs be formatted ntfs.
you also need to use the admin command prompt:

Goto the boot folder on the win7 disk: Use the command BOOTSECT NT60 [usbDrive]:
This will make it bootable. "Giving the USB A GUID"
When the installtion of windows, or PE env, or Windows install disk, IT WILL NOW BOOT FROM USB AS HDD
My System SpecsSystem Spec
22 Jul 2009   #56
darkassain

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 spydaz View Post
But MY QUESTION IS, HOW DO I INSTALL THE MAC OS< ONTO MY PC NOT VMWARE... HOW WOULD I CONFIGURE THE BOOTLOADER... & FOR DUAL BOOT LINUX.....
i did it the old boot.ini way (there are numerous tutorials on how to do it in vista...)
the same tutorial applies in 7 too..
My System SpecsSystem Spec
22 Jul 2009   #57
spydaz

Windows 7 64-bit 7600 OEM
 
 

I will look up this way and check back...
My System SpecsSystem Spec
25 Jul 2009   #58
spydaz

Windows 7 64-bit 7600 OEM
 
 

Quote   Quote: Originally Posted by Brink View Post
Wivelden,

Sorry, but Windows 7 cannot be installed or booted from an removable drive. It can only be done from an internal drive.

OK HERE IT GOES . LOLOLOOLOLOLOLOL VERY HAPPY

Firstly,
SET UP THE USB KEY/HDD DEVICE With The Windows PE 3.0 (Win7)
Then Either Boot up into the PE Environment Or Windows 7 Environment
Open evelated as Adminstrator CMD PROMPT

Here i setup my variables ---- I keep all little scripts in text files as REUSABLE CODE ----

set drive=I: /// enter drive where vhd is stored
set VHD=\Win7_RC1x64.vhd /// enter vhd file name
set description="VHD BOOT"

bcdedit /store i:\boot\bcd /enum
bcdedit /store i:\boot\bcd /copy {default} /d %description%
Bcdedit /store i:\boot\BCD /set <GUID> device = vhd=[%drive%]%VHD%
Bcdedit /store i:\boot\BCD /set <GUID> osdevice = vhd=[%drive%]%VHD%
Bcdedit /store i:\boot\BCD /set <GUID> detecthal yes

syntax used:

BCDEDIT /STORE <DRIVE><PATH OF STORE> /Other normal bcdedit cmds

With this you can have a dual boot USB device If you just want the VHD BOOT then just delete the entry.

bcdedit /store i:\boot\bcd /delete {GUID} <<< old PE:

and delete the relevent <old PE stuff>

REMEMBER TO KEEP \BOOT <<<<< This is where the BCD files are <<<

>>>> Thanks for the journey <<<
I had been wondering how to do this then after some carefull thought...
IF you can boot PE / Windows Install IT MUST BE POSSIBLE! Only constraint is the size of the key must be able to HOUSE the VHD...

Im not sure if microsoft want you to boot off a usb key... But If its possible YOU CAN....

PS: Ive watched all of microsofts videos too. They say that it cant be done!!!!!! <Reverse psycology> LOL.... they dont want you to do it....

Really this wuld only boot your own pc. as the vhd will be driver specific, Unless you was using a SYSPREPED VHD.... which once booted will work anywhere, lol. In its syspreped state the vhd file is only avge 8gig, but fully installed it will expand to 25 gig.... So Size constraints exist for usb key devices... but as for usb harddrives YES... No problems... then you could have multiple installs / vhds....

QUESTION : CAN Linux be installed to a vhd ? <<< Can it be syspreped <<<< can a linux live disk be copied to vhd ? <<<<
I Know that you can definatly tripple boot from the usb hdd / key >>> TODAY ive amazed myself>>>>>
My System SpecsSystem Spec
29 Jul 2009   #59
boredwin7tester

Windows XP, Vista, Damn Small Linux, PendriveLinux
 
 
Windows XP?

Will this process work if the original operating system before creating the VHD is windows xp?

another Windows 7 tester
My System SpecsSystem Spec
Reply

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




Thread Tools




Similar help and support threads
Thread Forum
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...
Tutorials
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
Virtualization
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 00:00.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App