qemu wasn't restoring the terminal if it was terminated early

You would need to run reset to regain control of your terminal after
this happened, so this turns off the monitor and serial port mux to
stdout.

(cherry picked from commit 1accce819afac96a6d58f24a4908a4913e46624c)
This commit is contained in:
Brian C. Lane 2019-03-22 15:19:50 -07:00
parent 79c38687f3
commit ae07d8d888

View File

@ -226,7 +226,7 @@ class QEMUInstall(object):
else: else:
display_args = opts.vnc display_args = opts.vnc
log.info("qemu %s", display_args) log.info("qemu %s", display_args)
qemu_cmd += ["-nographic", "-display", display_args ] qemu_cmd += ["-nographic", "-monitor", "none", "-serial", "null", "-display", display_args ]
# Setup the virtio log port # Setup the virtio log port
qemu_cmd += ["-device", "virtio-serial-pci,id=virtio-serial0"] qemu_cmd += ["-device", "virtio-serial-pci,id=virtio-serial0"]