search for: out_xml

Displaying 2 results from an estimated 2 matches for "out_xml".

Did you mean: out_fmt
2015 Dec 01
1
Why does libvirt insert USB controller automagically?
...s a little Python snippet to show that behavior: import libvirt conn = libvirt.open('qemu:///system') xml_list = open('/tmp/vm.xml', "r").readlines() in_xml = ''.join(xml_list) <-- This XML string does not have a USB or a memballoon dom = conn.defineXML(in_xml) out_xml = dom.XMLDesc() <-- But this XML string does! print out_xml The file /tmp/vm.xml does not have a memballoon or a USB device. Neither, of course, does in_xml string. But out_xml has: <controller type='usb' index='0'> <address type='pci' domain='0x00...
2015 Dec 01
0
Re: Why does libvirt insert USB controller automagically?
...> > > > conn = libvirt.open('qemu:///system') > > xml_list = open('/tmp/vm.xml', "r").readlines() > > in_xml = ''.join(xml_list) ?*This XML string does not have a USB or a memballoon* > > dom = conn.defineXML(in_xml) > > out_xml = dom.XMLDesc() ?*But this XML string does!* > > print out_xml > > > > The file /tmp/vm.xml does not have a memballoon or a USB device. Neither, of > course, does in_xml string. But out_xml has: > > <controller type='usb' index='0'> > &...