Problem booting Windows 2012R2 VM on Windows 2025 Hyper-V

Stefan Cuypers 100 Reputation points
2025-07-20T05:33:22.69+00:00

We're having a problem with a Windows Server 2025 Hyper-V cluster.

We have 2 identical clusters (same hardware, same BIOS version) and when we move a Windows 2012R2 VM from one cluster to another it does not boot any more (tested with 2 different VM's).

The error is a blue screen 0x7B (INACCESSIBLE_BOOT_DEVICE).

If we move the machine back to the other cluster it boots just fine.

Only difference I see is the cluster path level. The working cluster is an older Windows Update (KB5058411, KB5058523 and KB5054979).

Whereas the newer cluster has KB5063666, KB5062553, KB5056579 and KB5059502. It tried installing KB5064489 also, but that does not help.

A VM with Windows server 2022 of 2025 does move fine, so it seems to be linked to 2012R2.

I also tried to install a brand new 2012R2 VM from the original iso and then completely upgrading it with Windows Update and that machine is working fine. It seems to have the same verson of storage drivers as the non working VM.

The faulting VM does boot succesfully into recovery mode. I tried bootrec /fixmbr and bootrec /fixboot, but that does not help.

Windows for business | Windows Server | Storage high availability | Virtualization and Hyper-V

Answer accepted by question author
Vladimir Shebaldenkov 145 Reputation points
2025-11-08T21:48:11.8233333+00:00

I compared the registry of a VM that boots with one that doesn’t and found some differences.

Then I booted into recovery mode, copied the missing registry keys, and successfully booted the Windows Server 2012 R2 VM on a 2025 Hyper-V host.

reg load HKLM\TempHive c:\Windows\system32\config\SYSTEM

reg copy HKLM\TempHive\ControlSet001\Enum\ACPI\VMBus HKLM\TempHive\ControlSet001\Enum\ACPI\MSFT1000 /s

reg copy HKLM\TempHive\ControlSet001\Enum\ACPI\Hyper_V_Gen_Counter_V1 HKLM\TempHive\ControlSet001\Enum\ACPI\MSFT1002 /s

Was this answer helpful?

20+ people found this answer helpful.

17 additional answers

Sort by: Newest
  1. Henry Mai 8,225 Reputation points Independent Advisor
    2025-07-21T09:04:16.85+00:00

    Hello Stefan, I am Henry and I want to share my insights about your issue.

    The 0x7B INACCESSIBLE_BOOT_DEVICE error means Windows is starting up, but it cannot find the driver for the storage controller that its boot drive is connected to.

    • On your old cluster, the VM boots using an older virtual IDE or SCSI controller. Windows has that driver and loads it at startup.
    • On your new Server 2025 cluster, Hyper-V presents a newer, more efficient virtual SCSI controller. The driver for this new controller (storvsc.sys) exists inside your 2012 R2 VM (as part of Integration Services), but Windows doesn't know it needs to load it during boot.

    To clarify, may I know

    1. What Generation is the failing 2012 R2 VM (Gen 1 or Gen 2)?
    2. In the VM's settings, is the boot VHDX file attached to an IDE Controller or a SCSI Controller?
    3. On the working cluster, have you tried manually updating the Integration Services inside the 2012 R2 guest OS itself?

    You can refer the procedure below as it can force the 2012 R2 guest OS to automatically install and register the storvsc.sys driver as a boot-critical device

    1. Move the problematic VM back to the working cluster and boot it up.
    2. Shut down the VM. In Hyper-V Manager, go to its Settings.
    3. Add a SCSI Controller to the VM. You don't need to attach a disk to it; just adding the controller hardware is enough.
    4. Start the VM again (on the working cluster). Log in and allow Windows to detect the "new" SCSI controller and automatically install the driver (storvsc.sys). You can verify it appears in Device Manager.
    5. Once the driver is installed, shut down the VM.
    6. You can now remove the temporary SCSI controller you added in step 3.
    7. Move the VM to the new cluster and try to boot it.

    Hope this helps.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.