Skip to content

Commit

Permalink
Merge pull request #1693 from AkihiroSuda/fix-1689
Browse files Browse the repository at this point in the history
qemu: virtio-serial-pci: set max_ports=1
  • Loading branch information
AkihiroSuda authored Jul 30, 2023
2 parents 6fba254 + b699cb7 commit f10a6d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/qemu/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,8 @@ func Cmdline(cfg Config) (string, []string, error) {
}
const serialvChardev = "char-serial-virtio"
args = append(args, "-chardev", fmt.Sprintf("socket,id=%s,path=%s,server=on,wait=off,logfile=%s", serialvChardev, serialvSock, serialvLog))
args = append(args, "-device", "virtio-serial-pci,id=virtio-serial0")
// max_ports=1 is required for https://github.com/lima-vm/lima/issues/1689 https://github.com/lima-vm/lima/issues/1691
args = append(args, "-device", "virtio-serial-pci,id=virtio-serial0,max_ports=1")
args = append(args, "-device", fmt.Sprintf("virtconsole,chardev=%s,id=console0", serialvChardev))

// We also want to enable vsock here, but QEMU does not support vsock for macOS hosts
Expand Down

0 comments on commit f10a6d2

Please sign in to comment.