Re: Deploying libvirt with live migration

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

 





On Mon, 13 Dec 2010, Matthias Bolte wrote:

2010/12/13 David Ehle <ehle@xxxxxxxxxxxxxxxxx>:

Even if your not sharing /etc/libvirt, if you have migrated at least once,
both systems see the VM's as available for starting/running so just not
sharing /etc/libvirt is not a solution to the problem/concern...

Well, that depends on the flags you pass to the migrate command. The
default libvirt migration semantic is a bit unexpected as it leaves
the domain defined but in shutdown state on the source host and on the
destination host it's running as a transient guest. That's why I gave
it the --persistent --undefinesource flags to make it take it's config
with it.

Thank you for explaining that - I usually use the gui admin tool so some of the details I'm oblivious too.

Ideally if you try to start a VM that is already running on a different host
it should balk and you should get an (overridable) warning. (IMHO)

There is ongoing work on a lock manager system for libvirt that shall
prevent two domains from using the same disk image at the same time.
That's not exactly what you're looking for but it's related.

I think that would be more than sufficient ;)

Is that project publicly accesible? I might be interested in lending a hand :)

David.

Matthias

David.

On Mon, 13 Dec 2010, Scott Baker wrote:

On 12/13/2010 02:28 PM, Matthias Bolte wrote:

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

I suppose that would work... but if Virt2 dies and I need to start its VMs
on Virt1 those XML configs won't be there and it will make it more
complicated.

Not just a simple "virsh start Foobar"

--
Scott Baker - Canby Telcom
System Administrator - RHCE - 503.266.8253

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users





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

  Powered by Linux