mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user