2010/12/13 Scott Baker <bakers(a)canbytel.com>:
I have two physical servers: Virt1 and Virt2. I'm setting up live
migration
with CentOS 5.5 between the two. I've done this by NFS mounting /etc/libvirt
and /var/lib/libvirt/images on both servers. This is working well for me
except for one thing.
I see the same list of VMs on each server (as expected), but each server
(Virt1 and Virt2) are able to start the same VM at the same time. This
obviously causes IP conflicts and thrashes the disk image. Is there a way to
tell my VM "cluster" that a VM is only allowed to be opened on one host at a
time?
Well don't share /etc/libvirt, there is no need to.
Just have the domain config on the host that currently executes the
domain and tell libvirt to migrate the persistent domain condif along
with the domain:
virsh migrate --persistent --undefinesource vm1 qemu://virt2/system
Matthias