Libvirt importing a virtual appliance

This directly from here: https://www.redhat.com/en/blog/importing-vms-kvm-virt-v2v

yum update

yum install virt-v2v

virsh pool-list
mkdir /var/lib/libvirt/Appliances
virsh pool-define-as Appliances –type dir –target /var/lib/libvirt/Appliances
virsh pool-start Appliances
virsh pool-autostart Appliances
virsh pool-list

Then import an OVA file:

virt-v2v -i ova /root/third_party_appliance.ova -o libvirt -of qcow2 -os Appliances -n default

Example: virt-v2v -i ova /home/brad/Nextcloud_VM_www.hanssonit.se.ova -o libvirt -of qcow2 -os Appliances -n default

If you get something like this:

[root@centos8 ~]# virt-v2v -i ova /home/brad/Nextcloud_VM_www.hanssonit.se.ova -o libvirt -of qcow2 -os Appliances -n default
[ 0.0] Opening the source -i ova /home/brad/Nextcloud_VM_www.hanssonit.se.ova
virt-v2v: warning: making OVA directory public readable to work around
libvirt bug https://bugzilla.redhat.com/1045069
[ 8.8] Creating an overlay to protect the source from being modified
[ 9.0] Initializing the target -o libvirt -os Appliances
[ 9.0] Opening the overlay
virt-v2v: error: libguestfs error: could not create appliance through
libvirt.

Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct

Original error from libvirt: Cannot access backing file
‘/home/brad/Nextcloud_VM_www.hanssonit.se.ova’ of storage file
‘/var/tmp/v2vovl2af2bf.qcow2’ (as uid:107, gid:107): Permission denied
If reporting bugs, run virt-v2v with debugging enabled and include the
complete output:

virt-v2v -v -x […]

You work around this by running:
export LIBGUESTFS_BACKEND=direct
then do the virt-v2v again and it should work.

Now start your imported appliance:

[root@centos8 ~]# virsh list –all
Id Name State
1 kali running
Nextcloud_VM_www.hanssonit.se shut off

[root@centos8 ~]# virsh start Nextcloud_VM_www.hanssonit.se
error: Failed to start domain Nextcloud_VM_www.hanssonit.se
error: Cannot get interface MTU on ‘bridged’: No such device

You probably need to edit the network card to match your other VM’s