<?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>371</bug_id>
          
          <creation_ts>2010-09-30 04:30:28 +0000</creation_ts>
          <short_desc>&quot;runqemu qemux86-64&quot; failed due to tap setting</short_desc>
          <delta_ts>2010-12-21 06:07:08 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10075</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-30 04:30:28 +0000</bug_when>
    <thetext>Based on today&apos;s poky.git&apos;s  master (commit 7f7c185c) plus Kevin&apos;s fix to gcc
(commit 843d9daf), I met with the failure:

$ runqemu qemux86-64
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap0&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap1&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap2&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap3&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap4&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap5&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap6&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap7&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap8&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap9&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap10&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap11&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap12&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap13&quot;
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap14&quot;
Setting up tap interface under sudo
lockfile: Try praying, giving up on &quot;/tmp/qemu-tap-locks/tap15&quot;
/opt/dcui/p/scripts/..//scripts/poky-qemu-internal: line 98: ( * 2) + 1 : syntax error: operand expected (error token is &quot;* 2) + 1 &quot;)
/opt/dcui/p/scripts/..//scripts/poky-qemu-internal: line 99: ( * 2) + 2 : syntax error: operand expected (error token is &quot;* 2) + 2 &quot;)
cat: /proc/sys/vm/mmap_min_addr: Operation not permitted
/opt/dcui/p/scripts/..//scripts/poky-qemu-internal: line 154: [: !=: unary operator expected
Warning: distccd not present, no distcc support loaded.
Running qemu-system-x86_64...
/opt/dcui/p/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-x86_64 -kernel /opt/dcui/p/build/tmp/deploy/images/bzImage-qemux86-64.bin -net nic,vlan=0 -net tap,vlan=0,ifname=,script=no,downscript=no -hda /opt/dcui/p/build/tmp/deploy/images/poky-image-sdk-qemux86-64.ext3 -show-cursor -usb -usbdevice wacom-tablet -vga vmware -enable-gl --append &quot;vga=0 root=/dev/hda mem=128M ip=192.168.7.::192.168.7.:255.255.255.0&quot;
Enabling opengl
warning: could not configure /dev/net/tun: no virtual network emulation
Releasing lockfile of preconfigured tap device &apos;&apos;


Not sure the &quot;Try praying, giving up&quot; is normal.

Here looks $TAP is emtpy -- will look into this.

BTW: commit 0be92981b32a introduced a bug:
 if [ &quot;$TAP&quot; = &quot;&quot; ]; then
+    if lockfile $LOCKFILE; then
+   TAP=$tap
+   break;    ==========&gt; it&apos;s incorrect to use &quot;break&quot; in &quot;if&quot; statement...
+    fi
 else
     echo &quot;Using preconfigured tap device &apos;$TAP&apos;&quot;
 fi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10210</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2010-10-07 14:20:17 +0000</bug_when>
    <thetext>This has been fixed in the refactoring leading up to commit 	0f973ed66551cdd1112ee9df42df5603835b8384. poky-qemu has replaced runqemu as the Poky QEMU control script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10692</commentid>
    <comment_count>2</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-10-20 01:01:08 +0000</bug_when>
    <thetext>Now poky-qemu works fine for me. Let me VERIFY the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>