summaryrefslogtreecommitdiffstats
path: root/src/launch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/launch.c')
-rw-r--r--src/launch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/launch.c b/src/launch.c
index 9262cc5c..287cc402 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -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).