I want to use the optimizations given for the ASAv (Page 18) which should run with KVM.
I am using Ubuntu 14.04 LTS and I should configure macvtap
for an higher performance.
It just says the following in the guide by Cisco:
macvtap—High performance Linux bridge; you can use macvtap instead of a Linux bridge.
Note that you must configure specific settings to use macvtap instead of the Linux bridge.
I found some tutorial and I set up the two macvtap bridges for my 2 VLANs 1654 and 1664:
sudo ip link add link eth0.1654 name macvtap1654 type macvtap mode bridge
sudo ip link add link eth1.1664 name macvtap1664 type macvtap mode bridge
Unfortunately I cannot choose them when configuring the network devices with virt-manager.
Obviously, the specific settings are not set.
I don't know what else to configure thus I can use this optimization for my virtual machine.
Thanks for reading and Helping.
Best Answer
...better late to the party than to never show up at all
The changes are separate from Macvtaps and Macvlans.
We need to create the vlan interface prior to creating the macvtap for the KVM bridge.
https://manpages.debian.org/buster/vlan/vlan-interfaces.5.en.html
So I'm actually creating the vlan interface in my /etc/network/interfaces config
Now here, I add the Vlan interface(s), you can keep stacking as many trunked vlans that you have tagged here. (Note the incoming NIC to this server has multiple tagged vlans coming from the switch it's connected to) ...
Restart your networking
NOW add the macvtap to the enp1s0f0.4 interface
You'll now be able to see that macbaby macvtap in virt-manager, and if you set it as the nic on your guest, your VM should come up on 10.80.0.0/24 dchp.