[OE-core] [meta-oe][PATCH 2/3] runqemu: add support for multiple NICs

Adrian Freihofer adrian.freihofer at gmail.com
Sat Nov 14 21:35:07 UTC 2015


Fixes [YOCTO #6356]

Current runqemu script does not support qemu configurations with
more than one emulated NIC. If parameters for one or more
additional NICs are appended qemu ends up with an invalid
configuration.

Example to reproduce:
runqemu ... qemuparams="-net nic,model=virtio... -net tap, ..."

Signed-off-by: Adrian Freihofer <adrian.freihofer at gmail.com>
---
 scripts/runqemu-internal | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 3b0e54c..7b1fdd9 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -257,7 +257,7 @@ else
         n1=$(($n0 * 2 + 1))
         n2=$(($n1 + 1))
 
-        KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0"
+        KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0::eth0:off"
         QEMU_TAP_CMD="-net tap,vlan=0,ifname=$TAP,script=no,downscript=no"
         if [ "$VHOST_ACTIVE" = "yes" ]; then
             QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD,vhost=on"
-- 
2.4.3




More information about the Openembedded-core mailing list