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 'tap0' 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 "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 " 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 'tap' could not be initialized Releasing lockfile of preconfigured tap device 'tap0' build$ flock /tmp/qemu-tap-locks/tap0.lock flock: bad number: /tmp/qemu-tap-locks/tap0.lock
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.
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