[libvirt] Redefining the XML of VM

Hi, I'm a newbie to Libvirt, i want to know if i can change the vm definition xml dynamically. like change cpu, network value. I found the hook in Libvirt, and i can get the xml from standard input. but i change it and out put to standard output, it no effect. I was try to execute “virsh define” shell command in python script on hook, but it was blocked and unabled to execute another Libvirt command. Is there create vm hook in Libvirt? Any help is appreciated. Regards,

On 01/08/2014 05:54 AM, kangta123 wrote:
Hi,
I'm a newbie to Libvirt,
Any reason you posted the same message twice with just a couple minutes between them? Probably because you didn't realize that non-subscribers are welcome to post. We'd like to improve our list documentation to make it more obvious to first time posters that they should NOT double post, once as a non-subscriber and once as a subscriber, because subscribing will not make a difference on whether the post goes through moderation successfully. But to do that, we need to know what URLs you used in finding out about the list, whether those pages already mention this fact, and what we can do to make that information more prominent. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
kangta123