Hi
If using a linux host, you can use the NIC:s capabilities of transparent VLANs (it its SR-IOV feature set has it). It means (if the host has a VLAN trunk) that you could set a VLAN tag on the VF that you then hand out to the guest. Then the guest sees this as a non VLAN:ed interface. I have used this a lot with a linux host running KVM.
I would definitely not let the VM guest root user set VLAN tags on the VF. Then the guest VM admin could place the host on any VLAN in the trunk.
How do I config transparent VLAN on the SR-IOV VF:s in FreeBSD?
If using a linux host, you can use the NIC:s capabilities of transparent VLANs (it its SR-IOV feature set has it). It means (if the host has a VLAN trunk) that you could set a VLAN tag on the VF that you then hand out to the guest. Then the guest sees this as a non VLAN:ed interface. I have used this a lot with a linux host running KVM.
I would definitely not let the VM guest root user set VLAN tags on the VF. Then the guest VM admin could place the host on any VLAN in the trunk.
How do I config transparent VLAN on the SR-IOV VF:s in FreeBSD?