From: Daniel Berrange Date: Tue, 24 Aug 2010 13:27:15 +0000 (+0100) Subject: Add -nodefconfig command line option to qemu. X-Git-Tag: 1.4.3~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=4edb9db51a11bb9095c05abd4d825cbcff0745ff;p=libguestfs.git Add -nodefconfig command line option to qemu. Without this option, qemu will read some defaults from /etc/qemu/ configuration files. (cherry picked from commit 6d15d4e7c27477507ba355384a340ce86cec617b) --- diff --git a/src/launch.c b/src/launch.c index 07a89ec..1f68346 100644 --- a/src/launch.c +++ b/src/launch.c @@ -485,6 +485,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).