Docker Swarm in LXC

liberodark

Active Member
Apr 26, 2021
113
25
33
31
Hi,

Have try to run docker swarm on LXC with PVE 7.3.
But have strange issue on my LXC with docker swarm :


Code:
systemctl status docker -l | grep warning
level=warning msg="Running modprobe ip_vs failed with message: `modprobe: WARNING: Module ip_vs not found in directory /lib/modules/5.15.74-1-pve`, error: exit status 1"

LXC Config : (OS Alma 8)

Code:
  cat /etc/pve/lxc/112.conf                                                                  
arch: amd64
cores: 4
features: fuse=1,nesting=1
hostname: xxxx
memory: 4096
net0: name=eth0,bridge=vmbr0,gw=10.17.102.254,hwaddr=B2:C3:79:C3:E0:75,ip=10.17.102.22/24,tag=102,type=veth
onboot: 1
ostype: centos
rootfs: netapp_sas:112/vm-112-disk-0.raw,size=25G
swap: 0
lxc.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: a
lxc.cap.drop:

In PVE Node :

Code:
cat /etc/modules-load.d/docker.conf
overlay
bonding
br_netfilter
iptable_mangle
iptable_nat
ip_vs
ip_vs_dh
ip_vs_ftp
ip_vs_lblc
ip_vs_lblcr
ip_vs_lc
ip_vs_nq
ip_vs_rr
ip_vs_sed
ip_vs_sh
ip_vs_wlc
ip_vs_wrr
nf_nat
xfrm_user
xt_conntrack
xt_MASQUERADE

Bash:
cat /etc/sysctl.conf
net.ipv4.ip_forward=1

Bash:
modinfo ip_vs
filename:       /lib/modules/5.15.74-1-pve/kernel/net/netfilter/ipvs/ip_vs.ko
license:        GPL
srcversion:     742A36D548EE60E025E5E19
depends:        nf_conntrack,nf_defrag_ipv6,libcrc32c
retpoline:      Y
intree:         Y
name:           ip_vs
vermagic:       5.15.74-1-pve SMP mod_unload modversions
parm:           conn_tab_bits:Set connections' hash size (int)

In LXC :
Bash:
lsmod | grep ip_vs
ip_vs_wrr              16384  0
ip_vs_wlc              16384  0
ip_vs_sh               16384  0
ip_vs_sed              16384  0
ip_vs_rr               16384  6
ip_vs_nq               16384  0
ip_vs_lc               16384  0
ip_vs_lblcr            16384  0
ip_vs_lblc             16384  0
ip_vs_ftp              16384  0
ip_vs_dh               16384  0
ip_vs                 172032  85 ip_vs_wlc,ip_vs_rr,ip_vs_dh,ip_vs_lblcr,ip_vs_sh,ip_vs_nq,ip_vs_lblc,xt_ipvs,ip_vs_wrr,ip_vs_lc,ip_vs_sed,ip_vs_ftp
nf_nat                 49152  5 xt_nat,nft_chain_nat,iptable_nat,xt_MASQUERADE,ip_vs_ftp
nf_conntrack          172032  6 xt_conntrack,nf_nat,xt_nat,nf_conntrack_netlink,xt_MASQUERADE,ip_vs
nf_defrag_ipv6         24576  2 nf_conntrack,ip_vs
libcrc32c              16384  7 nf_conntrack,nf_nat,dm_persistent_data,btrfs,nf_tables,ip_vs,sctp

Code:
modinfo ip_vs
modinfo: ERROR: Module alias ip_vs not found.


If you have any idea to help me ?
Probably have missing something...

Best Regards
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!