We have what I hope is a recoverable problem. We had a drive crash and the export/backups of the VM & VHD it turns out were failing part way through (and of course no one was checking the logs). So no clean way to get that. What we lost was the Hyper-V program and any files it has for configuration.
This is on Windows 11 (latest version). It's all on the same computer, what we lost has a SSD on the computer. The drive that died was the C: drive so we lost all of the Hyper-V install, registry, AppData folder, etc.
What we still have are the VM & VHD files. The data. They are on the D: drive. And what we need is the virtual drive. If we get the VM back, that's nice. But I can create a new VM. I need that data on the VHD though.
The VM had 10 or so checkpoints so in Hyper-V the checkpoint tree was a descending series of nodes, each with one child. And that child had one child. And...
I created a new VM and pointed it to the VHDX file. No luck. On powering up it said it could not find a bootable media. Here's the files I have:
VHD
VM
Snapshots
Is there a way to recover this? I don't know Hyper-V well but I'm guessing the collection of VHD files does have the drive image. But telling Hyper-V to use all of it - how?