On Tuesday, 25 July 2017 11:42:53 CEST stakanov wrote:
In data martedì 25 luglio 2017 09:59:49 CEST, Carmen Bianca Bakker ha scritto:
Are you looking for /var/lib/libvirt/images or /var/lib/machines? You can mount partitions on subdirectories if you want.
Honestly you could even mount your separate partition on /kvm-machines and tell your KVM program that the images can be found in that directory. Just a matter of taste where you want to mount your partition.
Well, I would look probably for both (as I wish that after a new install I am able to format the system volumes and thus not to loose the kvm things. I think your /kvm-machines is just nice.
Are you actually using both directories? I'm using virt-manager to manage my KVM/QEMU VMs, and it only really uses /var/lib/libvirt/images. If I were you, I would probably just mount this separate partition on /var/ lib/libvirt/images to have the least amount of hassle.
Last question: in order to migrate a virtual machine (kvm), would it be possible to copy both /var/lib/libvirt/images or /var/lib/machines to the new partition in order to overtake all to the new location? Would a simple cp -ax suffice?
`cp -ax` won't work, if I understand `-x` well (which stands for `--one-file- system`). I would personally use `rsync -ar`, but you probably have the right idea anyway. You _might_ need to edit some configuration files to inform KVM that the images have moved, but I do not know your setup. -- Carmen Bianca Bakker <carmen@carmenbianca.eu> PGP: 2A09 F627 39F6 DEC8 CFFC A216 CD0A 90F1 C5CA 0C92