Add -nodefconfig command line option to qemu.

Without this option, qemu will read some defaults from /etc/qemu/
configuration files.
This commit is contained in:
Daniel Berrange
2010-08-24 14:27:15 +01:00
committed by Richard Jones
parent e503b31c15
commit 6d15d4e7c2

View File

@@ -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).