3
5
I have a virtual machine running Windows 2008 R2 x64 as guest, and Hyper-V R2 x64 as host.
I have cloned the vhd file of the virtual machine, and now, I want to boot from it directly on my laptop computer, which a Windows 7 Enterprise X64 SP1 (with hardware virtualization).
For that, I've set up a BCD entry :
bcdedit /copy {current} /d "Boot_From_VHD"
The entry was successfully copied to {1230b942-0833-11e1-abb2-d1169c7203ba}
bcdedit /set {1230b942-0833-11e1-abb2-d1169c7203ba} device vhd=[E:]\vhd\myvhd.vhd
bcdedit /set {1230b942-0833-11e1-abb2-d1169c7203ba} osdevice vhd=[E:]\vhd\myvhd.vhd
bcdedit /set {1230b942-0833-11e1-abb2-d1169c7203ba} detecthal on
Running bcdedit /enum
, I can see my entry :
Windows Boot Loader
-------------------
identifier {1230b942-0833-11e1-abb2-d1169c7203ba}
device vhd=[E:]\vhd\myvhd.vhd
path \Windows\system32\winload.exe
description Boot_From_VHD
locale en-us
inherit {bootloadersettings}
osdevice vhd=[E:]\vhd\myvhd.vhd
systemroot \Windows
resumeobject {1230b940-0833-11e1-abb2-d1169c7203ba}
nx OptIn
detecthal Yes
When I reboot, I can see the entry in the boot menu. If I select the newly created entry, I can see for a few seconds the windows logo, then a BSOD.
This BSOD is not very useful as it's only suggesting to run a chkdsk
. A bunch of 64 bits hexadecimal numbers are also put, but with no error message.
Any idea how to solve the problem ?
PS: I want to keep my system intact except the potential hardware changes. I have not run sysprep /generalize
as it will reset all users, hostname, etc.
What OS is your laptop running? (64-bit?) – TheCompWiz – 2012-01-04T14:48:06.977
Windows 7 x64 Enterprise Service Pack 1 + all updates – Steve B – 2012-01-04T14:52:51.837
Prior to making the .vhd ... did you install the integration tools? – TheCompWiz – 2012-01-04T14:55:09.457
there is no integration tools for W2K8 R2. Everything is in the OS directly. – Steve B – 2012-01-04T14:59:37.707
Honestly, if we could get the BSOD info... we could probably get a better picture as to why it's misbehaving... Usually there's some sort of "STOP" message... with several bits of info... or whatever that can give some insight to what went wrong. If you're not getting a stop message... what is the EXACT message you're getting? – TheCompWiz – 2012-01-04T15:03:14.780
Have you tried safe-mode? – TheCompWiz – 2012-01-04T15:03:39.943
STOP: 0x0000007B, which means inaccessible boot device. – Steve B – 2012-01-04T15:10:28.563
7B = inaccessable boot device. usually this means that the disk drivers aren't installed... What disk emulation mode did you use on the Hyper-V server and on your laptop? (SCSI/IDE/???) – TheCompWiz – 2012-01-04T15:12:47.370
the default choice, IDE – Steve B – 2012-01-04T15:13:46.013
On both? (laptop/server) – TheCompWiz – 2012-01-04T15:15:03.987
@TheCompWiz: not sure to understand... the laptop won't run hyper-v, but will boot to the vhd – Steve B – 2012-01-04T15:15:50.207
Are you using windows 7's built-in "Windows Virtual PC"? or what are you using to start the virtual instance? – TheCompWiz – 2012-01-04T15:17:37.717
I don't virtualise the OS. Just the file system. I boot directly to the vhd – Steve B – 2012-01-04T15:19:54.647
You can't boot from the BIOS directly into a FILE on the local hard drive. The BIOS knows nothing about what a "VHD" is. So, at some point you boot into an OS, and run some flavor of virtual machine. Or are you trying to boot from a VHD written to a physical disk? – TheCompWiz – 2012-01-04T15:22:16.360
1
you can : http://technet.microsoft.com/en-us/windows/dd758779. It's a great new feature of W7
– Steve B – 2012-01-04T15:23:35.530First time I've seen that... kinda interesting. That being said... Install the disk-controller drivers that are used on your laptop... which probably aren't part of the default driver-base for windows 2008r2. – TheCompWiz – 2012-01-04T15:30:31.213
I don't know how to that on an already installed system – Steve B – 2012-01-04T15:33:08.370
On the 2008r2 box (server) ... get the drivers from the manufacturer... right click the .inf and click install. That should be all that is required. – TheCompWiz – 2012-01-04T15:52:15.417