[SOLVED] vmbr0 problems

unecc

New Member
Aug 14, 2023
17
0
1
I know, I did something stupid: I installed webmin via script without selecting a container but on the proxmox partition. Prosxmox starts but does not connect to the network. I have to force ip and activation of eno1 to connect it to the network but I have problems with vmbr0
Code:
ip addr add 192.168.1.240/24 dev eno1
ip link set eno1 up
ip route add default via 192.168.1.1

/etc/network/interfaces


Code:
auto lo
iface lo inet loopback


iface eno1 inet manual

iface vmbr0 inet static
        address 192.168.1.240
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0


iface wlp0s20f3 inet manual
                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
#               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

qm start 100
Code:
bridge 'vmbr0' does not exist
kvm: -netdev type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on: network script /var/lib/qemu-server/pve-bridge failed with status 512
start failed: QEMU exited with code 1


ip link show

Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 5c:60:ba:ff:a7:f2 brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
3: wlp0s20f3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 70:32:17:f5:12:37 brd ff:ff:ff:ff:ff:ff
 
Last edited:
Try adding auto eno1 and auto vmbr0 right above each block of interface config, like it is done with the auto lo already.
 
Try adding auto eno1 and auto vmbr0 right above each block of interface config, like it is done with the auto lo already.

Thank you very much, we have made a step forward.
Now when I start it, it is finally online as well as the virtual machines. I am still not allowed to access the graphical interface of my proxmox IP:8006


Code:
root@nacina:~# ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul                                                                                            t 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 noprefixroute

       valid_lft forever preferred_lft forever

2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr                                                                                            0 state UP group default qlen 1000

    link/ether 5c:60:ba:Ff:a7:f2 brd ff:ff:ff:ff:ff:ff

    altname enp0s31f6

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

    link/ether 70:32:17:75:12:37 brd ff:ff:ff:ff:ff:ff

4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP grou                                                                                            p default qlen 1000

    link/ether 5c:60:ba:ff:a7:f2 brd ff:ff:ff:ff:ff:ff

    inet 192.168.1.240/24 scope global vmbr0

       valid_lft forever preferred_lft forever

    inet6 fe80::5e30:baff:fe5f:a7f2/64 scope link

       valid_lft forever preferred_lft forever

5: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast                                                                                             master vmbr0 state UNKNOWN group default qlen 1000

    link/ether ce:26:7f:b9:89:1b brd ff:ff:ff:ff:ff:ff

6: veth104i0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue maste                                                                                            r vmbr0 state UP group default qlen 1000

    link/ether fe:46:bf:ef:f2:2f brd ff:ff:ff:ff:ff:ff link-netnsid 0

7: veth111i0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue maste                                                                                            r vmbr0 state UP group default qlen 1000

    link/ether fe:b9:34:f2:95:32 brd ff:ff:ff:ff:ff:ff link-netnsid 1

Code:
rroot@nacina:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.240 nacina.local nacina

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
^C
 
Last edited: