Until I updated my OS, I could launch VMs with the following network configuration:
-net nic,vlan=0,model=virtio,macaddr=${MAC1} -net bridge,vlan=0,br=${BRIDGE1} \
-net nic,vlan=1,model=virtio,macaddr=${MAC2} -net bridge,vlan=1,br=${BRIDGE2}
In the host OS I'm using two bridges that operate in two separate Dot1q VLANs. The VLANs have absolutely nothing to do with the ones I specified above. The only reason I added "vlan=0" and "vlan=1" was to prevent an internal loop in the QEMU's virtual HUB.
The vlan option has been removed. If I simply omit it in the mentioned network configuration, a network loop occurs. According to QEMU, I'm supposed to use the -netdev
option now. My question: is it possible to set up the network in the same way I did before without any external scripts like if-up.sh? I can't figure out how to recreate the config with using -netdev
.