Skip to content

Commit 9e1a07a

Browse files
committed
Revert virtserialport back to unix socket for QEMU guest agent communication
The serial port sometimes doesn't seem to work: lima-vm#2064 Signed-off-by: Jan Dubois <[email protected]>
1 parent f3dc6ed commit 9e1a07a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/25-guestagent-base.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ name="lima-guestagent"
3535
description="Forward ports to the lima-hostagent"
3636
3737
command=${LIMA_CIDATA_GUEST_INSTALL_PREFIX}/bin/lima-guestagent
38-
command_args="daemon --vsock-port "${LIMA_CIDATA_VSOCK_PORT}" --virtio-port "${LIMA_CIDATA_VIRTIO_PORT}""
38+
command_args="daemon --vsock-port \"${LIMA_CIDATA_VSOCK_PORT}\" --virtio-port \"${LIMA_CIDATA_VIRTIO_PORT}\""
3939
command_background=true
4040
pidfile="/run/lima-guestagent.pid"
4141
EOF

pkg/hostagent/hostagent.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ func New(instName string, stdout io.Writer, sigintCh chan os.Signal, opts ...Opt
128128
}
129129
vSockPort = port
130130
} else if *y.VMType == limayaml.QEMU {
131-
virtioPort = filenames.VirtioPort
131+
// virtserialport doesn't seem to work reliably: https://github.com/lima-vm/lima/issues/2064
132+
virtioPort = "" // filenames.VirtioPort
132133
}
133134

134135
if err := cidata.GenerateISO9660(inst.Dir, instName, y, udpDNSLocalPort, tcpDNSLocalPort, o.nerdctlArchive, vSockPort, virtioPort); err != nil {

0 commit comments

Comments
 (0)