Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VM/network issues.

Featured Replies

On 2/24/2022 at 4:10 AM, Hanfufu said:

I also saw this, under IPv6 there are lots of discarded packets.

I also disabled IPv6 on the VM a while back, to make sure that it didnt cause problems.

Also i posted a screenshot of Network Settings, showing something odd with IPv6 route, but im not a network expert so dont know if its relevant.

 

3_ipv6_packet_loss.png

4_ipv6-route.png

 

For whatever reason mentioning ipv6 gave me an odd idea about my VM having an error in the network config. I sort of solved my problem on accident, but I'll still share how I did it for anyone who is trying to solve this problem for linux distros. I am by no means a professional so bare with me... lol

 

I run headless VMs that only have black terminals so I don't have fancy GUI displays like yall do, but I will try my best to explain the tools I used to prove my issue is related to packet loss and IPV6

 

I run ubuntu server 22.04

VMDistroInfo.png.9b35c8be00e462d8d2c9421bac052ffc.png

 

First off I knew I was already having an issue with high packet loss because my ssh sessions would consistently break every 5 minutes or so.

 

To prove my problem in greater detail I ran an iperf test. On my unraid server I run an Iperf server in a docker. iperf is for benchmarking network bandwidth and transfer rate stuff. I used iperf on the VM to run a bidirectional data transfer test between the VM host and VM guest for 30 seconds.

VMIperfTest2.png.ca88657cd83b41b77f95c0592aa85d5f.png

 

The test output shows the packets doing as they should until suddenly the connection is dropped by the unraid server for no apparent reason which usually means there is a timeout error going on somewhere. Anytime I observe utterly dog water network performance I quickly consider the probable possibility there is something very wrong with the network configuration on the VM operating system. I ran the test again just to eliminate any false positives. This test was dropped almost immediately so I moved on to investigating the cause for so many packet drops.

 VMIperfTest1.png.f2468bce7f860591fe0f3920e73288d0.png

 

There is about a baker's dozen posts about people correlating their VM connection issues with a 100% spike on a single thread in unraid. I believe this correlation is absolutely correct, but in my perspective I see most people get it wrong by treating the spike as a cause of their problems rather than a symptom from an underlying problem. To me it makes perfect sense that a fully saturated cpu thread would happen due to a misbehaving virtual network adapter. I strongly think unraid is forcing the VM network adapter to crash repeatedly because the over saturated thread simply aborts all pending tasks when it reaches 100% usage.

 

UnraidCore100.png.5fcaf783f1844e3634e29a2c6f7a04cd.png

 

I'm not really sure why my mind jumped to this, but I suddenly remembered reading somewhere that virtual network adapters can't handle IPV6. I honestly have no idea why I thought of this, but I took a look-see at the Netplan configurating for ubuntu. In there I discovered I mistakenly enabled IPV6 DHCP on the VM. I commented out the line for DHCP IPV6 and applied the configuration. 

VMNetplanConfig.png.c496ee933dbdda55f492c9ef762527e9.png

 

After restarting the NetworkManager my packet loss issue was completely gone. It seems in my case the VM was constantly making DHCP requests to the network gateway, but due to some issue with IPV6 addresses the virtual network adapter blocks the VM from acquiring the address it asked for. Essentially this puts the VM and unraid into a infinite loop of DHCP requests that the virtual adapter will block, over-saturating the cpu thread, crashing the virtual network adapter, then dropping all active connections to and from the VM. The loop starts again when the virtual network adapter restarts, allowing the VM to make another DHCP request for an IPV6 address to the gateway.

 

That is my best explanation, but its probably not 100% accurate. Hopefully some of yall will find this information useful.

Edited by JD1099

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.