Unable To add vmbr card

Code:
ifup vmbr1 -v
info: requesting link dump
info: requesting address dump
info: requesting netconf dump
info: loading builtin modules from ['/usr/share/ifupdown2/addons']
info: module ppp not loaded (module init failed: no /usr/bin/pon found)
info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl found)
info: executing /sbin/sysctl net.bridge.bridge-allow-multiple-vlans
info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)
info: executing /bin/ip rule show
info: executing /bin/ip -6 rule show
info: module ethtool not loaded (module init failed: /sbin/ethtool: not found)
info: address: using default mtu 1500
info: address: max_mtu undefined
info: executing /usr/sbin/ip vrf id
info: mgmt vrf_context = False
info: dhclient: dhclient_retry_on_failure set to 0
info: executing /bin/ip addr help
info: address metric support: OK
info: module ethtool not loaded (module init failed: /sbin/ethtool: not found)
info: module ppp not loaded (module init failed: no /usr/bin/pon found)
info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)
info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl found)
info: looking for user scripts under /etc/network
info: loading scripts under /etc/network/if-pre-up.d ...
info: loading scripts under /etc/network/if-up.d ...
info: loading scripts under /etc/network/if-post-up.d ...
info: loading scripts under /etc/network/if-pre-down.d ...
info: loading scripts under /etc/network/if-down.d ...
info: loading scripts under /etc/network/if-post-down.d ...
info: using mgmt iface default prefix eth
info: processing interfaces file /etc/network/interfaces
info: vmbr1: running ops ...
info: vmbr1: bridge already exists
info: vmbr1: applying bridge settings
info: vmbr1: reset bridge-hashel to default: 4
info: vmbr1: reset bridge-hashmax to default: 512
info: reading '/sys/class/net/vmbr1/bridge/stp_state'
info: vmbr1: netlink: ip link set dev vmbr1 type bridge (with attributes)
info: executing /sbin/sysctl net.mpls.conf.vmbr1.input=0
info: writing '0' to file /proc/sys/net/ipv4/conf/vmbr1/arp_accept
info: executing /etc/network/if-pre-up.d/wait_for_link_up
 
Code:
May 11 14:47:44 ns3054013 ntpd[1136]: Listen normally on 13 vmbr1 192.168.1.1:123
May 11 14:47:44 ns3054013 ntpd[1136]: Listen normally on 14 vmbr0 [fe80::ec4:7aff:fe6c:d49c%11]:123
May 11 14:47:44 ns3054013 ntpd[1136]: bind(26) AF_INET6 fe80::50e5:baff:fe55:64f8%12#123 flags 0x11 failed: Cannot assign requested address
May 11 14:47:44 ns3054013 ntpd[1136]: unable to create socket on vmbr1 (15) for fe80::50e5:baff:fe55:64f8%12#123
May 11 14:47:44 ns3054013 ntpd[1136]: failed to init interface for address fe80::50e5:baff:fe55:64f8%12
May 11 14:47:44 ns3054013 ntpd[1136]: new interface(s) found: waking up resolver
May 11 14:47:46 ns3054013 ntpd[1136]: Listen normally on 16 vmbr1 [fe80::50e5:baff:fe55:64f8%12]:123
May 11 14:47:46 ns3054013 ntpd[1136]: new interface(s) found: waking up resolver

so ; im unable to connect vm to internet
andi when i restart the server ; ineed
Code:
to execute ip link set vmbr1 up
because the interface is down
and when i restart the server when my interface file inculd the option
Code:
auto vmbr0
the server dont restart and still blocked
The logs are from ntpd service which are not relevant here

You need the vmbr0 in your interfaces file so that you can connect to internet

Your vmbr1 interface should be up and running without the need for any manual operations. How did you checked that the bridge wasn't up ?

Your vm is not going to have internet unless you specify the correct static networking on it ( update /etc/network/interfaces inside the vm).
 
  • Like
