Skip to content

Commit 0cec303

Browse files
committed
fix(qemu): fix terminal mess up in qemu based deployment
Signed-off-by: Ishaan Gupta <ishaankone@gmail.com>
1 parent a0c47bc commit 0cec303

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/unikontainers/hypervisors/qemu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (q *Qemu) BuildExecCmd(args types.ExecArgs, ukernel types.Unikernel) ([]str
6161
cmdString += " -L /usr/share/qemu" // Set the path for qemu bios/data
6262
cmdString += " -cpu host" // Choose CPU
6363
cmdString += " -enable-kvm" // Enable KVM to use CPU virt extensions
64-
cmdString += " -nographic -vga none" // Disable graphic output
64+
cmdString += " -display none -vga none -serial stdio -monitor null" // Disable graphic output
6565

6666
if args.VCPUs > 0 {
6767
cmdString += fmt.Sprintf(" -smp %d", args.VCPUs)

pkg/unikontainers/unikernels/linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (l *Linux) MonitorCli() types.MonitorCliArgs {
190190
switch l.Monitor {
191191
case "qemu":
192192
extraCliArgs := types.MonitorCliArgs{
193-
OtherArgs: " -no-reboot -serial stdio -nodefaults",
193+
OtherArgs: " -no-reboot -nodefaults",
194194
}
195195
if l.InitrdConf && l.RootFsType != "initrd" {
196196
extraCliArgs.ExtraInitrd = urunitConfPath

0 commit comments

Comments
 (0)