image.png

Recovering from BCD error 0xC000000D with BitLocker and Hyper-V

I recently had a nasty issue with my seriously awesome laptop (Lenovo ThinkPad P50 with a Samsung 950 Pro NVMe n.2 SSD).  After a full shutdown (hold Shift when shutting down Windows 10) on the next power on I got a BitLocker recovery prompt.

That’s happened before, so I just powered off and back on like I’ve always done.  However, this time I was greeted with a foreboding BCD error:

image

I pulled out my handy-dandy USB drive that just happened to still be configured as boot media for Windows 10 v1511 and used the F12 boot selection to boot to it.  When prompted to install Windows, instead I typed Shift+F10 to get a command prompt.

I ran the following commands to confirm that the SSD did still exist.

All seemed fine there.

Time to rebuild the BCD… so I ran the following to scan for the instance of Windows

Hmm… no Windows OS found.  Ah, BitLocker is enabled.  Of course BootRec can find anything.  Let’s unlock the drive with the following commands:

Great!  Let’s try BootRec again:

Time to see if it worked… reboot… success!  Windows loaded right up.  Awesome, I’m back in business.

I decided to suspend BitLocker on my Windows partition for now just to be safe.  I’ll re-enable it after I’m sure everything is working.

Now let’s get back to work… booting up my ConfigMgr lab…

Doh!  The VM guest failed to start because the hypervisor is not running.

image

Checking Services confirmed that the HV Host Service was stopped but still set to Automatic.  Attempting to start the service threw another error:

image

That’s right… I destroyed the Hypervisor configuration in BCD.  Let’s go fix that:

P.S.  PowerShell doesn’t like the ‘{current}’ syntax so I used a standard Administrative Command Prompt

BCD configuration before and after the change:

image image

The home stretch…

Reboot again and Hyper-V is now running my VM lab!  Whew.  That’s wasn’t much fun!

 

Thanks to a few blogs and forum posts that helped out a ton.

http://www.sevenforums.com/hardware-devices/82226-boot-bcd-0xc000000d-unreadable-boot-configuration-data.html

https://blogs.msdn.microsoft.com/virtual_pc_guy/2010/01/19/hyper-v-virtual-machines-do-not-start-after-using-startup-repair/

http://blogs.interfacett.com/enabling-hypervisor-auto-start-boot-configuration-database-bcd

http://superuser.com/questions/858259/hyper-v-reports-that-the-hypervisor-is-not-running-how-to-start-the-hypervisor

Tags:

Leave a Reply