This is a libvirt OCF Resource Agent written in python using my python OCF Resource Agent library.
It was written because I wanted to have the config for virtual domains stored in the cluster config rather than a shared disk or file server.
It doesn’t support the full libvirt XML config yet, but adding new config parameters to match domain XML is fairly simple.
You can grab the code from launchpad, and Ubuntu users can just add the repository
Sample CRM config