Skip to contentSkip to conversation

SLiRP support in runqemu

PATCH Superseded Andrei Dinu 2 participants 2 messages Apr 29, 2013

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 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 8ed1226..31deb6f 100755
@@ -173,6 +173,9 @@ while true; do
             KVM_ENABLED="yes"
             KVM_CAPABLE=`grep -q 'vmx\|svm' /proc/cpuinfo && echo 1`
             ;;
+        "slirp")
+            SLIRP_ENABLED="yes"
+            ;;
         "publicvnc")
             SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -vnc 0.0.0.0:0"
             ;;
scripts/runqemu-internal +127 -93

248 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

Hi Andrei,

Quoted 8 lines · On Monday 29 April 2013 17:41:45 Andrei Dinu wrote:

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.

Quoted 6 lines

[YOCTO #1474]

---
 scripts/runqemu          |    3 +
 scripts/runqemu-internal |  220

This should be sent to the OE-Core mailing list since that is where scripts/runqemu* are located.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre