mantle/qemu: default to `-serial mon:stdio` if not redirecting
This restores access to the monitor via `Ctrl-A C` and allows passing
through `Ctrl-C` to the guest as before.
This used to be what QEMU did by default, but when we added an explicit
QMP socket in it disabled that sugar.
Closes:
@@ -1307,6 +1307,8 @@ func (builder *QemuBuilder) Exec() (*QemuInstance, error) {
if builder.ConsoleFile != "" {
builder.Append("-display", "none", "-chardev", "file,id=log,path="+builder.ConsoleFile, "-serial", "chardev:log")
+ } else {
+ builder.Append("-serial", "mon:stdio")
}
// And the custom arguments
