From 33ceab797943f1647b723b6f8835d155cb07e673 Mon Sep 17 00:00:00 2001 From: Todor Minchev Date: Wed, 26 Oct 2016 10:05:59 -0700 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/runqemu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/runqemu') 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'): -- cgit v1.2.3-54-g00ecf