Libvirt itself supports hook(http://libvirt.org/hooks.html), but seems it 
doesn't support change VM XML spec file.
I am thinking about adding a plugin system in kvm agent, before starting vm, 
kvm agent will call a python script, which can change vm xml file on the fly, 
then send the modified xml file to libvirt.

> -----Original Message-----
> From: DE Clay [mailto:dec...@zeromachine.net]
> Sent: Monday, November 26, 2012 6:32 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: libvirt XML settings for KVM guests
> 
> I would like to be able to change and persist libvirt XML settings for guests
> (similar to the way that VMware allows you to edit/change the VMX file).
> 
> Example use cases would be to change the default drivers to virtio and also
> change qemu disk settings to other caching policies.
> 
> It seems that now when I manually edit (via virsh edit), I lose those changes
> when the instance is stopped/restarted.
> 
> Is there a way to do this now?
> 
> --Daron
> --
> *****************************************
> Daron E. Clay, CTO
> ZeroMachine.net LLC
> Information Technology Architect
> VMware Certified Professional
> 
> -----------------------------------------
> Specializing in Cloud Computing Services and x86 Virtual Infrastructure
> Solutions
> -----------------------------------------
> 
> Phone: 970-769-4805
> Email: dec...@zeromachine.net
> Web: http://zeromachine.net
> *****************************************

Reply via email to