diff options
author | Daniel Berrange <berrange@redhat.com> | 2010-08-24 14:27:15 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-08-26 22:49:50 +0100 |
commit | 4edb9db51a11bb9095c05abd4d825cbcff0745ff (patch) | |
tree | 987ae33bd3f9a9bb60565250e1651fb8fb510cc6 | |
parent | dcb4097d78eae4f71fbe7d119d122bc15bb7da57 (diff) | |
download | libguestfs-4edb9db51a11bb9095c05abd4d825cbcff0745ff.tar.gz libguestfs-4edb9db51a11bb9095c05abd4d825cbcff0745ff.tar.xz libguestfs-4edb9db51a11bb9095c05abd4d825cbcff0745ff.zip |
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)
-rw-r--r-- | src/launch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/launch.c b/src/launch.c index 07a89ec6..1f68346a 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). |