HyperV Ubuntu - Import to Proxmox

sxit

New Member
Dec 10, 2024
3
2
3
I am attempting to take a VM from HyperV that was running Ubuntu and bring it over to Proxmox.
I have done numerous Windows VM's without issue but the Linux box will not start like it cant see the disk or is missing the drivers. Here are the steps I am doing as I must be missing something.

1. Powerdown the Windows version.
2. Export the VM
3. Copy the vhdx over to proxmox.
4. Run create the VM in Proxmox and give it a 1GB disk for now.
5. Once the VM is created, modify the hardware to remove the 1GB disk.
6. SSH into Proxmox and run the qm importdisk 104 Ubuntu.vhdx nmve1 --format raw
7. Over to the hardware tab and add the disk. I have tried IDE, SATA, SCSI...nothing helps.
8. Check the boot order to make sure it is the disk in step 7.

I have done this for all my Windows VM's without issues. What am I missing?
 
I've seen this happen with a mismatch between original VM in Hyper-V using UEFI in a Gen2 VM then going BIOS in PVE (or vise versa), or if using UEFI missing an EFI disk/entry in PVE.

If adding an EFI disk you may need to use an Ubuntu rescue/live CD to configure GRUB or systemd-boot to create a new boot entry for it.
 
Last edited:
I've seen this happen with a mismatch between original VM in Hyper-V using UEFI in a Gen2 VM then going BIOS in PVE (or vise versa), or if using UEFI missing an EFI disk/entry in PVE.

If adding an EFI disk you may need to use an Ubuntu rescue/live CD to configure GRUB or systemd-boot to create a new boot entry for it.
You are correct. I did not notice that in Hyper-V, there is a "shimx64.efi" in the boot options which I assume is the UEFI. Yikes! looks like I am in for some head scratching to bring these over. I am guessing that just adding a UEFI disk is not going to solve my issue.

If anyone has run into this and can save me the head bashing...would be appreciated!
 
I've seen this happen with a mismatch between original VM in Hyper-V using UEFI in a Gen2 VM then going BIOS in PVE (or vise versa), or if using UEFI missing an EFI disk/entry in PVE.

If adding an EFI disk you may need to use an Ubuntu rescue/live CD to configure GRUB or systemd-boot to create a new boot entry for it.
WOOT...!!!

That was it. Just recreated the VM. Did not add any disks. Added a EFI disk and ran my "qm importdisk" command to suck in the MicroSh!T vhdx.
I now have a nice Happy Ubuntu fully swapped from Hyper-V.

Thank you so much!!!