openvswitch not showing up for virtual machine

nolfk

New Member
Dec 4, 2016
2
0
1
54
I run a 3 node cluster ( 2 physicals + one proxmox in esxi just for quorom ).
I switched from Linux Bridges to openvswitch on the 2 physical nodes. I installed the openvswitch package from the proxmox repository ( pve-no-subscription ). The ovs seems to work fine. However, the correct port ( type internal ) does not show up in the drop down list to bind the network interface of a virtual machine to ovs internal port. In my case, I would expect to see the internal ports vmprod and vmdev appear in the drop down . I only see vmbr0 and vmbr1 in the drop down as a choice for the virtual machine. What I'm doing wrong ?

oot@pve03:/sbin# ovs-vsctl show
7152fe64-065d-457c-9851-5dbdba291328
Bridge "vmbr1"
Port vmdev
tag: 206
Interface vmdev
type: internal
Port vmprod
tag: 205
Interface vmprod
type: internal
Port hypervisor
tag: 200
Interface hypervisor
type: internal
Port "eth3"
Interface "eth3"
Port "vmbr1"
Interface "vmbr1"
type: internal
Bridge "vmbr0"
Port storage
tag: 201
Interface storage
type: internal
Port "eth2"
Interface "eth2"
Port "vmbr0"
Interface "vmbr0"
type: internal
ovs_version: "2.6.0"
 
this is the expected behaviour, when creating your VM, you add the NIC of the VM as a tap device to the bridge containing you physical port
 
In the end I figured out how it works. If I want to attach my VM to the internal port vmprod ( VLAN 205 ) , I have to choose bridge vmbr1 with vlan tag 205 to map the interface of the VM to an OVS internal port. I was expecting that the internal port "vmprod, vmdev, ..." would appear in the bridge drop down list. Similar how port-groups work in VMware.

upload_2016-12-6_7-48-56.png
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!