Boot from VHD generates Error 0xc03a0001

So I created a VHDX which contains an installed windows 7 environment.

Booted my windows 8.1 environment, attached the vhdx and added the VHDX environment to my boot.

BCDBOOT F:\WINDOWS

Reboot, choose windows 7 and get this error;

0xc03a0001 -> An unexpected error has occurred.

When I lookup this error, it means "The virtual hard disk is corrupted. The virtual hard disk drive footer is missing."

So I re-created the vhdx and the system on it, but it spawns the same error.

October 29th, 2014 3:03pm

i found this article maybe very useful to investigate your issue

http://reboot.pro/topic/16141-troubleshooting-os-boot-from-vhd/

VHD BOOT TROUBLESHOOTING

VHD boot problems are rare, when following exactly the Tutorials linked in this Post Signature. Most are caused by a corrupted BCD (Boot Configuration Datastore) or missing boot-critical disk & controller drivers, enabling reading the VHD or hard disk where its saved. If they occur, follow the troubleshooting steps for natively supported & unsupported OS boot from VHD:

1) install latest Windows Virtual PC (with 1024Mb+ RAM assigned), attach Win7 VHD to it as IDE disk and try to boot as hard drive. If it doesn't, it may be because of missing or errors in BCD, missing Bootmgr, mismatch of disk Sig, or incorrect partition offset set in BCD, DetectHAL element is Off or missing, missing disk driver, or volume wasn't marked Active. This may occur, since Win7 & ThinPC may lack BCD sample store in their WindowsBoot folder, resulting in wrong BCD structure when using BCDBoot command to add BCD to the new VHD. To fix, use suggested repair sequence. However, if you face 0x7B error during boot from VHD, you may need to add missing disk driver(s) entries to VHD's OS Registry, and add the driver installation packages, so that OS can autoinstall the drivers after boot. Read this and that explanation threads, and use suitable tools, like included with IMG_XP driver utilities and its collection of Registry fixes. Or, once you found missing driver INF packages, attach the VHD, mount its OS Volume to an empty folder and inject the drivers offline with DISM as per Install Unsupported OS to VHD Tutorial. If the VHD boots after that, proceed to step 2.

2) copy that Win7 VHD from HD to a bigger fixed contiguous VHD, add boot environment to the bigger VHD disk with EasyBCD or Visual BCD Editor installed on your system HD, add Win7 boot entry to it, attach the big VHD to Win VPC as IDE disk, try to boot Win7 from VHD natively inside VPC. If it doesn't, fix the big VHD's BCD using the below repair sequence. After it does, proceed to step 3, if you want test booting with Grub4DOS & WinVBlock.