Reactions: mo3ez
Code:
root@ns3054013:~# brctl show
bridge name    bridge id        STP enabled    interfaces
fwbr100i0        8000.9ad394c8c3eb    no        fwln100i0
                            tap100i0
vmbr0        8000.0cc47a6cd49c    no        eno1
vmbr1        8000.ba45312c04d8    no        fwpr100p0


syslog
Code:
7 ns3054013 systemd[1]: Created slice qemu.slice.
May 11 15:53:17 ns3054013 systemd[1]: Started 100.scope.
May 11 15:53:17 ns3054013 systemd-udevd[2390]: Using default interface naming scheme 'v240'.
May 11 15:53:17 ns3054013 systemd-udevd[2390]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 11 15:53:17 ns3054013 systemd-udevd[2390]: Could not generate persistent MAC address for tap100i0: No such file or directory
May 11 15:53:17 ns3054013 kernel: [  287.783267] device tap100i0 entered promiscuous mode
May 11 15:53:17 ns3054013 ovs-vsctl: ovs|00001|vsctl|INFO|Called as /usr/bin/ovs-vsctl del-port tap100i0
May 11 15:53:17 ns3054013 ovs-vsctl: ovs|00002|db_ctl_base|ERR|no port named tap100i0
May 11 15:53:17 ns3054013 ovs-vsctl: ovs|00001|vsctl|INFO|Called as /usr/bin/ovs-vsctl del-port fwln100i0
May 11 15:53:17 ns3054013 ovs-vsctl: ovs|00002|db_ctl_base|ERR|no port named fwln100i0
May 11 15:53:17 ns3054013 systemd-udevd[2390]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 11 15:53:17 ns3054013 systemd-udevd[2390]: Could not generate persistent MAC address for fwbr100i0: No such file or directory
May 11 15:53:17 ns3054013 systemd-udevd[2403]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.

/etc/network/interfaces

Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

auto vmbr0
iface vmbr0 inet dhcp
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

iface vmbr1 inet static
    address 192.168.1.254/24
    netmask 255.255.255.0
    broadcast 192.168.1.255
    bridge_ports none
    bridge_stp off
    bridge_fd 0
    post-up echo 1 > /proc/sys/net/ipv4/ip_forward
    post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
    post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE

i dont where were is the problem


Code:
ifup vmbr1 -v
info: requesting link dump
info: requesting address dump
info: requesting netconf dump
info: loading builtin modules from ['/usr/share/ifupdown2/addons']
info: module ppp not loaded (module init failed: no /usr/bin/pon found)
info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl found)
info: executing /sbin/sysctl net.bridge.bridge-allow-multiple-vlans
info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)
info: executing /bin/ip rule show
info: executing /bin/ip -6 rule show
info: module ethtool not loaded (module init failed: /sbin/ethtool: not found)
info: address: using default mtu 1500
info: address: max_mtu undefined
info: executing /usr/sbin/ip vrf id
info: mgmt vrf_context = False
info: dhclient: dhclient_retry_on_failure set to 0
info: executing /bin/ip addr help
info: address metric support: OK
info: module ethtool not loaded (module init failed: /sbin/ethtool: not found)
info: module ppp not loaded (module init failed: no /usr/bin/pon found)
info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)
info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl found)
info: looking for user scripts under /etc/network
info: loading scripts under /etc/network/if-pre-up.d ...
info: loading scripts under /etc/network/if-up.d ...
info: loading scripts under /etc/network/if-post-up.d ...
info: loading scripts under /etc/network/if-pre-down.d ...
info: loading scripts under /etc/network/if-down.d ...
info: loading scripts under /etc/network/if-post-down.d ...
info: using mgmt iface default prefix eth
info: processing interfaces file /etc/network/interfaces
info: vmbr1: running ops ...
info: vmbr1: bridge already exists
info: vmbr1: applying bridge settings
info: vmbr1: reset bridge-hashel to default: 4
info: reading '/sys/class/net/vmbr1/bridge/stp_state'
info: vmbr1: netlink: ip link set dev vmbr1 type bridge (with attributes)
info: vmbr1: port fwpr100p0 will stay enslaved as it matches with bridge-ports-condone-regex
info: vmbr1: applying bridge configuration specific to ports
info: executing /sbin/bridge fdb replace ba:45:31:2c:04:d8 dev vmbr1  self
info: executing /sbin/sysctl net.mpls.conf.vmbr1.input=0
info: vmbr1: netlink: ip addr add 192.168.1.254/24 dev vmbr1 broadcast 192.168.1.255
error: netlink: vmbr1: cannot add address 192.168.1.254/24 dev vmbr1: 'str' object has no attribute 'packed'
info: executing /etc/network/if-pre-up.d/wait_for_link_up
info: executing /etc/network/if-pre-up.d/static_ipv6
info: executing /etc/network/if-up.d/000resolvconf
info: executing /etc/network/if-up.d/postfix
info: executing echo 1 > /proc/sys/net/ipv4/ip_forward
info: executing iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
info: exit status 1
 
