diff options
author | Todor Minchev <todor.minchev@linux.intel.com> | 2016-10-26 10:05:59 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-06 23:35:21 +0000 |
commit | 80e6fc678f3dcd774d9376cdf2a6afcba2cd0b09 (patch) | |
tree | 90ac70fa89f443172f05a3b92e3da2e304903e33 /scripts/runqemu | |
parent | 614ac87f2832c5359f371439559be88d6106cd6b (diff) | |
download | openembedded-core-80e6fc678f3dcd774d9376cdf2a6afcba2cd0b09.tar.gz openembedded-core-80e6fc678f3dcd774d9376cdf2a6afcba2cd0b09.tar.bz2 openembedded-core-80e6fc678f3dcd774d9376cdf2a6afcba2cd0b09.zip |
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"
Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 3 |
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): def check_and_set(self): """Check configs sanity and set when needed""" self.validate_paths() - check_tun() + if not self.slirp_enabled: + check_tun() # Check audio if self.audio_enabled: if not self.get('QB_AUDIO_DRV'): |