summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-06 10:29:26 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-07 11:34:14 +0100
commit6575f64065711c3d7a4ae6a053f0b6a5208574bf (patch)
tree7bcb4f42eb6344c268f8627dfb6272ccf7dc83dd
parent0645092059a6fc2e5b734523881373b34ce81933 (diff)
downloadlibguestfs-6575f64065711c3d7a4ae6a053f0b6a5208574bf.tar.gz
libguestfs-6575f64065711c3d7a4ae6a053f0b6a5208574bf.tar.xz
libguestfs-6575f64065711c3d7a4ae6a053f0b6a5208574bf.zip
qemu: Use sgabios by default (thanks Dan Berrange).
(cherry picked from commit 52d188e32fb8addb45bf926df07e34ab35898f85)
-rw-r--r--src/launch.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/launch.c b/src/launch.c
index a2c49458..a8b06ac4 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -721,6 +721,15 @@ launch_appliance (guestfs_h *g)
add_cmdline (g, "stdio");
#endif
+ /* Use sgabios instead of vgabios. This means we'll see BIOS
+ * messages on the serial port, and also works around this bug
+ * in qemu 1.1.0:
+ * https://bugs.launchpad.net/qemu/+bug/1021649
+ * QEmu has included sgabios upstream since just before 1.0.
+ */
+ add_cmdline (g, "-device");
+ add_cmdline (g, "sga");
+
/* Set up virtio-serial for the communications channel. */
add_cmdline (g, "-chardev");
snprintf (buf, sizeof buf, "socket,path=%s,id=channel0", guestfsd_sock);