summaryrefslogtreecommitdiffstats
path: root/src/launch.c
diff options
context:
space:
mode:
authorDaniel Berrange <berrange@redhat.com>2010-08-24 14:27:15 +0100
committerRichard Jones <rjones@redhat.com>2010-08-24 14:27:15 +0100
commit6d15d4e7c27477507ba355384a340ce86cec617b (patch)
treebeae709e35e7eb94aea0ea693e1ec7600f7fde23 /src/launch.c
parente503b31c15117a82abfe9dd4ba560ea6d03e45ca (diff)
downloadlibguestfs-6d15d4e7c27477507ba355384a340ce86cec617b.tar.gz
libguestfs-6d15d4e7c27477507ba355384a340ce86cec617b.tar.xz
libguestfs-6d15d4e7c27477507ba355384a340ce86cec617b.zip
Add -nodefconfig command line option to qemu.
Without this option, qemu will read some defaults from /etc/qemu/ configuration files.
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).