launch: libvirt: Remove unused USB and memballoon devices.

Thanks: Laine Stump.

See also:
https://www.redhat.com/archives/libvir-list/2016-October/msg00246.html
This commit is contained in:
Richard W.M. Jones
2016-10-06 16:17:30 +01:00
parent d0c86f287d
commit 9ab8b1bebd

View File

@@ -1397,6 +1397,18 @@ construct_libvirt_xml_devices (guestfs_h *g,
} end_element ();
}
/* Libvirt adds some devices by default. Indicate to libvirt
* that we don't want them.
*/
start_element ("controller") {
attribute ("type", "usb");
attribute ("model", "none");
} end_element ();
start_element ("memballoon") {
attribute ("model", "none");
} end_element ();
} end_element (); /* </devices> */
return 0;