1

I am setting up a new KVM hypervisor and the VMs will need to connect to several VLANS (one VLAN per VM). However I can't find good documentation or instructions on how to configure the hypervisor or the VMs - perhaps because VLAN filtering and VLAN aware bridges are still new (from 2018 i think).

So I look for examples and best practices on setup and maintenance. Do I need special packages? Bonus points for Ansible receipts.

1 Answers1

1

There are instructions on how to use the new VLAN aware bridges for setup of VMs, but people who are familiar with the libvirt world are not fond of this approach. They promote usage of openvswitch for the handling of VLANs instead.

Also I spend some time trying to create a setup like described in 1, and failed when trying to connect the bridge to the VMs' interfaces, despite time and effort and some help from libvirt folks.

So the right answer seems to be "Dont do that" for now. My own working solution with Open VSwitch is described here.