utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.3k stars 1.31k forks source link

networking doesn't recover after macbook was on sleep #4573

Open meox opened 1 year ago

meox commented 1 year ago

Describe the issue
Start a VM with a bridge network adapter, close the macbook, wait a little bit, reopen the macbook the networking doesn't works anymore

Configuration

Workaround Close VMs & UTM and start it again

miku-fan commented 11 months ago

I‘v encountered the same issue, have you solved it?

aca commented 10 months ago

Same with https://github.com/utmapp/UTM/issues/4221

I'm experiencing two issues.

1) MAC -> VM route configuration disappear when I change network on mac. I have to do this on mac

sudo ip route add 192.168.65.0/24 dev bridge100

2) VM -> internet Don't know why, must close vm and restart.

gretchenfrage commented 8 months ago

I am also experiencing this. Existing SSH connections freeze and new SSH connections hang when attempting to make them after sleeping (as well as other TCP connections). Apple M2 Pro, macOS Ventura 13.6, UTM 4.4.4 (92), Ubuntu Server for ARM 22.04.3. Unfortunately this may make UTM unusable for my use case.

disintegrator commented 8 months ago

5986 might be related

gretchenfrage commented 8 months ago

I'm checking to see whether this is solved by simply switching from Ubuntu to Debian. A basic test I tried to do with sleeping for 5 minutes didn't encounter any problems, so hopefully that just works, but I'll have to see if it comes up again with time.

gretchenfrage commented 8 months ago

Switching to debian in the VM has fixed this entirely.

eccgecko commented 3 months ago

Switching to debian in the VM has fixed this entirely.

I don't particularly want to migrate my entire ubuntu installation to debian just to fix this issue, but I think I might have to if this doesn't get fixed soon.

Is there any news on a fix for this problem? Is there anything UTM can even do to fix it, or is it entirely reliant on Ubuntu fixing it given that switching to debian is a workaround?

Really annoying bug that basically renders my headless ubuntu server running on a remote mac mini completely useless for the tasks I set it up to do (such as logging etc).

ralphmason commented 2 months ago

I have the same issue with Debian. Mac mini M2. The thing is the ip address inside the VM is missing like the Linux install has received some signal.