-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu Server 20.04 VM networking stops working intermittently #3372
Comments
The CPU usage might be unrelated. I've just had the CPU issue again - where QEMULauncher is at a minimum of 100% - but the VM networking is still working fine. |
same problem. port forwarding stop working, cannot SSH to the VM from the host Configuration UTM Version: 2.4.1 |
I've had it happen again just now. Turns out the debug log is not particularly exciting
|
I was able to restore networking by running this in the console window:
|
@polynomialspace Thanks for doing some extra digging! After I read your comment I tried disabling the firewall, but I just saw the VM networking die again - with firewall off. So maybe it's not a factor? |
Got the issue with a ubuntu 20.04.3 guest (x64) on macos 12.1 (21C52) (Apple Silicon). |
I've been encountering the same issue, and the fix by @tallytarik works to fix it at least temporarily.
|
Here to add a "me too" on Apple M1 host and arm64 Ubuntu guest. Networking simply stops working, suddenly and without any repeatable causal pattern, as far as I can discern. I cannot SSH into the guest, nor can I reach it from any sources that are external to the VM. The window manager still works, and I can either restart the interface as outlined above or reboot the VM to workaround until it strikes again. I do not have the symptom of "uses 100% CPU" during those times. Other than network connections failing, the system seems to be running as expected. |
For me it occurred when I had call on the host OS using Microsoft teams, don’t know if coincidence, having a workaround will help, thanks! |
I've been seeing this too. I originally thought that it was happening around network changes, because I would find the VM networking dead after the wifi disconnects (due to the issue with 80MHz channel width). It has been better since I addressed that a few days ago, but it's happened twice today without an associated loss of wifi connectivity. I checked for it around other network transitions (connecting and disconnecting a VPN), but it seemed to still be working. I then found it dead again about 30 minutes later. |
My Ubuntu VM network just dropped again in the middle of using it, but the |
Hi all,
This issue is vey easy to reproduce on latest opensuse leap + sharing a big file (over 10 GB) via ssh. It is freezing every time. I can provide logs if necessary.
Wysłane z iPhone'a
… Wiadomość napisana przez Andrew Gaffney ***@***.***> w dniu 23.02.2022, o godz. 17:13:
My Ubuntu VM network just dropped again in the middle of using it, but the ip link set dev <device> down/up command suggested above worked to bring it back.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.
|
Something similar seems to happen when using Lima, which also uses QEMU. |
I keep getting |
That sounds like you don't have the |
Oh... I was running it on the host machine. The commands ran successfully on the Ubuntu VM, but the network problem persists. Any help here?? |
Same issue for me as well. I have noticed it with the pre-built ununtu 20.04 image from the gallery. All networking services become randomly unavailable.
This solution is the only one I have found so far. |
Same issue here, sometimes restart the VM helps to reconnect to it and sometimes not, need to restart completely the mac. I will try the command to down up the network link to see if it helps. |
I'm also getting this, Ubuntu 22.10 guest, macOS 13.3.1 host on Intel, running on the Apple Virtualisation backend (not qemu). Toggling the network interface on/off from the gnome shell top right menu also works to restore connectivity, at which point VPN etc. must be reconnected. Similar to a previous commenter, I am using Microsoft Teams on the host mac and it might be correlated. I also have a USB-C ethernet interface and subjectively seem to experience the networking failures more when both that and wifi are plugged in and enabled, although I get it when just using wifi as well. |
I had this same issue and it was driving me nuts. I finally decided to try changing the Emulated Network Card from 'virtio-net-pci' to 'virtio-net-device'. It's been a week now without any loss of network. Now if I can just get GL display drivers to not randomly lock up, this work mac can be a Linux desktop all the time. Sooo close I can taste it. |
This works for me and needs to be done after every reboot: |
I started getting this issue within the last two months (which is weird as this is a very old issue). On both Ubuntu and RHEL the network completely dies after (usually hours or days) but now more frequently. Sometimes minutes or an hour. I can solve this by setting the Network device to net-virtio-device, but you can only do this on one VM at a time, so only one of my VMs avoids this issue. |
I ended up creating this script that periodically checks if the internet is up, and if not, automatically restarts the interface, based on the solution in this issue. #!/bin/bash
if [ $(whoami) != root ]
then
echo This command must be run as root >&2
exit 1
fi
while true
do
now=$(date +'%Y-%m-%dT%H:%M:%S')
if curl --silent --show-error --max-time 5 https://cloudflare-ipfs.com/ipfs/bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku
then
echo "$now - Internet is OK"
else
echo "$now - Internet is not OK"
ip link set enp0s1 down
ip link set enp0s1 up
fi
sleep 15
done Notes:
|
This is happening for me too, although the solution to restart networking with Host environment: Mac 14.2.1 (23C71) (Intel) I've also tried disabling/enabling networking through the guest Ubuntu UI, but that doesn't work either. |
Same here, after running the latest updates on Ubuntu 22.04.03 LTS. The strange thing is, this is a VM that has been running over 6 months, and just this week - after the updates, it started falling apart. |
I've had a similar issue, except occurring around once a day, figured out that it's related to Netplan not applying the default route when updating the DHCP lease. More info on this can be found here, replacing Netplan with NetworkManager solved this for me. |
@illixion hmm mine was already set to NetworkManager. |
Describe the issue
I'm running a Ubuntu Server 20.04 VM according to the setup guide.
Every so often, the VM networking stops working while it is running. The VM can no longer access the internet, and I can no longer SSH from the host to the VM. The VM console window still works, and I'm able to log in and use the VM that way. I can shut down and restart the VM, and networking works again.
I've noticed that when networking stops working, the CPU usage for QEMULauncher sits at 100%. Nothing inside the VM (checked with
htop
) is using this much CPU.It happens randomly - I can't reproduce it on demand. I've been running this VM daily for a couple of weeks, and I've seen this issue ~5 times. Once it happened twice (after a restart) within about 5 minutes.
Configuration
Crash log
N/A
Debug log
Will add ASAP - sorry, I enabled debug logging earlier, but have since restarted the VM. I'll wait for the issue to happen again and attach the debug log.
Upload VM
config.plist.txt
The text was updated successfully, but these errors were encountered: