|Subject:||Re: [Qemu-discuss] How to set the network card for qemu to use?|
|Date:||Thu, 13 Oct 2016 10:11:53 +0300|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0|
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:
From: Miroslav Rovis
Sent: Thursday, October 13, 2016 1:00AM
Subject: [Qemu-discuss] How to set the network card for qemu to use?
Hi! 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: eth0 eth1 eth2 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. Thanks!
|[Prev in Thread]||Current Thread||[Next in Thread]|