Lxd-migrate file format issue?

I’m following the guide at https://documentation.ubuntu.com/lxd/latest/howto/import_machines_to_instances/; I’ve exported a virtual machine from an old Xcp-ng server into ova format, and I’ve copied that file to a server with LXD. After running

qemu-img convert -p -O raw agcol.ova agcol.raw

and verified with ‘qemu-img info’ that agcol.raw is in, well, raw format, the fun begins.

im@st2:~$ doas ./bin.linux.lxd-migrate.x86_64
The local LXD server is the target [default=yes]:
Would you like to create a container (1) or virtual-machine (2)?: 2
Name of the new instance: agcol-vm
Please provide the path to the block device or disk image file: agcol.raw
Invalid input: Source disk format cannot be converted by server. Source disk should be in raw format

What am I doing wrong? Thanks.

Can I ask what is the OS of the VM you are porting? Also, what does the “file” command say about your raw disk image? Thanks.

The ova file is from a CentOS 7 virtual machine that was running under Xcp-ng.
jim@st2:~$ qemu-img convert -p -O raw agcol.ova agcol.raw && file agcol.raw
(100.00/100%)
agcol.raw: tar archive

I have LXD installed on a Debian 12 server, not Ubuntu, if that matters.

tar archive does not sound right. I would extract the image from the .ova and convert it. It would be a .vmdk I think.

I think I’ll have to go back to the Xcp-ng server and check on what exporting is supposed to do. Thanks for the responses.

What does file --brief agcol.raw output as this is used to detect raw images client side and may need tweaking to support additional variations?