Last edited:
1620750730776.png


when i add auto vmbr1 in /etc/network/interface files and i reboot the server i got this :( :eek::eek:
 
Change the address 192.168.1.254/24 to address 192.168.1.254 on /etc/network/interfaces for vmbr1

You can retry the new network setup without a reboot with systemctl restart networking.service or just reboot
 
  • Like
Reactions: mo3ez
How long does the "Network initialization" takes?

How to ifconig and ip -br a look directly after reboot as soon as you enter the shell?
 
  • Like
Reactions: mo3ez
now the server is in mode rescue

hi is always blocked in Network initialization
 
I can only boot into rescue mode but not sure how to fix it there.

any advice would be grateful
 
took another look on your network configuration. vmbr1 is not coming up cause you are missing the auto vmbr1
 
  • Like
Reactions: mo3ez
I can only boot into rescue mode but not sure how to fix it there.

any advice would be grateful
type your root password on the prompt which will drop you on a root shell. from there fix
/etc/network/interfaces and reboot
 
  • Like
Reactions: mo3ez
took another look on your network configuration. vmbr1 is not coming up cause you are missing the auto vmbr1
whene i add the auto vmbr1 , network not restart and when i reboot the server still blocked and nor run like now

the server is in OVH cloud

im in rescue mod now
 
/etc/network/interface
Code:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

ifconfig

Code:
eth0      Link encap:Ethernet  HWaddr 0c:c4:7a:6c:d4:9c
          inet addr:137.X.X.X  Bcast:137.X.X.X  Mask:255.255.255.0
          inet6 addr: 2001:41d0:1004:3168::/64 Scope:Global
          inet6 addr: fe80::ec4:7aff:fe6c:d49c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:653276 errors:0 dropped:0 overruns:0 frame:0
          TX packets:260268 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:731403067 (697.5 MiB)  TX bytes:38356552 (36.5 MiB)
          Memory:fb120000-fb13ffff

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)



ip addr


Code:
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: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000


    link/ether da:35:43:50:a0:53 brd ff:ff:ff:ff:ff:ff


3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000


    link/ether 76:c9:c8:dc:48:fa brd ff:ff:ff:ff:ff:ff


4: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32


    link/ether 66:0f:28:5c:8a:bc brd ff:ff:ff:ff:ff:ff


5: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32


    link/ether e2:d9:71:9b:de:a8 brd ff:ff:ff:ff:ff:ff


6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000


    link/ether 0c:c4:7a:6c:d4:9c brd ff:ff:ff:ff:ff:ff


    inet 137.X.X.X/24 brd 137.X.X.X scope global eth0


       valid_lft forever preferred_lft forever


    inet6 2001:41d0:1004:3168::/64 scope global


       valid_lft forever preferred_lft forever


    inet6 fe80::ec4:7aff:fe6c:d49c/64 scope link


       valid_lft forever preferred_lft forever


