Skip to content

krunkit should create unix domain socket files #79

@unsuman

Description

@unsuman

Hello! I’m trying to add krunkit as a new backend driver to Lima, see: lima-vm/lima#4137. However, when attempting to add a virtio-vsock device for guest/host agent communication, krunkit fails to create the UNIX domain socket file. Is this a bug, or is it intended, and are we responsible for creating and handling the UDS file?

Krunkit Args

krunkit --memory 2048 --cpus 4 --device virtio-serial,logFilePath=/Users/ansumansahoo/.lima/krunkit/serial.log --krun-log-level 3 --restful-uri none:// --device virtio-blk,path=/Users/ansumansahoo/.lima/krunkit/diffdisk,format=raw --device virtio-blk,path=/Users/ansumansahoo/.lima/krunkit/cidata.iso --device virtio-vsock,port=2222,socketURL=/Users/ansumansahoo/.lima/krunkit/ga.sock --device virtio-net,type=unixstream,path=/Users/ansumansahoo/.lima/_networks/user-v2/user-v2_qemu.sock,mac=52:55:55:4a:a4:95 --device virtio-net,type=unixstream,path=/private/var/run/lima/socket_vmnet.shared,mac=52:55:55:0b:a2:3c

krunkit.log

[2025-10-17T08:19:24Z ERROR devices::virtio::console::device] Couldn't get terminal dimensions: ENODEV: No such device
[2025-10-17T08:19:24Z ERROR devices::virtio::console::device] Couldn't get terminal dimensions: ENODEV: No such device
[2025-10-17T08:19:25Z ERROR devices::virtio::console::device] Couldn't get terminal dimensions: ENODEV: No such device
[2025-10-17T08:20:27Z ERROR devices::virtio::vsock::muxer] unexpected dgram pkt: 3
[2025-10-17T08:21:27Z ERROR devices::virtio::vsock::muxer] unexpected dgram pkt: 3
[2025-10-17T08:22:27Z ERROR devices::virtio::vsock::muxer] unexpected dgram pkt: 3

Lima logs

time="2025-10-17T13:49:47+05:30" level=error msg="Failed to get guest agent connection: rpc error: code = Unknown desc = dial unix /Users/ansumansahoo/.lima/krunkit/ga.sock: connect: no such file or directory"

➜  krunkit pwd
/Users/ansumansahoo/.lima/krunkit
➜  krunkit ls -a | grep .sock
ha.sock
ssh.sock

In Lima, we dial to this UDS file to establish a connection. This connection is then used as the gRPC GuestAgent Client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions