Tuesday, November 25, 2014

Booting From VHD Windows 7 Stop Error 0x0000007B


I have created a a boot entry with EasyBCD 2.2, and I used a VHD that is on my C: partition. The VHD is Windows 7 Pro x86. Then I went to the edit boot menu to check that it was showing, and I hit save settings. I reboot my machine (my host machine is an Alienware 17 loaded with Windows 8 Pro x64, 16 GB Ram, Disk 1 is SSD 256 GB, Disk 2 HHD 750 GB) I found the boot option for Windows 7 and I selected it.


After that the Windows start up screen shows up, just for a sec, then throws the stop error: 0x0000007B


I looked up the stop error. It says it is about the hard drive controller. However the VHD boots just fine in my host machine. What I mean that it boots just fine is, I can open hyper-v on my Win 8 host, and connect to the VHD of Win 7 and run it just fine.


I have tried this link here:
0x0000007b vista harddrive swap


My Disk Drive Conntrolor is in AHCI Mode, I checked in BIOS.


I tired this link here:


Booting a Windows 7 installation on different hardware


I tried to do a repair with the disc, and sysprep, I am still having the same error when I try to boot to the VHD.


Boot Info Here:


There are a total of 3 entries listed in the bootloader.


Default: Windows 8.1
Timeout: 6 seconds
EasyBCD Boot Device: C:\


Entry #1
Name: Windows 8.1
BCD ID: {current}
Drive: C:\
Bootloader Path: \Windows\system32\winload.exe


Entry #2
Name: Ubuntu 13.10
BCD ID: {3769cc0b-9327-11e3-82b4-240a646decc5}
Device: [C:]\Users\natem\Documents\Virtual Machines\Ubuntu 13.4\Ubuntu 13.10 64-bit.vhd
Bootloader Path: \Windows\system32\winload.exe


Entry #3
Name: Win 7
BCD ID: {b922c6db-9330-11e3-82b9-f01faf470405}
Device: [C:]\Users\natem\Documents\Virtual Machines\Windows 7 Pro 32.vhd
Bootloader Path: \Windows\system32\winload.exe


Answer



Use this to inject the correct AHCI driver.


diskpart
and use the ATTACH command to mount the VHD file location.


select vdisk file=m:\test.vhdx


attach vdisk


select partition 1


assign letter = R:


DISM.exe /Image:R:\ /Add-Driver /Driver:d:\Drivers\ /Recurse


Obviously change d:\Drivers to match the path where the AHCI drivers are located.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...