问题原文
原帖链接 · Andreas Schuldei · CC BY-SA 4.0
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.
已采纳解答
原帖链接 · Andreas Schuldei · CC BY-SA 4.0
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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
