summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTodor Minchev <todor.minchev@linux.intel.com>2016-10-26 10:05:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-06 23:35:35 +0000
commit33ceab797943f1647b723b6f8835d155cb07e673 (patch)
treef065608f6355bd5174b6a4353bae6ebf51a61a93 /scripts
parent81386beaf02de02659f728e8610c72f8ac69c408 (diff)
downloadpoky-33ceab797943f1647b723b6f8835d155cb07e673.tar.gz
runqemu: add user mode (SLIRP) support to x86 QEMU targets
Using 'slirp' as a command line option to runqemu will start QEMU with user mode networking instead of creating tun/tap devices. SLIRP does not require root access. By default port 2222 on the host will be mapped to port 22 in the guest. The default port mapping can be overwritten with the QB_SLIRP_OPT variable e.g. QB_SLIRP_OPT = "-net nic,model=e1000 -net user,hostfwd=tcp::2222-:22" (From OE-Core rev: 80e6fc678f3dcd774d9376cdf2a6afcba2cd0b09) Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index dbe17abfc5..6952f3210b 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -542,7 +542,8 @@ class BaseConfig(object):
542 def check_and_set(self): 542 def check_and_set(self):
543 """Check configs sanity and set when needed""" 543 """Check configs sanity and set when needed"""
544 self.validate_paths() 544 self.validate_paths()
545 check_tun() 545 if not self.slirp_enabled:
546 check_tun()
546 # Check audio 547 # Check audio
547 if self.audio_enabled: 548 if self.audio_enabled:
548 if not self.get('QB_AUDIO_DRV'): 549 if not self.get('QB_AUDIO_DRV'):