<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11273</bug_id>
          
          <creation_ts>2017-03-31 06:28:05 +0000</creation_ts>
          <short_desc>runqemu can not launch qemu image in Build Appliance</short_desc>
          <delta_ts>2017-03-31 22:27:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Runtime</product>
          <component>build-appliance</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>11266</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>francisco.j.pedraza.gonzalez</cc>
    
    <cc>jose.perez.carranza</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71939</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-03-31 06:28:05 +0000</bug_when>
    <thetext>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 &quot;runqemu qemux86&quot; 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 &apos;/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin&apos;, please bitbake qemu-helper-native.lock...
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/Error: Unable to find tunctl binary in &apos;/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin&apos;, please bitbake qemu-helper-native.lock failed: [Errno 2] No such file or directory: &quot;/tmp/qemu-tap-locks/Error: Unable to find tunctl binary in &apos;/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin&apos;, please bitbake qemu-helper-native.lock&quot;
runqemu - INFO - Created tap: Error: Unable to find tunctl binary in &apos;/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin&apos;, please bitbake qemu-helper-native
runqemu - INFO - Running sudo /home/builder/poky/scripts/runqemu-ifdown Error: Unable to find tunctl binary in &apos;/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin&apos;, please bitbake qemu-helper-native /home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native
sudo runqemu-ifdown &lt;tap-dev&gt; &lt;native-sysroot-basedir&gt;
Traceback (most recent call last):
  File &quot;/home/builder/poky/scripts/runqemu&quot;, line 1199, in &lt;module&gt;
    ret = main()
  File &quot;/home/builder/poky/scripts/runqemu&quot;, line 1189, in main
    config.setup_network()
  File &quot;/home/builder/poky/scripts/runqemu&quot;, line 952, in setup_network
    self.setup_tap()
  File &quot;/home/builder/poky/scripts/runqemu&quot;, line 923, in setup_tap
    tapnum = int(tap[3:])
ValueError: invalid literal for int() with base 10: &quot;or: Unable to find tunctl binary in &apos;/home/builder/poky/build/tmp/work/i586-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin&apos;, please bitbake qemu-helper-native&quot;
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]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71981</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-03-31 22:27:11 +0000</bug_when>
    <thetext>Same issue as https://bugzilla.yoctoproject.org/show_bug.cgi?id=11266

The file conf/auto.conf contains INHERIT += &quot;rm_work&quot;
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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>