VSwitch Setup - 2nd NIC

Miked82

Renowned Member
Oct 13, 2014
3
0
66
I am trying to setup a 2nd NIC for HDD & mapped storage traffic using VSwitch but the Active status is NO and receive this error message in the Bootlog.

Fri Oct 17 09:59:57 2014: Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
Fri Oct 17 09:59:59 2014: ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-br vmbr1 --
Fri Oct 17 09:59:59 2014: ovs-vsctl: ovs|00002|vsctl|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Fri Oct 17 09:59:59 2014: ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Fri Oct 17 09:59:59 2014: ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-port vmbr1 eth1 --
Fri Oct 17 09:59:59 2014: ovs-vsctl: ovs|00002|vsctl|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Fri Oct 17 09:59:59 2014: ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Fri Oct 17 10:00:00 2014: Cannot find device "vmbr1"

# network interface settingsauto lo
iface lo inet loopback


iface eth0 inet manual


allow-vmbr1 eth1
iface eth1 inet manual
ovs_type OVSPort
ovs_bridge vmbr1


auto vmbr0
iface vmbr0 inet static
address 192.168.1.50
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports eth0
bridge_stp off
bridge_fd 0


auto vmbr1
iface vmbr1 inet static
address 192.168.0.50
netmask 255.255.255.0
ovs_type OVSBridge
ovs_ports eth1
 
I am trying to setup a 2nd NIC for HDD & mapped storage traffic using VSwitch but the Active status is NO and receive this error message in the Bootlog.

Your config doesn't look like the https://pve.proxmox.com/wiki/Open_vSwitch wiki. First, you're using OVSPort for the ethernet device, don't think you need to do that. Also, you seem to be missing allow-ovs vmbr1 before your bridge definition.

I'd recommend following that wiki.