Hello,

I've just attached my first shot at a VirtualDomain OCF RA to the
enhancement request at
http://developerbugs.linux-foundation.org/show_bug.cgi?id=1982. A few
comments on this:

Background:
- While Linux-HA already contains a Xen RA for managing Xen domU's, and
for OpenVZ VEs, no such functionality exists for clustered KVM/Qemu, or
Linux Containers.
- The libvirt API provides a generic abstraction layer for all of
these[1], plus a generic management shell (virsh).
- I thought it would sound sensible to leverage that abstraction layer
into a unified RA for any virtualization technology supported by libvirt.

Testing status:
- I've tested with Xen on SLES 10 post-SP2, and have done very limited
testing with KVM on Debian etch (with libvirt and kvm from
etch-backports) and Ubuntu hardy.
- I'd much appreciate if people could try this out on Red Hat/CentOS.

Limitations:
- My crude stab at migrate_to/migrate_from functionality is very likely
to break and you get to keep the pieces. I'm very open for suggestions here.
- As for Xen on SLES 10, HVM domains work (start/status/stop) out of the
box. For paravirt domains, SLES 10 vm-install creates XML config files
virsh will refuse to start. You'll have to move the <bootloader> and
<bootloader_args> elements up one level from the <os> element. After
that, libvirt will load these definitions without complaining.

Happy testing. Any and all comments more than welcome.

Cheers,
Florian

[1] Caveat: I have no clue as to the suitability of libvirt/virsh for
managing Lxc or OpenVZ. I've only ever tested libvirt with Xen and Qemu/KVM.

-- 
: Florian G. Haas
: LINBIT Information Technologies GmbH
: Vivenotgasse 48, A-1120 Vienna, Austria
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to