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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!