7: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000


    link/ether 0c:c4:7a:6c:d4:9d brd ff:ff:ff:ff:ff:ff


8: teql0: <NOARP> mtu 1500 qdisc noop state DOWN group default qlen 100


    link/void


9: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000


    link/ipip 0.0.0.0 brd 0.0.0.0


10: gre0@NONE: <NOARP> mtu 1476 qdisc noop state DOWN group default qlen 1000


    link/gre 0.0.0.0 brd 0.0.0.0


11: gretap0@NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN group default qlen 1000


    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff


12: erspan0@NONE: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN group default qlen 1000


    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff


13: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000


    link/sit 0.0.0.0 brd 0.0.0.0


14: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN group default qlen 1000


    link/tunnel6 :: brd :
 
Last edited:
Is ip link set vmbr1 up working for you after a reboot?
Code:
root@:~# ip link set vmbr1 up
Cannot find device "vmbr1"

vmbr1 don't be up after reboot because i delete auto vmbr1 from etc/network/interface

the huge problem is whene i add auto vmbr1 i cant restart service network and when i reboot the server still blocked
 
Last edited:
also, if you are at ovh, can you check that you don't have files in
/etc/network/interfaces.d/ ?

I known 1user having a /etc/network/interfaces.d/50-cloud-init files installed by default by ovh giving some reload error too
 
ifup vmbr1 -d


Code:
debug: args = Namespace(CLASS=None, all=False, debug=True, excludepats=None, force=False, iflist=['vmbr1'], interfacesfile=None, interfacesfileformat='native', nldebug=False, noact=False, noaddons=False, nocache=False, perfmode=False, printdependency=None, quiet=False, skipupperifaces=False, syntaxcheck=False, syslog=False, type=None, verbose=False, version=None, withdepends=False)


debug: creating ifupdown object ..


info: requesting link dump


info: requesting address dump


info: requesting netconf dump


debug: nlcache: reset errorq


debug: {'use_daemon': 'no', 'template_enable': '1', 'template_engine': 'mako', 'template_lookuppath': '/etc/network/ifupdown2/templates', 'default_interfaces_configfile': '/etc/network/interfaces', 'disable_cli_interfacesfile': '0', 'addon_syntax_check': '0', 'addon_scripts_support': '1', 'addon_python_modules_support': '1', 'multiple_vlan_aware_bridge_support': '1', 'ifquery_check_success_str': 'pass', 'ifquery_check_error_str': 'fail', 'ifquery_check_unknown_str': '', 'ifquery_ifacename_expand_range': '0', 'link_master_slave': '0', 'delay_admin_state_change': '0', 'ifreload_down_changed': '0', 'addr_config_squash': '0', 'ifaceobj_squash': '0', 'adjust_logical_dev_mtu': '1', 'state_dir': '/run/network/'}


info: loading builtin modules from ['/usr/share/ifupdown2/addons']


info: module openvswitch not loaded (module init failed: no /usr/bin/ovs-vsctl found)


info: module openvswitch_port not loaded (module init failed: no /usr/bin/ovs-vsctl found)


info: module ppp not loaded (module init failed: no /usr/bin/pon found)


info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl found)


debug: bridge: using reserved vlan range (0, 0)


debug: bridge: init: warn_on_untagged_bridge_absence=False


debug: bridge: init: vxlan_bridge_default_igmp_snooping=None


debug: bridge: init: arp_nd_suppress_only_on_vxlan=False


info: executing /sbin/sysctl net.bridge.bridge-allow-multiple-vlans


debug: bridge: init: multiple vlans allowed True


info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)


info: executing /bin/ip rule show


info: executing /bin/ip -6 rule show


info: module ethtool not loaded (module init failed: /sbin/ethtool: not found)


info: address: using default mtu 1500


info: address: max_mtu undefined