3) add Grub4DOS to the big VHD, fully install WinVBlock to Win7 after booting it natively from VHD or as IDE disk inside VPC, make Win7 VHD contiguous, attach the big VHD to the Win VPC as IDE disk, try to boot Win7 VHD from it via G4D & WinVBlock menu. If errors, try to find matching versions of Grub4DOS & WinVBlock (older G4D may work well with WinVBlock - Feb. 2011, can take from wimb's IMG_XP folder). If Grub4DOS shows "File not found" error on boot, and the file name is correct in its Menu, the problem seems to be in mounting the large VHD disk. You must reboot G4D to continue tests or restore original disk mapping. Make sure to test sign WinVBlock 64-bit, and switch On Test Mode in Win7 64-bit, or use F8 at boot. Should boot... but at times WinVBlock disk may cause OS instability & file access issues after boot.

Boot troubleshooting requires some practice, so easy way to start - native boot VHDs & EasyBCD.

REPAIR BCD STORE WITH VISUAL BCD EDITOR

- Boot Win7 from your host drive, attach the VHD with related to BCD boot problems, when attached to VPC as hard drive
- Make sure OS volume on VHD is marked as Primary & Active, and mount it as V: drive
- Start Visual BCD Editor, open BCD Store from V:BootBCD

1. If there is no BCD Store on the VHD:
- Select Repair Boot Record from Menu, select V: , tick Vista/7&Fix MBR --> OK,
- Select Repair BCD from Menu, BCD Drive V: , Win7 folder V:Windows --> OK
- Exit Visual BCD Editor, detach the VHD and reboot in VPC to check if the errors were fixed

2. If there is BCD Store on the VHD:
- Delete all entries under Loaders section on the Left Pan
- Click Edit Boot-Menu, delete all Boot Entries from the DisplayOrder list
- Proceed to Repair Boot Records, then Repair BCD from Menu
- Reload BCD from the VHD by selecting Open Store again from Menu
- Add any missing OS Loaders in Loaders section on the Left Pan, and rename their entries as you like
- Click on each entry on the Left Pan, and inspect its elements on the Right Pan. Make sure they make sense for the hard drive boot, are similar to a reference VHD's BCD that boots OK (GUIDs may differ), and linked to correct BCD Objects GUIDs
- Click Edit Boot-Menu, and add or edit boot entries list and display order to match Loaders list on the Left Pan
- Exit Visual BCD Editor, detach the VHD and reboot in VPC to check if the errors were fixed


REPAIR BCD STORE WITH EASYBCD

You can use EasyBCD instead of Visual BCD Editor to create or repair a BCD store:
- Install and start EasyBCD
- Select BCD Store on the VHD, using File Menu and open it

1. If there is no BCD Store:
- select BCD Deployment on the Left Pan, click Install MBR, then select partition V: --> Install BCD
- Click Add New Entry --> Windows Vista/7 --> Drive V: --> Add Entry
- Exit EasyBCD, detach the VHD and reboot in VPC to check if the errors were fixed

2. If there is BCD Store:
- select BCD Backup/Repair on the Left Pan, tick Recreate/Repair Boot Files --> Peform Action, then tick Reset BCD Configuration --> Perform Action
- Exit EasyBCD, detach the VHD and reboot in VPC to check if the errors were fixed
- If not, reattach the VHD as V: drive, open Console, run bcdboot v:windows /s v: to recreate BCD manually
- Detach the VHD and reboot in VPC to check if the errors were fixed
- If not, boot from the VHD natively from the host's Boot Menu (if its OS supports native boot from VHD), install EasyBCD and try fixing VHD BCD Store and boot sectors with it, then test boot again
- If it still doesn't boot, and you added all required boot time drivers to OS on the VHD, post the exact boot error and Windows Safe Mode driver load step, when the error occurred, in a new thread asking for help.

sorry for the long copy paste

  • Edited by britishdhez Thursday, October 30, 2014 2:50 AM
Free Windows Admin Tool Kit Click here and download it now
October 30th, 2014 2:50am

Hi,

Based on current information, I recommend you follow these Guides to recreate the VHD boot or Native boot to see if it can works fine:

Windows 7 VHD Boot Setup Guideline
http://blogs.msdn.com/b/knom/archive/2009/04/07/windows-7-vhd-boot-setup-guideline.aspx

or

Boot to VHD (Native Boot): Add a Virtual Hard Disk to the Boot Menu
http://technet.microsoft.com/en-in/library/hh825691.aspx

October 31st, 2014 8:49am

I have exactly the same problem (same error code).

The problem occured to me because I tried to use a VMDX file with GPT. Using a VMD file with MBR did the trick for me!

  • Edited by darky001 20 hours 25 minutes ago
  • Proposed as answer by darky001 20 hours 25 minutes ago
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2015 6:19am

I have exactly the same problem (same error code).

The problem occured to me because I tried to use a VMDX file with GPT. Using a VMD file with MBR did the trick for me!

  • Edited by darky001 Monday, May 11, 2015 10:57 AM
  • Proposed as answer by darky001 Monday, May 11, 2015 10:57 AM
May 11th, 2015 10:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics