Re: [libvirt-users] libvirt domain configuration xml

2015-12-15 Thread Laine Stump
On 12/15/2015 04:36 AM, Andrei Perietanu wrote: Tanks for the reply Eric. The only reason I'm not going through the API is because there is nothing in the API (AFIK), that will allow you to modify the VNC settings, i.e. enable/disable, change port number. So I figured, the only way to do it

Re: [libvirt-users] libvirt domain configuration xml

2015-12-15 Thread Andrei Perietanu
Tanks for the reply Eric. The only reason I'm not going through the API is because there is nothing in the API (AFIK), that will allow you to modify the VNC settings, i.e. enable/disable, change port number. So I figured, the only way to do it is to modify the XML. I can't use virsh edit becau

Re: [libvirt-users] libvirt domain configuration xml

2015-12-11 Thread Eric Blake
On 12/11/2015 07:26 AM, Andrei Perietanu wrote: > I am trying to change a domain configuration from a python script. More > specific, I want to edit the VNC settings. You can't do this using the > libvirt API so you have to edit the domain configuration: Umm, the libvirt API _is_ how you edit the

[libvirt-users] libvirt domain configuration xml

2015-12-11 Thread Andrei Perietanu
I am trying to change a domain configuration from a python script. More specific, I want to edit the VNC settings. You can't do this using the libvirt API so you have to edit the domain configuration: Fo exmple, to disable VNC for a domain 'test1': vmXml = vm.XMLDesc(0) root = ET.fromstring(vmXml