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
 
@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
 

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!