search for: xml_list

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

Did you mean: xm_list
2015 Dec 01
1
Why does libvirt insert USB controller automagically?
...when defineXML is called. IOW, the original XML did not have these 2 devices but they are present right after defineXML is called. Why should libvirt add a USB controller? DETAILS: Here is 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...
2015 Dec 01
0
Re: Why does libvirt insert USB controller automagically?
...;controller type='usb' model='none'/> <memballoon model='none'/> - Cole > > DETAILS: > > Here is 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 > >...