Bug 11273 - runqemu can not launch qemu image in Build Appliance
Summary: runqemu can not launch qemu image in Build Appliance
Status: RESOLVED DUPLICATE of bug 11266
Alias: None
Product: Runtime
Classification: Build System, Metadata & Runtime
Component: build-appliance (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Juro Bystricky
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-31 06:28 UTC by Yi Zhao
Modified: 2017-03-31 22:27 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2017-03-31 06:28:05 UTC
Build-Appliance image location: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.3_M3.rc2/build-appliance/
git rev: master/415b72ffcbd26e5f3664370d8b2a9b8105fb6342


Steps:
1. Launch the Build Appliance with vmplayer
2. Build a minimal image for qemux86
3. Run "runqemu qemux86" to boot up the qemu image

The image can not boot up and the following error occurs:

runqemu - INFO - Assuming MACHINE = qemux86
runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
runqemu - INFO - MACHINE: qemux86
runqemu - INFO - DEPLOY_DIR_IMAGE: /home/builder/poky/build/tmp/deploy/images/qemux86
runqemu - INFO - Running ls -t /home/builder/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf...
runqemu - INFO - CONFFILE: /home/builder/poky/build/tmp/deploy/images/qemux86/core-image-minimal-qemux86-20170331003747.qemuboot.conf
runqemu - INFO - Overriding conf file setting of STAGING_DIR_NATIVE to /home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native from Bitbake environment
runqemu - INFO - Overriding conf file setting of STAGING_BINDIR_NATIVE to /home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin from Bitbake environment
runqemu - INFO - Continuing with the following parameters:

runqemu - INFO - Running /sbin/ip link...
runqemu - INFO - Setting up tap interface under sudo
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/Error: Unable to find tunctl binary in '/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin', please bitbake qemu-helper-native.lock...
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/Error: Unable to find tunctl binary in '/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin', please bitbake qemu-helper-native.lock failed: [Errno 2] No such file or directory: "/tmp/qemu-tap-locks/Error: Unable to find tunctl binary in '/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin', please bitbake qemu-helper-native.lock"
runqemu - INFO - Created tap: Error: Unable to find tunctl binary in '/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin', please bitbake qemu-helper-native
runqemu - INFO - Running sudo /home/builder/poky/scripts/runqemu-ifdown Error: Unable to find tunctl binary in '/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin', please bitbake qemu-helper-native /home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native
sudo runqemu-ifdown <tap-dev> <native-sysroot-basedir>
Traceback (most recent call last):
  File "/home/builder/poky/scripts/runqemu", line 1199, in <module>
    ret = main()
  File "/home/builder/poky/scripts/runqemu", line 1189, in main
    config.setup_network()
  File "/home/builder/poky/scripts/runqemu", line 952, in setup_network
    self.setup_tap()
  File "/home/builder/poky/scripts/runqemu", line 923, in setup_tap
    tapnum = int(tap[3:])
ValueError: invalid literal for int() with base 10: "or: Unable to find tunctl binary in '/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin', please bitbake qemu-helper-native"
KERNEL: [/home/builder/poky/build/tmp/deploy/images/qemux86/bzImage--4.10.2+git0+69bfa87234_827a1164b1-r0-qemux86-20170331003747.bin]
MACHINE: [qemux86]
FSTYPE: [ext4]
ROOTFS: [/home/builder/poky/build/tmp/deploy/images/qemux86/core-image-minimal-qemux86-20170331003747.rootfs.ext4]
CONFFILE: [/home/builder/poky/build/tmp/deploy/images/qemux86/core-image-minimal-qemux86-20170331003747.qemuboot.conf]
Comment 1 Juro Bystricky 2017-03-31 22:27:11 UTC
Same issue as https://bugzilla.yoctoproject.org/show_bug.cgi?id=11266

The file conf/auto.conf contains INHERIT += "rm_work"
After commenting out this line and rebuilding the core-image-minimal, everything works as expected.

*** This bug has been marked as a duplicate of bug 11266 ***