Hi All,
I'm having a problem with VLAN's and openvswitch. I run many proxmox machines using vlan's and native linux bridging and works well. Our network has changed a bit and we now need to mount storage directly from the proxmox host on a specific VLAN to store our VM's. Additionally some of the VM's need to mount other storage directly (NFS) on the same VLAN. Apparently openvswitch works well in this scenario. The following is what I've tried and was unsuccesful - any pointers will be greatly appreciated.
I've installed Proxmox 3.3-1/a06c9f73 (latest) . I've then installed the latest openvswitch-switch package by adding the following line to /etc/apt/sources.list:
"deb http://download.proxmox.com/debian wheezy pve-no-subscription"
I then ran:
apt-get update
apt-get install openvswitch-switch
To verify the package was installed from the correct source:
apt-cache policy openvswitch-switch
openvswitch-switch:
Installed: 2.3.0-1
Candidate: 2.3.0-1
Version table:
*** 2.3.0-1 0
500 http://download.proxmox.com/debian/ wheezy/pve-no-subscription amd64 Packages
100 /var/lib/dpkg/status
2.0.90-4 0
500 http://download.proxmox.com/debian/ wheezy/pve-no-subscription amd64 Packages
2.0.90-3 0
500 http://download.proxmox.com/debian/ wheezy/pve-no-subscription amd64 Packages
1.4.2+git20120612-9.1~deb7u1 0
500 http://ftp.debian.org/debian/ wheezy/main amd64 Packages
I rebooted the proxmox machine and then connected to the web interface.
Under "network" I added a OVS bridge "vmbr1" (no IP) using "eth2" as "Bridge ports".
I then added an OVS IntPort called "vlan20" with an IP and "VLAN tag" of "20".
After a reboot here is my /etc/network/interfaces config:
========================================
# network interface settings
allow-vmbr1 vlan20
iface vlan20 inet static
address 192.168.250.196
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=20
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
allow-vmbr1 eth2
iface eth2 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
iface eth3 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.1.99.83
netmask 255.255.0.0
gateway 10.1.1.1
bridge_ports eth3
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet manual
ovs_type OVSBridge
ovs_ports eth2 vlan20
========================================
I'm unable to ping a host on VLAN 20 using this config. Using native linux bridges and vlan works perfectly (I use native bridges and vlan's extensively on other proxmox hosts). An example of a working native linux bridge config on the same machine:
cat /etc/network/interfaces
============================
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth3 inet manual
iface eth2 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.1.99.83
netmask 255.255.0.0
gateway 10.1.1.1
bridge_ports eth3
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.250.196
netmask 255.255.255.0
bridge_ports eth2.20
bridge_stp off
bridge_fd 0
============================
root@cloud-03:~# ping 192.168.250.100
PING 192.168.250.100 (192.168.250.100) 56(84) bytes of data.
64 bytes from 192.168.250.100: icmp_req=1 ttl=64 time=490 ms
64 bytes from 192.168.250.100: icmp_req=2 ttl=64 time=0.140 ms
^C
Some more info on my openvswitch setup:
ovs-vsctl show
460457d8-91d4-404d-93b3-954205c7fc28
Bridge "vmbr1"
Port "eth2"
Interface "eth2"
Port "vlan20"
tag: 20
Interface "vlan20"
type: internal
Port "vmbr1"
Interface "vmbr1"
type: internal
ovs_version: "2.3.0"
Any pointers will be greatly appreciated.
Garith Dugmore
I'm having a problem with VLAN's and openvswitch. I run many proxmox machines using vlan's and native linux bridging and works well. Our network has changed a bit and we now need to mount storage directly from the proxmox host on a specific VLAN to store our VM's. Additionally some of the VM's need to mount other storage directly (NFS) on the same VLAN. Apparently openvswitch works well in this scenario. The following is what I've tried and was unsuccesful - any pointers will be greatly appreciated.
I've installed Proxmox 3.3-1/a06c9f73 (latest) . I've then installed the latest openvswitch-switch package by adding the following line to /etc/apt/sources.list:
"deb http://download.proxmox.com/debian wheezy pve-no-subscription"
I then ran:
apt-get update
apt-get install openvswitch-switch
To verify the package was installed from the correct source:
apt-cache policy openvswitch-switch
openvswitch-switch:
Installed: 2.3.0-1
Candidate: 2.3.0-1
Version table:
*** 2.3.0-1 0
500 http://download.proxmox.com/debian/ wheezy/pve-no-subscription amd64 Packages
100 /var/lib/dpkg/status
2.0.90-4 0
500 http://download.proxmox.com/debian/ wheezy/pve-no-subscription amd64 Packages
2.0.90-3 0
500 http://download.proxmox.com/debian/ wheezy/pve-no-subscription amd64 Packages
1.4.2+git20120612-9.1~deb7u1 0
500 http://ftp.debian.org/debian/ wheezy/main amd64 Packages
I rebooted the proxmox machine and then connected to the web interface.
Under "network" I added a OVS bridge "vmbr1" (no IP) using "eth2" as "Bridge ports".
I then added an OVS IntPort called "vlan20" with an IP and "VLAN tag" of "20".
After a reboot here is my /etc/network/interfaces config:
========================================
# network interface settings
allow-vmbr1 vlan20
iface vlan20 inet static
address 192.168.250.196
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=20
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
allow-vmbr1 eth2
iface eth2 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
iface eth3 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.1.99.83
netmask 255.255.0.0
gateway 10.1.1.1
bridge_ports eth3
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet manual
ovs_type OVSBridge
ovs_ports eth2 vlan20
========================================
I'm unable to ping a host on VLAN 20 using this config. Using native linux bridges and vlan works perfectly (I use native bridges and vlan's extensively on other proxmox hosts). An example of a working native linux bridge config on the same machine:
cat /etc/network/interfaces
============================
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth3 inet manual
iface eth2 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.1.99.83
netmask 255.255.0.0
gateway 10.1.1.1
bridge_ports eth3
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.250.196
netmask 255.255.255.0
bridge_ports eth2.20
bridge_stp off
bridge_fd 0
============================
root@cloud-03:~# ping 192.168.250.100
PING 192.168.250.100 (192.168.250.100) 56(84) bytes of data.
64 bytes from 192.168.250.100: icmp_req=1 ttl=64 time=490 ms
64 bytes from 192.168.250.100: icmp_req=2 ttl=64 time=0.140 ms
^C
Some more info on my openvswitch setup:
ovs-vsctl show
460457d8-91d4-404d-93b3-954205c7fc28
Bridge "vmbr1"
Port "eth2"
Interface "eth2"
Port "vlan20"
tag: 20
Interface "vlan20"
type: internal
Port "vmbr1"
Interface "vmbr1"
type: internal
ovs_version: "2.3.0"
Any pointers will be greatly appreciated.
Garith Dugmore