virtio-net-pci with vlan on vmbr

flexyz

Well-Known Member
Sep 22, 2016
154
9
58
54
Hi

I have a VM where I need to add interfaces as virtio-net-pci via args. Can I somehow add it with a specific VLAN tagging? - or should I create a vmbr for each vlan?

args: -device virtio-net-pci,netdev=net0,mac=xx:xx:xx:xx:xx:xx,addr=04.0 -netdev tap,id=net0,br=vmbr0

Thanks
Felix
 
I think in this case you'd need your described workaround with multiple bridges. Why do you need to add virtio adapters with 'args' in the first place though?
 
Thanks I got it working with bridges. The Palo Alto VMs are a little picky on how it assign management and dataplane networking. But I made a mistake on the Palo Alto VM firewall rules, so bridges work :)

With PCI-passthrou the NICs need to come in by a PCI slot order and manegement network defined with args.

But thanks anyway

Felix