Hi guys,
I have testing proxmox with OpenvSwitch. I have 2 pve host in cluster (IP: 192.168.1.100 and 192.168.1.101) and here is the interface configuration:
I also ave 2 VMs for testing and actually the issue is on guest interfaces, only vmbr0 is available and vlan20 and vlan21 are not !
I want to implement with configuration for live migration so vlan20 and 21 will be both exist on the 2 pve hosts.
Here is the openvswitch result:
Everything seems alright but I cannot attach vlan20 or 21 to the guest !
Openvs-vswitch is from PVE repository:
Can anyone tell me what's the issue with my configuration?
I have testing proxmox with OpenvSwitch. I have 2 pve host in cluster (IP: 192.168.1.100 and 192.168.1.101) and here is the interface configuration:
auto lo
iface lo inet loopback
allow-ovs vmbr0
allow-vmbr0 eth0
iface eth0 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
ovs_options vlan_mode=native-untagged tag=1
# Alternatively if you want to also restrict what vlans are allowed through
# you could use:
# ovs_options tag=1 vlan_mode=native-untagged trunks=10,20,30,40
allow-vmbr0 vlan1
iface vlan1 inet static
address 192.168.1.10X
netmask 255.255.255.0
gateway 192.168.1.1
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=1
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports eth0 vlan1 vlan20 vlan21
mtu 9000
# NOTE: we MUST mention eth0, vlan1, and vlan55 even though each
# of them lists ovs_bridge vmbr0! Not sure why it needs this
# kind of cross-referencing but it won't work without it!
allow-vmbr0 vlan20
iface vlan20 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=20
allow-vmbr0 vlan21
iface vlan21 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=21
iface lo inet loopback
allow-ovs vmbr0
allow-vmbr0 eth0
iface eth0 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
ovs_options vlan_mode=native-untagged tag=1
# Alternatively if you want to also restrict what vlans are allowed through
# you could use:
# ovs_options tag=1 vlan_mode=native-untagged trunks=10,20,30,40
allow-vmbr0 vlan1
iface vlan1 inet static
address 192.168.1.10X
netmask 255.255.255.0
gateway 192.168.1.1
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=1
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports eth0 vlan1 vlan20 vlan21
mtu 9000
# NOTE: we MUST mention eth0, vlan1, and vlan55 even though each
# of them lists ovs_bridge vmbr0! Not sure why it needs this
# kind of cross-referencing but it won't work without it!
allow-vmbr0 vlan20
iface vlan20 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=20
allow-vmbr0 vlan21
iface vlan21 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=21
I also ave 2 VMs for testing and actually the issue is on guest interfaces, only vmbr0 is available and vlan20 and vlan21 are not !
I want to implement with configuration for live migration so vlan20 and 21 will be both exist on the 2 pve hosts.
Here is the openvswitch result:
root@pve01:~# ovs-vsctl show
d91fd416-788c-4448-8bf1-7c82fa0d2bc4
Bridge "vmbr0"
Port "eth0"
tag: 1
Interface "eth0"
Port "vlan1"
tag: 1
Interface "vlan1"
type: internal
Port "vlan21"
tag: 21
Interface "vlan21"
type: internal
Port "vmbr0"
Interface "vmbr0"
type: internal
Port "vlan20"
tag: 20
Interface "vlan20"
type: internal
ovs_version: "2.5.0"
d91fd416-788c-4448-8bf1-7c82fa0d2bc4
Bridge "vmbr0"
Port "eth0"
tag: 1
Interface "eth0"
Port "vlan1"
tag: 1
Interface "vlan1"
type: internal
Port "vlan21"
tag: 21
Interface "vlan21"
type: internal
Port "vmbr0"
Interface "vmbr0"
type: internal
Port "vlan20"
tag: 20
Interface "vlan20"
type: internal
ovs_version: "2.5.0"
root@pve01:~# pveversion -v
proxmox-ve: 4.2-60 (running kernel: 4.4.15-1-pve)
pve-manager: 4.2-17 (running version: 4.2-17/e1400248)
pve-kernel-4.4.15-1-pve: 4.4.15-60
lvm2: 2.02.116-pve2
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-43
qemu-server: 4.0-85
pve-firmware: 1.1-8
libpve-common-perl: 4.0-71
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-56
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6-1
pve-container: 1.0-72
pve-firewall: 2.0-29
pve-ha-manager: 1.0-33
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.3-4
lxcfs: 2.0.2-pve1
cgmanager: not correctly installed
criu: 1.6.0-1
openvswitch-switch: 2.5.0-1
proxmox-ve: 4.2-60 (running kernel: 4.4.15-1-pve)
pve-manager: 4.2-17 (running version: 4.2-17/e1400248)
pve-kernel-4.4.15-1-pve: 4.4.15-60
lvm2: 2.02.116-pve2
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-43
qemu-server: 4.0-85
pve-firmware: 1.1-8
libpve-common-perl: 4.0-71
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-56
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6-1
pve-container: 1.0-72
pve-firewall: 2.0-29
pve-ha-manager: 1.0-33
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.3-4
lxcfs: 2.0.2-pve1
cgmanager: not correctly installed
criu: 1.6.0-1
openvswitch-switch: 2.5.0-1
Openvs-vswitch is from PVE repository:
Code:
dists/jessie/pve-no-subscription/binary-amd64/openvswitch-switch_2.3.2-3_amd64.deb
Can anyone tell me what's the issue with my configuration?