mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Add -nodefconfig command line option to qemu.
Without this option, qemu will read some defaults from /etc/qemu/ configuration files.
This commit is contained in:
committed by
Richard Jones
parent
e503b31c15
commit
6d15d4e7c2
@@ -342,6 +342,9 @@ guestfs__launch (guestfs_h *g)
|
||||
*/
|
||||
g->cmdline[0] = g->qemu;
|
||||
|
||||
if (qemu_supports (g, "-nodefconfig"))
|
||||
add_cmdline (g, "-nodefconfig");
|
||||
|
||||
/* qemu sometimes needs this option to enable hardware
|
||||
* virtualization, but some versions of 'qemu-kvm' will use KVM
|
||||
* regardless (even where this option appears in the help text).
|
||||
|
||||
Reference in New Issue
Block a user