Convert pfsense ova file to qcow2 fails with either virt-v2v or qemu-img
-
I'm trying to migrate away from my vmware esxi server. I've been running pfsense on it for a long time. I've exported the vm image as an ova file and now need to convert it to a qcow2 file to import into my linux hypervisor.
I've been using the virt-v2v utility to convert all of my other VMs and it's worked well, but it appears to have failed on my pfsense VM. The error I got was:
virt-v2v: error: libguestfs error: inspect_os: sfdisk exited with status 1: sfdisk: /dev/sda: partition 5: partition table contains only 4 partitions
It appears the pfsense disk image is using a complex partition table that virt-v2v is unable to support.
I tried using qemu-img as well. qemu-img was able to actually convert the file to a .qcow2 file, but when I attempt to boot from it, I get the following error:
BdsDxe: failed to load Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x0): Not Found BdsDxe: No bootable option or device was found.
So I'm wondering if my only alternative is to install a fresh image of pfsense and attempt to import a backup of the configuration. I'm wondering how well this works. I have a recent backup that I could restore. Will it include any configurations I've made in the other packages that I've installed with the package manager? What would you guys do?