lima icon indicating copy to clipboard operation
lima copied to clipboard

SSH dies after 16 minutes

Open PAStheLoD opened this issue 1 year ago • 4 comments

Description

qemu, m3, sonoma, ubuntu 23.10 guest, very fresh install via brew. tried with and without qemu window enabled. (I'm able to type in the qemu window, but the SSH session doing watch date freezes, and running a new lima command gets stuck as SSH doesn't seem to respond.) limactl ls shows running (not surprising as qemu works), and limactl stop and start also works immediately.

any tips how to debug this further?

edit: of course now it's not happening even after 1 hour of inactivity, it happened 3 times before :< edit2: so last session lived about 1h40m

PAStheLoD avatar Dec 19 '23 19:12 PAStheLoD

  • Does --vm-type=vz work stably?
  • Do you see any kernel panic log in ~/.lima/default/serial*.log?
  • If not, does limactl start --video show anything interesting? (In this case, you may have to keep the QEMU window foreground to avoid AppNap issue https://gitlab.com/qemu-project/qemu/-/issues/334)

AkihiroSuda avatar Dec 20 '23 04:12 AkihiroSuda

Potentially relevant (not 100% sure):

  • https://gitlab.com/qemu-project/qemu/-/issues/1997

AkihiroSuda avatar Dec 20 '23 04:12 AkihiroSuda

serial logs are normal/clean. using video (qemu window) and tcpdump it seems there's a network issue, ARP messages going out, 192.168.5.15 looking for 192.168.5.2

Screenshot 2023-12-20 at 15 34 09

edit: vz seems to work so far (but there pnpm doesn't seem to work on virtiofs 🙉 )

PAStheLoD avatar Dec 20 '23 14:12 PAStheLoD

I counter the same problem on m3 pro mbp when using qumu vm type. I use vscode remote-ssh to attatch the vm and it often disconected suddenly. I have to stop and resetart the vm manually.

Not sure whether vz has the same problem. I may have a try.

loheagn avatar Dec 28 '23 02:12 loheagn