If you bridge a Wi-Fi adapter to Hyper-V as I do
You may notice a significant drop in upload speed, which makes it difficult to transfer any file out of your computer. This has an effect on the host and your VMs.
More precisely, is the retransmission rate skyrockets, your NIC needs to retransmit many times to send a single packet out.
To fix this, we simply need to disable all offload features for our virtual network adapter.
Is the virtual network adapter on host, NOT the physical network adapter.
You don’t need to change any thing for your physical network adapter.
Fix for Host and Windows VMs
For example, the wifi adapter I use for Hyper-V isIntel(R) Wi-Fi 6E AX211 160MHz
And the associate virtual network adapter is
Hyper-V Virtual Ethernet Adapter #3
You can check it by using this commandGet-NetAdapter
Next, open Device Manager and open the properties of your virtual NIC, open tab “Advanced”
Disable all 6 options that contain “Offload”.
That’s it, Your wifi performance should now be back to normal.
Fix for Linux VMs
Create a script file with the following code
/usr/local/sbin/disable-offloading.sh
#!/bin/bash
# Change this to your virtual NIC that is using hosts wifi
INTERFACE="eth0"
ethtool -K $INTERFACE rx off
ethtool -K $INTERFACE tx off
ethtool -K $INTERFACE gso off
ethtool -K $INTERFACE gro off
ethtool -K $INTERFACE tso off
ethtool -K $INTERFACE lro off
Run it
sudo chmod +x /usr/local/sbin/disable-offloading.sh
sudo /usr/local/sbin/disable-offloading.sh
And now your VM should have full performance with wifi.
If you want to auto run the script on system starts, you can use rc.local file
echo '#!/bin/bash -e' >> /etc/rc.local
echo '/usr/local/sbin/disable-offloading.sh' >> /etc/rc.local
sudo chmod +x /etc/rc.local