git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b433ba
)
Add -nodefconfig command line option to qemu.
author
Daniel Berrange
<berrange@redhat.com>
Tue, 24 Aug 2010 13:27:15 +0000
(14:27 +0100)
committer
Richard Jones
<rjones@redhat.com>
Thu, 26 Aug 2010 21:41:19 +0000
(22:41 +0100)
Without this option, qemu will read some defaults from /etc/qemu/
configuration files.
Cherry picked from commit
6d15d4e7c27477507ba355384a340ce86cec617b
and backported to stable 1.2 branch.
src/guestfs.c
patch
|
blob
|
history
diff --git
a/src/guestfs.c
b/src/guestfs.c
index
68b5b06
..
5f6be02
100644
(file)
--- a/
src/guestfs.c
+++ b/
src/guestfs.c
@@
-1143,6
+1143,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).