Re: Deploying libvirt with live migration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/12/13 Scott Baker <bakers@xxxxxxxxxxxx>:
> 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


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux