Change storage for KVM machine

pcravero

New Member
Hi, second post here :confused:

A KVM VM was created on the local directory of a 2-node cluster. I need to move it to a shared LVM/iSCSI group. How to? (the shared disk is already configured and working)

Can I simply stop the VM, copy the image file and edit the VM configuration file(s)? If so, which config file(s)?

Thanks,
Paolo
 
Hi, second post here :confused:

A KVM VM was created on the local directory of a 2-node cluster. I need to move it to a shared LVM/iSCSI group. How to? (the shared disk is already configured and working)

Can I simply stop the VM, copy the image file and edit the VM configuration file(s)? If so, which config file(s)?

Thanks,
Paolo
Hi,
yes you can do it with handwork - but normaly use backup/restore: backup machine. And then restore with the right --storage Entry (see man qmrestore). If you don't use a new VMID, your old must deletet before.

The configs are plain text-files in /etc/qemu-server/ (for kvm-vms).

Udo