Moving images for libvirt/qemu
I had to do this and wanted to share how to do this, as it was actually pretty easy.
libvirt images are placed in
/var/lib/libvirt/images. There will be an image file and a backing file(s), both will have extension
.img. Move all these files and copy the backing files to the new location.
Next, modify the configuration file, on my system this was location under
/etc/libvirt/qemu. Change location of the
file attribute of element
source to your new location.
qemu-img to change the backing file to the new location. You can do this by using
qemu-img rebase -b [backing file] [image file]. After that, you can remove the backing files under