Skip to contentSkip to conversation

SLiRP support in runqemu

PATCH Superseded Andrei Dinu 1 participant 1 message Dec 13, 2012

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 SLiRP support in runqemu

runqemu script now takes argument "slirp" in order to run networking on the qemu machine, without root privileges.

changed the runqemu-internal script in order not to activate the tap devices if the option is set. Also trimmed the cleanup function so that after the image is closed, no tap releases warnings showed up.

[YOCTO #1474]

---
 scripts/runqemu          |    3 +
 scripts/runqemu-internal |  220 ++++++++++++++++++++++++++--------------------
 2 files changed, 130 insertions(+), 93 deletions(-)
scripts/runqemu +3 -0
index fb7ac56..b244150 100755
@@ -157,6 +157,9 @@ while true; do
             KVM_ENABLED="yes"
             KVM_CAPABLE=`grep -q 'vmx\|smx' /proc/cpuinfo && echo 1`
             ;;
+	"slirp")
+	    SLIRP_ENABLED="yes"
+	    ;;
         "") break ;;
         *)
             # A directory name is an nfs rootfs
scripts/runqemu-internal +127 -93

260 lines not on this page · raw message

Signature · 1 line
1.7.9.5