<?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>5815</bug_id>
          
          <creation_ts>2014-02-12 23:19:14 +0000</creation_ts>
          <short_desc>qemu can&apos;t connect to TAP device if another VM already is using TAP0</short_desc>
          <delta_ts>2014-02-19 00:10:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</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>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Casey Schaufler">casey.schaufler</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40314</commentid>
    <comment_count>0</comment_count>
    <who name="Casey Schaufler">casey.schaufler</who>
    <bug_when>2014-02-12 23:19:14 +0000</bug_when>
    <thetext>build$ runqemu qemux86

Continuing with the following parameters:
KERNEL: [/home/cschaufler/Yocto/poky-dora-10.0.1/build/tmp/deploy/images/qemux86/bzImage-qemux86.bin]
ROOTFS: [/home/cschaufler/Yocto/poky-dora-10.0.1/build/tmp/deploy/images/qemux86/core-image-sato-qemux86.ext3]
FSTYPE: [ext3]
Acquiring lockfile for tap0...
Using preconfigured tap device &apos;tap0&apos;
If this is not intended, use flock on /tmp/qemu-tap-locks/tap0.lock to make runqemu skip tap0.
Running qemu-system-i386...
/home/cschaufler/Yocto/poky-dora-10.0.1/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-i386 -kernel /home/cschaufler/Yocto/poky-dora-10.0.1/build/tmp/deploy/images/qemux86/bzImage-qemux86.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -hda /home/cschaufler/Yocto/poky-dora-10.0.1/build/tmp/deploy/images/qemux86/core-image-sato-qemux86.ext3 -show-cursor -usb -usbdevice wacom-tablet -vga vmware -no-reboot -m 256 --append &quot;vga=0 uvesafb.mode_option=640x480-32 root=/dev/hda rw mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 &quot;
qemu-system-i386: -net tap,vlan=0,ifname=tap0,script=no,downscript=no: could not configure /dev/net/tun (tap0): Device or resource busy
qemu-system-i386: -net tap,vlan=0,ifname=tap0,script=no,downscript=no: Device &apos;tap&apos; could not be initialized
Releasing lockfile of preconfigured tap device &apos;tap0&apos;

build$ flock /tmp/qemu-tap-locks/tap0.lock
flock: bad number: /tmp/qemu-tap-locks/tap0.lock</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40384</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2014-02-15 19:10:17 +0000</bug_when>
    <thetext>I have submitted a workaround for this to the oe-core ML.

Since there is no way in software we can determine if an existing tap device is in use, the workaround allows a user to simply touch a filename in the runqemu tap lock directory, and it will skip using that tap device.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40445</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2014-02-19 00:10:53 +0000</bug_when>
    <thetext>Fixed in oe-core and poky master as of:

http://git.openembedded.org/openembedded-core/commit/?id=2e490f3b08176b20fe41c64cf17ecf3b5af61f39

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=46bc59d87da18d7cd2d8d25fe96263efe5e57590</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>