UTM icon indicating copy to clipboard operation
UTM copied to clipboard

VM loses network connectivity on Emulated VLAN after some time

Open erikschul opened this issue 1 year ago • 3 comments

Describe the issue
I'm experiencing network problems when using Emulated VLAN for a forwarded port for ssh. It works fine for some time, but then it becomes unresponsive. Network fails. Ping normally works, but then stops working:

ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
From 10.0.2.15 icmp_seq=1 Destination Host Unreachable
From 10.0.2.15 icmp_seq=2 Destination Host Unreachable
From 10.0.2.15 icmp_seq=3 Destination Host Unreachable

and incoming ssh connections fail. Sometimes the VM also becomes unresponsive. Ubuntu still renders the cursor on mouse movement, but the window doesn't respond to mouse or keyboard input. Restarting the VM usually solves the problem, but occasionally the problem is immediately apparent.

Edit: Possible workaround After a lot of experimentation, I noticed that the screen would turn black, and possibly caused by power saving settings. Perhaps this is solved by explicitly disabling power saving (in KDE Plasma): image

Edit 2: Still suffers from the UI crashing, but the VM is responding over ssh.

Configuration

  • UTM Version: 4.4.5
  • macOS Version: 14.3
  • Mac Chip (Intel, M1, ...): M1

I've tried removing VirtFS and Display. Using QEMU (not Virtualization Framework).

Crash log

Debug log

Upload VM

erikschul avatar Feb 02 '24 15:02 erikschul

Sometimes the VM also becomes unresponsive. Ubuntu still renders the cursor on mouse movement, but the window doesn't respond to mouse or keyboard input

This also happens to me, usually after running for > 2 weeks. This is also correlated to a memory leak in UTM/QEMU, which could be related. Sometimes, just waiting fixes the problem, sometimes a restart is needed.

The reason the cursor still works is because, as far as I know, the cursor is drawn by the display, not the virtualized OS, so it is unaffected by the crash.

For me (I don't know what it is like for you), the crash affects both the UI, and the VM (I can't ssh into it from the host).

DUOLabs333 avatar Feb 09 '24 21:02 DUOLabs333

I have this issue too, QEMU with Linux guest, but with Shared Network. The issue appears in less than an hour.

mdenty avatar Feb 21 '24 08:02 mdenty