lima-vm / lima

Linux virtual machines, with a focus on running containers
https://lima-vm.io/
Apache License 2.0
15.47k stars 608 forks source link

Missing remote and local address values in hostagent logs on start #2369

Open moenodedev opened 6 months ago

moenodedev commented 6 months ago

Description

When I run limactl start $instance remote address values are missing from this log line:

INFO[0000] [hostagent] new connection from  to          
$ limactl start development
INFO[0000] Using the existing instance "development"    
INFO[0000] Starting the instance "development" with VM driver "vz" 
INFO[0000] [hostagent] hostagent socket created at /Users/development/.lima/development/ha.sock 
INFO[0000] [hostagent] Starting VZ (hint: to watch the boot progress, see "/Users/development/.lima/development/serial*.log") 
INFO[0000] [hostagent] new connection from  to          
INFO[0000] SSH Local Port: 54203                        
INFO[0000] [hostagent] [VZ] - vm state change: running  
INFO[0000] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0010] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 

My instance configuration:

disk: "15GiB"

mountType: "virtiofs"
mounts:
  - location: "/tmp/lima"
    writable: true

vmType: "vz"
os: "Linux"
arch: "aarch64"

audio:
  device: "vz"
video:
  display: "none"
networks:
  - vzNAT: true
ssh:
  localPort: 54203
  loadDotSSHPubKeys: false
  forwardAgent: false
  forwardX11: false
  forwardX11Trusted: false

images:
  - location: "https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/cloud/nocloud_alpine-3.19.1-aarch64-uefi-cloudinit-r0.qcow2"
    digest: "sha512:d5e69cff0ecb0fd3850bd78f56f66131115934df27b2373c35a85a74b9def52822134dd43f90b4fabe239fdd4452026cb45f1c8f0b36a43af69335a26f0959b5"
    arch: "aarch64"
containerd:
  system: false
  user: false
moenodedev commented 6 months ago

The only package I could find "new connection from" in is https://github.com/containers/gvisor-tap-vsock/blob/main/pkg/tap/switch.go