Displaying 2 results from an estimated 2 matches for "in_xml".
Did you mean:
_xml
2015 Dec 01
1
Why does libvirt insert USB controller automagically?
...e 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 or a USB device. Neither, of course, does in_xml string. But ou...
2015 Dec 01
0
Re: Why does libvirt insert USB controller automagically?
...='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
>
>
>
> The file /tmp/vm.xml does not have a memballoon or a USB device...