Hi everyone.
I realise it's probably a total rookie mistake but I've been trying to transfer a virtual machine to a USB for the last two weeks with no success.
I tried
1. cloning it to a 58 gig usb stick with virt-manager and I got the following error-
Error creating virtual machine clone 'debian9-clone': Couldn't create storage volume 'debian9-clone.qcow2': 'internal error: Child process (/usr/bin/qemu-img convert -f qcow2 -O qcow2 -o compat=1.1,lazy_refcounts /var/lib/libvirt/images/debian9.qcow2 '/run/media/Username/STORE N GO/debian9-clone.qcow2') unexpected exit status 1: qemu-img: error while writing sector 9840896: File too large
qemu-img: Failed to flush the refcount block cache: File too large
'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtinst/storage.py", line 747, in install
vol = self.pool.createXMLFrom(xml, self.input_vol, cloneflags)
File "/usr/lib64/python3.7/site-packages/libvirt.py", line 3240, in createXMLFrom
if ret is None:raise libvirtError('virStorageVolCreateXMLFrom() failed', pool=self)
libvirt.libvirtError: internal error: Child process (/usr/bin/qemu-img convert -f qcow2 -O qcow2 -o compat=1.1,lazy_refcounts /var/lib/libvirt/images/debian9.qcow2 '/run/media/Username/STORE N GO/debian9-clone.qcow2') unexpected exit status 1: qemu-img: error while writing sector 9840896: File too large
qemu-img: Failed to flush the refcount block cache: File too large
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/clone.py", line 855, in _async_clone
self.clone_design.start_duplicate(meter)
File "/usr/share/virt-manager/virtinst/cloner.py", line 457, in start_duplicate
dst_dev.build_storage(meter)
File "/usr/share/virt-manager/virtinst/devices/disk.py", line 811, in build_storage
vol_object = self._storage_backend.create(meter)
File "/usr/share/virt-manager/virtinst/diskbackend.py", line 642, in create
return self._vol_install.install(meter=progresscb)
File "/usr/share/virt-manager/virtinst/storage.py", line 761, in install
"'%s': '%s'" % (self.name, str(e)))
RuntimeError: Couldn't create storage volume 'debian9-clone.qcow2': 'internal error: Child process (/usr/bin/qemu-img convert -f qcow2 -O qcow2 -o compat=1.1,lazy_refcounts /var/lib/libvirt/images/debian9.qcow2 '/run/media/Username/STORE N GO/debian9-clone.qcow2') unexpected exit status 1: qemu-img: error while writing sector 9840896: File too large
qemu-img: Failed to flush the refcount block cache: File too large
2. I also put the following commands into terminal-
fdisk -l
mkdir /mnt/usb
mount /dev/sdb1 /mnt/usb
xl vm-export vm=debian9.qcow2 filename=debian9.xva
The output was-
xencall: error: Could not obtain handle on privileged command interface: No such file or directory
libxl: error: libxl.c:102:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context
There's a bounty of a thousand pieces of liquorice for anyone who can help