Hello Ihekwuaba `Okereke Ngadiuba
The stop code INACCESSIBLE BOOT DEVICE inside a Hyper‑V VM usually indicates that the guest OS cannot see its system disk after a change in storage configuration. Since you expanded the virtual disk, the boot loop suggests either the controller type changed or the disk path is no longer consistent with what the VM expects. First, confirm in the VM settings that the system disk is still attached to the same IDE or SCSI controller and that the .vhdx file path is correct. If the disk was moved or renamed, Hyper‑V may still point to a stale reference.
If the configuration looks correct, boot the VM into the Windows Recovery Environment by attaching the installation ISO and selecting “Repair your computer.” From there, run bootrec /fixmbr and bootrec /rebuildbcd to rebuild the boot configuration. Also check that the storage driver required by the guest OS (for example, if the disk was switched from IDE to SCSI) is enabled in the registry under HKLM\SYSTEM\CurrentControlSet\Services. A mismatch here will trigger the inaccessible boot device error.
The key is not to attempt a reinstall, as that would overwrite files. Instead, ensure the disk attachment and controller type match the original configuration, then repair the boot records from recovery mode. If the VM still fails, mount the .vhdx on another VM or host to verify file integrity and back up the application data before further repair attempts. This way you preserve the contents while restoring bootability.
If the above response helps answer your question, please hit "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
Harry.