If you want VM to use host's physical NIC exclusively, then do a PCI pass-through.

If you just want VM to be on the same network as one of the NIC's, then do the bridging. Create a bridge on the host, make that NIC a slave, specify that bridge in Qemu command line. See here for details: https://wiki.archlinux.org/index.php/QEMU#Bridged_networking_using_qemu-bridge-helper and https://wiki.archlinux.org/index.php/Network_bridge

/--Regards, Aleksei/


*From:* Miroslav Rovis
*Sent:* Thursday, October 13, 2016 1:00AM
*To:* Qemu-discuss
*Subject:* [Qemu-discuss] How to set the network card for qemu to use?

Either for pass-through (the default, the SLIRP, IIUC), or I had
previously tried to set a tap0 device to a host br0, but couldn't get
qemu to set the image it boots to use one of a few NIC cards.

Concrete setup is three NIC cards:

And the question is simple: what -netdev options (or is there some other
way?) do I use to get qemu to use eth2?

Because it invariably chooses eth0.

I tried several images, such as Tails and Devuan. Always chooses: eth0.


Reply via email to