UTM
UTM copied to clipboard
VM loses network connectivity on Emulated VLAN after some time
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):
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
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).
I have this issue too, QEMU with Linux guest, but with Shared Network. The issue appears in less than an hour.