I installed 5.0 a few days ago and upon trying to bring up Open vSwitch, I'm having real problems getting it to work after reboots, though similar configurations worked in 4.x. /etc/network/interfaces looks like this:
### begin paste ###
auto lo
iface lo inet loopback
allow-ovs vmbr0
allow-vmbr0 eno1
iface eno1 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
mtu 9000
auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports vlan100 eno1
mtu 9000
auto vlan100
allow-vmbr0 vlan100
iface vlan100 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=100
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
network 172.16.253.0
address 172.16.253.68
gateway 172.16.253.1
broadcast 172.16.253.255
netmask 255.255.255.0
mtu 9000
### end paste ###
The intent of this configuration is simple: I wish to create a single bridge (vmbr0) with two ports in it (vlan100 so I can access the host OS, and eno1 which is the physical interface). I have the switch port configured to send frames tagged with VLAN 100. Once I have this basic stuff working, I have other VLANs to add, and I really prefer using a real virtual switch rather than simple bridges.
What happens is that after a reboot, the bridge isn't created (or the config wasn't saved before the reboot, not sure which) and the attempts to add my VLAN and physical interface to the bridge fail. If I create it manually with "ovs-vsctl add-br vmbr0", I can then restart networking and it further comes up - only I still have to manually add the port eno1 to the bridge before it actually works. Rebooting then, leaves me right in the same spot where I was before until I repeat those manual steps. I don't think that I should have to recreate the bridge by hand on every reboot, nor add the interfaces to it.
Things that I'm considering:
### begin paste ###
auto lo
iface lo inet loopback
allow-ovs vmbr0
allow-vmbr0 eno1
iface eno1 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
mtu 9000
auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports vlan100 eno1
mtu 9000
auto vlan100
allow-vmbr0 vlan100
iface vlan100 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=100
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
network 172.16.253.0
address 172.16.253.68
gateway 172.16.253.1
broadcast 172.16.253.255
netmask 255.255.255.0
mtu 9000
### end paste ###
The intent of this configuration is simple: I wish to create a single bridge (vmbr0) with two ports in it (vlan100 so I can access the host OS, and eno1 which is the physical interface). I have the switch port configured to send frames tagged with VLAN 100. Once I have this basic stuff working, I have other VLANs to add, and I really prefer using a real virtual switch rather than simple bridges.
What happens is that after a reboot, the bridge isn't created (or the config wasn't saved before the reboot, not sure which) and the attempts to add my VLAN and physical interface to the bridge fail. If I create it manually with "ovs-vsctl add-br vmbr0", I can then restart networking and it further comes up - only I still have to manually add the port eno1 to the bridge before it actually works. Rebooting then, leaves me right in the same spot where I was before until I repeat those manual steps. I don't think that I should have to recreate the bridge by hand on every reboot, nor add the interfaces to it.
Things that I'm considering:
- Maybe this just wasn't tested and is broken?
- Perhaps I'm doing something wrong / something changed since 4.0?
- Perhaps this is a Debian issue and not Proxmox's fault?