info: executing /usr/sbin/ip vrf id


info: mgmt vrf_context = False


info: dhclient: dhclient_retry_on_failure set to 0


info: executing /bin/ip addr help


info: address metric support: OK


info: module ethtool not loaded (module init failed: /sbin/ethtool: not found)


info: module ppp not loaded (module init failed: no /usr/bin/pon found)


info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)


info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl found)


info: module openvswitch_port not loaded (module init failed: no /usr/bin/ovs-vsctl found)


info: module openvswitch not loaded (module init failed: no /usr/bin/ovs-vsctl found)


info: looking for user scripts under /etc/network


info: loading scripts under /etc/network/if-pre-up.d ...


info: loading scripts under /etc/network/if-up.d ...


info: loading scripts under /etc/network/if-post-up.d ...


info: loading scripts under /etc/network/if-pre-down.d ...


info: loading scripts under /etc/network/if-down.d ...


info: loading scripts under /etc/network/if-post-down.d ...


info: using mgmt iface default prefix eth


info: processing interfaces file /etc/network/interfaces


debug: vmbr0: evaluating port expr '['eno1']'


debug: scheduling '['pre-up', 'up', 'post-up']' for ['vmbr1']


debug: dependency graph {


    lo : []


    eno1 : []


    eno2 : []


    vmbr0 : ['eno1']


    vmbr1 : []


}


info: vmbr1: running ops ...


debug: vmbr1: pre-up : running module xfrm


debug: vmbr1: pre-up : running module link


debug: vmbr1: pre-up : running module bond


debug: vmbr1: pre-up : running module vlan


debug: vmbr1: pre-up : running module vxlan


debug: vmbr1: pre-up : running module usercmds


debug: vmbr1: pre-up : running module bridge


info: vmbr1: netlink: ip link add dev vmbr1 type bridge


info: vmbr1: applying bridge settings


info: vmbr1: set bridge-fd 0


info: vmbr1: set bridge-mcsnoop yes


info: reading '/sys/class/net/vmbr1/bridge/stp_state'


info: vmbr1: netlink: ip link set dev vmbr1 type bridge (with attributes)


debug: attributes: {1: 0, 23: True}


debug: vmbr1: pre-up : running module bridgevlan


debug: vmbr1: pre-up : running module tunnel


debug: vmbr1: pre-up : running module vrf


debug: vmbr1: pre-up : running module address


info: executing /sbin/sysctl net.mpls.conf.vmbr1.input=0


info: writing '1


' to file /proc/sys/net/ipv4/conf/vmbr1/forwarding


info: writing '1


' to file /proc/sys/net/ipv6/conf/vmbr1/forwarding


info: vmbr1: netlink: ip addr add 192.168.1.254/24 dev vmbr1


info: writing '0' to file /proc/sys/net/ipv4/conf/vmbr1/arp_accept


debug: vmbr1: pre-up : running script /etc/network/if-pre-up.d/static_ipv6


info: executing /etc/network/if-pre-up.d/static_ipv6


debug: vmbr1: pre-up : running script /etc/network/if-pre-up.d/wait_for_link_up


info: executing /etc/network/if-pre-up.d/wait_for_link_up
 
Last edited:
also, if you are at ovh, can you check that you don't have files in
/etc/network/interfaces.d/ ?

I known 1user having a /etc/network/interfaces.d/50-cloud-init files installed by default by ovh giving some reload error too
yes i have the file
Code:
root@ns:/etc/network/interfaces.d# cat 50-cloud-init
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
auto lo
iface lo inet loopback
    dns-nameservers 213.186.33.99

auto eth0
iface eth0 inet dhcp
    mtu 1500
 
i succes to up vmbr1 manuel and i have the intetnet on my VM

thene i add auto vmbr1 in interface file and i restart service networking , it's OK ,

But i reboot the server and here we agin in the same probleme , server still blocked

1620827690056.png
 

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!