I am trying to migrate a KVM guest from one Ubuntu 14.04 host to another by following the steps outlined here.
I now have the "state" file, xml configuration, and qcow2 img file in a single folder on the new host, and made sure to update the xml configuration to point to the new location of the qcow2 image file.
When I try to run
virsh create [guest-id].xml I get the following error message:
error: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/media/stuart/storage2/kvm/dns.technostu.com/dns.technostu.com.img,if=none,id=drive-virtio-disk0,format=raw: could not open disk image /media/stuart/storage2/kvm/dns.technostu.com/dns.technostu.com.img: Could not open '/media/stuart/storage2/kvm/dns.technostu.com/dns.technostu.com.img': Permission denied
Debugging and Attempted workarounds
- I have already added myself to the libvirtd group and re-logged in.
- I made sure the filepaths were correct
- I changed the ownership of the .img file to myself, but after running the command with and without sudo, the ownership of the file keeps changing to
- I tried running
$ sudo apt-get install apparmor-profiles apparmor-utils $ sudo aa-complain /usr/lib/libvirt/virt-aa-helperFrom this post, but that hasn't worked.
- I tried changing the emulator in the xml file as specified here.
What do I need to do in order to "import" the guest on the new host on Ubuntu 14.04?