Bug 9437

Summary: after dropping HOB from build appliance, "runqemu" doesn't work: TUN unavailable
Product: [Build System, Metadata & Runtime] Runtime Reporter: Ke Zou <ke.zou>
Component: build-applianceAssignee: Juro Bystricky <juro.bystricky>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, jose.perez.carranza, ross.burton, yi.zhao
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ke Zou 2016-04-12 07:46:19 UTC
BA image URL:
http://autobuilder.yoctoproject.org/pub/releases/yocto-2.1.rc1/build-appliance/

how to reproduce:
unzip build-appliance image
use vmplayer to run 
in BA shell: build image(core-image-minimal)
try to runqemu with newly-built image
"runqemu qemuxxx nographic"

the printout:
sh-4.3$ runqemmu qemuarm nographic
TUN control device /dev/net/tun is unavailable: you may need to enable TUN (e.g. sudo modprobe tun)
Comment 1 Juro Bystricky 2016-04-13 18:26:54 UTC
To remedy this with the existing BA:
1. Switch to root terminal "Terminal" from the default "Terminal <2>"
2. Run 
   # sudo modprobe tun
3. 
   # cd /sbin
   # ls -s /usr/sbin/iptables iptables

4. Switch to "Terminal <2>"

   $ runqemu qemux86


I'll try to modify the BA recipe so that the above steps are not needed.
Comment 2 Juro Bystricky 2016-04-15 16:27:29 UTC
Patch sent to the mailing list:
http://lists.openembedded.org/pipermail/openembedded-core/2016-April/120284.html
Comment 4 Ke Zou 2016-04-25 05:52:27 UTC
verified with yocto 2.1 rc2 build