Slow internet connection in host and LXCs but not VMs

omersadeh

New Member
Nov 27, 2022
1
0
1
Hello,

I've encountered a strange issue with network connectivity and I though I'd try and ask here.
Internet connection is terribly slow from my host and (single) LXC but fine from any of the VMs I run.
I don't know how to approach this so I only added some basic information. Please let me know if there's anything else I should post that might help find the cause.

Thanks!

Speedtest from Proxmox host, LXC and one of the VMs:

Bash:
root@HOST:/etc/pve/lxc# speedtest
Retrieving speedtest.net configuration...
Testing from Partner Communications (<MY IP>)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Partner Communications (Petah Tikva) [11.73 km]: 2506.589 ms
Testing download speed................................................................................
Download: 2.37 Mbit/s
Testing upload speed......................................................................................................
Upload: 3.26 Mbit/s

omer@VM:~$ speedtest
Retrieving speedtest.net configuration...
Testing from Partner Communications (<MY IP>)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Active Cloud (Petah Tikva) [11.31 km]: 4.165 ms
Testing download speed................................................................................
Download: 304.64 Mbit/s
Testing upload speed......................................................................................................
Upload: 259.21 Mbit/s

omer@LXC ~$ speedtest
Retrieving speedtest.net configuration...
Cannot retrieve speedtest configuration
ERROR: <urlopen error [Errno -3] Temporary failure in name resolution>
omer@LXC ~$ speedtest
Retrieving speedtest.net configuration...
Testing from Partner Communications (<MY IP>)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by SPD Hosting LTD (Petah Tikwa) [11.31 km]: 4010.274 ms
Testing download speed................................................................................
Download: 0.54 Mbit/s
Testing upload speed......................................................................................................
Upload: 0.76 Mbit/s

Some info for debugging:

Bash:
root@pve:/etc/pve/lxc# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether 54:9f:35:1c:69:fe brd ff:ff:ff:ff:ff:ff
    altname enp1s0f0
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr1 state UP group default qlen 1000
    link/ether 54:9f:35:1c:6a:00 brd ff:ff:ff:ff:ff:ff
    altname enp1s0f1
4: enp12s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr2 state UP group default qlen 1000
    link/ether f4:e9:d4:b7:a9:a0 brd ff:ff:ff:ff:ff:ff
5: enp12s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master vmbr3 state DOWN group default qlen 1000
    link/ether f4:e9:d4:b7:a9:a2 brd ff:ff:ff:ff:ff:ff
6: idrac: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 54:9f:35:1c:6a:03 brd ff:ff:ff:ff:ff:ff
7: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 54:9f:35:1c:69:fe brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.16/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::569f:35ff:fe1c:69fe/64 scope link
       valid_lft forever preferred_lft forever
8: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 54:9f:35:1c:6a:00 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::569f:35ff:fe1c:6a00/64 scope link
       valid_lft forever preferred_lft forever
9: vmbr2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether f4:e9:d4:b7:a9:a0 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f6e9:d4ff:feb7:a9a0/64 scope link
       valid_lft forever preferred_lft forever
10: vmbr3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether f4:e9:d4:b7:a9:a2 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f6e9:d4ff:feb7:a9a2/64 scope link
       valid_lft forever preferred_lft forever
11: tap101i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr2 state UNKNOWN group default qlen 1000
    link/ether d2:de:34:f7:85:fe brd ff:ff:ff:ff:ff:ff
12: tap102i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr2 state UNKNOWN group default qlen 1000
    link/ether 26:42:50:e1:28:fd brd ff:ff:ff:ff:ff:ff
13: tap103i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr2 state UNKNOWN group default qlen 1000
    link/ether a6:d0:be:16:f9:fd brd ff:ff:ff:ff:ff:ff
15: tap105i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr2 state UNKNOWN group default qlen 1000
    link/ether aa:d6:bf:94:e6:95 brd ff:ff:ff:ff:ff:ff
16: veth104i0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr2 state UP group default qlen 1000
    link/ether fe:ce:3b:09:90:c2 brd ff:ff:ff:ff:ff:ff link-netnsid 0

root@pve:/etc/pve/lxc# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto eno2
iface eno2 inet manual

iface idrac inet manual

auto enp12s0f0
iface enp12s0f0 inet manual

auto enp12s0f1
iface enp12s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.16/24
        gateway 192.168.0.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge-ports eno2
        bridge-stp off
        bridge-fd 0

auto vmbr2
iface vmbr2 inet manual
        bridge-ports enp12s0f0
        bridge-stp off
        bridge-fd 0

auto vmbr3
iface vmbr3 inet manual
        bridge-ports enp12s0f1
        bridge-stp off
        bridge-fd 0

root@pve:/etc/pve/lxc# cat /etc/resolv.conf
search local
nameserver 4.4.4.4
nameserver 8.8.8.8
nameserver 1.1.1.1
 
I've encountered a strange issue with network connectivity and I though I'd try and ask here.
Internet connection is terribly slow from my host and (single) LXC but fine from any of the VMs I run.
I don't know how to approach this so I only added some basic information. Please let me know if there's anything else I should post that might help find the cause.
Maybe gateway 192.168.0.1 is extremely slow and the VM uses a different gateway? For further analyzis it's necessary to know configuration of VM (/etc/pve/qemu-server/<vm-id>.conf), container (/etc/pve/lxc/<ct-id>.conf) as well as network configuration from inside the VM.