Proxmox VE Network not configurable

haydar.altintas

New Member
Aug 5, 2020
4
0
1
24
Hi,
After installation and reboot of the Proxmox VE (pve-manager/6.3-2/22f57405 (running kernel: 5.4.78-2-pve), same on 6.4 and 7)
i try to add a bond device.
i create the bonds
I install ifupdown2.
Empty bonds and bridges will be created.

If i add a network eno3+eno4 to the bond or bridge i get an error

If i apply the configuration i ´ll get
"command 'ifreload -a' failed: exit code 1"

Code:
# 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

iface eno1 inet manual

iface eno2 inet manual

auto eno3
iface eno3 inet manual

auto eno4
iface eno4 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves none
        bond-miimon 100
        bond-mode balance-rr

auto bond1
iface bond1 inet manual
        bond-slaves eno3 eno4
        bond-miimon 100
        bond-mode 802.3ad

auto vmbr0
iface vmbr0 inet static
        address 192.168.100.22/24
        gateway 192.168.100.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
 
Have you tried to run ifreload -a manually on the CLI? It should give you a more detailed error which hopefully helps to figure out what is going wrong.
 
Have you tried to run ifreload -a manually on the CLI? It should give you a more detailed error which hopefully helps to figure out what is going wrong.
look like it is not creating the bonding_master file
neither the bond creation does not create any bond directories

ifreload -a
warning: error while writing to file /sys/class/net/bonding_masters: [Errno 13] Permission denied: '/sys/class/net/bonding_masters'
error: bond0: skipping slave none, does not exist
warning: error while writing to file /sys/class/net/bonding_masters: [Errno 13] Permission denied: '/sys/class/net/bonding_masters'
error: netlink: eno3: cannot enslave link eno3 to bond1: ifname bond1 not present in cache
 
I'm experiencing the same thing. I get:
error: bond0: skipping slave none, does not exist

Here is my interfaces setup:
Bash:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
        bond_mode active-backup
        bond-master     bond0
        hwaddress       9c:b6:d0:60:b3:c3

auto enp4s0
iface enp4s0 inet dhcp
        bond_mode active-backup
        bond-master     bond0
        hwaddress       4c:cc:6a:7d:ff:bf

auto bond0
iface bond0 inet dhcp
        hw-address              4c:cc:6a:7d:ff:bf
        bond-slaves             none
        bond-miimon             200
        bond-mode               active-backup
        bond-primary            enp4s0
        bond-fail_over_mac      none
        bond-primary_reselect   always
        bond-updelay            200
        bond-downdelay          0

I did this setup inspired by this post: (as I am trying to achieve the same thing)
https://forums.raspberrypi.com/viewtopic.php?f=28&t=166355&p=1422254#p1420729

I have also tried to reinstall 5.4.78-2-pve like @haydar.altintas suggested, but I am using version 5.15.53-1-pve.
Nevertheless, I have run the reinstall command using the same version that I currently have.

Please advise what I should do.

Thanks!
PS: Once I have the bond0 fully working, I will pass it as bridge to vmbr0 to be used by my vms in proxmox. Please advise if there is any other way to achieve this. (I have tried using iptables before, but it did not work)
 
@arminanton not sure that pi setup is the way to go with ifupdown2 and proxmox.

Not part of your question, but Proxmox should have a static address somewhere so that can reliably get to it from the network. you may already have this if not all of /etc/network/interfaces is copied over.

Couple of caveats, I am unfamiliar with using wlan directly on proxmox, but outside that, specifically to your question (and you can create an active backup bond through the GUI as well) I would first try the below.

Code:
auto lo
iface lo inet loopback

auto wlan
iface wlan0 inet manual

auto enp4s0
iface enp4s0 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves             enp4s0 wlan
        bond-miimon             200
        bond-mode               active-backup
        bond-primary            enp4s0

Then add bond0 to vmbr0
 
Thank you for taking time to review my message.

I have defined DHCP IP reservation for wlan0 and enp4s0 based on their mac address. I did not specify a fixed IP on the interfaces itself because this is a laptop and I eventually go other places with it. I could access the port by the machine's hostname (even if the lan IP is different).

Assigning bond0 as bridge port to vmbr0 works like a charm, but I actually wanted to use NAT masquarede or routing out of the bond0 to vmbr0 because routers usually don't like when different mac addresses are being passed through wlan (a problem that does not exist with eth).

Let me know your thoughts

PS: I will try your version as well and report back.

PS #2: Ideally, I wanted to have a "virtual sublan" for my vms, like my router lan is 192.168.1.1/24 and our of my proxmox IP (192.168.1.155) I wanted to have a vlan (I guess out of openvswitch?!) that would be used specifically to my vms (like 10.10.10.1/24). I'm using bond0 as active-backup to have network availability regardless if I am using cable or wifi.
 
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!