alpine-virt-3.19.X network issues under Hyper-V
Package Information
- Package name: linux-virt
- Package version: 3.19.X
- Alpine version: 3.19
- Alpine architecture: x86_64
Summary
Network issues in a VM under Hyper-V with the linux-virt kernel. linux-lts kernel is working as expected.
Below 2 iperf3 test. First with the linux-virt kernel the second with linux-lts kernel. Both tests are done in the same VM by booting alpine-virt-3.19.1-x86_64.iso vs alpine-standard-3.19.1-x86_64.iso. I have also testen alpine-virt-3.18.6-x86_64.iso and that one is working normal.
linix-virt iperf3
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 25.8 MBytes 216 Mbits/sec 1030 36.8 KBytes
[ 5] 1.00-2.00 sec 10.4 MBytes 87.0 Mbits/sec 557 17.0 KBytes
[ 5] 2.00-3.00 sec 15.2 MBytes 128 Mbits/sec 592 14.1 KBytes
[ 5] 3.00-4.00 sec 22.5 MBytes 189 Mbits/sec 969 12.7 KBytes
[ 5] 4.00-5.00 sec 21.2 MBytes 178 Mbits/sec 983 7.07 KBytes
[ 5] 5.00-6.00 sec 16.1 MBytes 135 Mbits/sec 1068 28.3 KBytes
[ 5] 6.00-7.00 sec 15.8 MBytes 132 Mbits/sec 725 12.7 KBytes
[ 5] 7.00-8.00 sec 10.0 MBytes 83.9 Mbits/sec 497 29.7 KBytes
[ 5] 8.00-9.00 sec 19.9 MBytes 167 Mbits/sec 1100 12.7 KBytes
[ 5] 9.00-10.00 sec 16.0 MBytes 134 Mbits/sec 852 14.1 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 173 MBytes 145 Mbits/sec 8373 sender
[ 5] 0.00-10.00 sec 170 MBytes 143 Mbits/sec
linix-lts iperf3
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 1.83 GBytes 15.7 Gbits/sec 0 2.82 MBytes
[ 5] 1.00-2.00 sec 1.85 GBytes 15.9 Gbits/sec 0 2.82 MBytes
[ 5] 2.00-3.00 sec 1.89 GBytes 16.3 Gbits/sec 43 2.82 MBytes
[ 5] 3.00-4.00 sec 1.91 GBytes 16.4 Gbits/sec 173 2.82 MBytes
[ 5] 4.00-5.00 sec 1.92 GBytes 16.5 Gbits/sec 56 2.82 MBytes
[ 5] 5.00-6.00 sec 1.92 GBytes 16.5 Gbits/sec 0 2.82 MBytes
[ 5] 6.00-7.00 sec 1.93 GBytes 16.6 Gbits/sec 4 2.82 MBytes
[ 5] 7.00-8.00 sec 1.94 GBytes 16.7 Gbits/sec 258 2.82 MBytes
[ 5] 8.00-9.00 sec 1.95 GBytes 16.7 Gbits/sec 0 2.82 MBytes
[ 5] 9.00-10.00 sec 1.94 GBytes 16.6 Gbits/sec 0 2.82 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 19.1 GBytes 16.4 Gbits/sec 534 sender
[ 5] 0.00-10.00 sec 19.1 GBytes 16.4 Gbits/sec receiver
I have tried to create a custom linux-virt kernel (using abuild). After 1 day of different kernel conf I couldn't find a good linux-virt config. So I decided to switch over to the linux-lts kernel.
The difference between lts and virt is not just the absence of meaningless drivers. It is more. so I am not sure that fixing this will not break virt for other hypervisors.
I would suggest that bringing virt for 3.20 more in line with lts and just throwing out a lot of pointless drivers. Or documenting that virt is not working well under Hyper-V.
Steps to reproduce
Boot alpine-virt-3.19.1-x86_64.iso vs alpine-standard-3.19.1-x86_64.iso. Bring up the network. Install iperf3 and run iperf3