QEMU networking quirkiness on 7.0

Jim Stapleton stapleton.41 at gmail.com
Sat Apr 12 17:13:24 UTC 2008


OK, my stupid jokes aside, I got this result:


# ifconfig
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
        options=98<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:1a:70:12:bc:55
        inet 192.168.1.84 netmask 0xffffff00 broadcast 192.168.1.255
        inet 192.168.1.85 netmask 0xffffffff broadcast 192.168.1.85
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
tap0: flags=8903<UP,BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:bd:cd:fd:1a:00
bridge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 8e:31:f1:19:61:13
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
        root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0
        member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
# cat WinXP\ VM
#!/bin/sh
qemu -boot c -net nic -net tap -hda /data/WinXP.img -m 512 -soundhw
es1370 -localtime -smb /data/
# ./WinXP\ VM
warning: could not open /dev/tap4 (No such file or directory): no
virtual network emulation Could not initialize device 'tap'
sjss at elrond 02:11:26 (1) ~/Desktop > ls -lh /etc/ | grep qemu; cat
/etc/qemu-ifup
-rwxr-xr-x 1 root wheel      18 Apr 10 11:35 qemu-ifup*
ifconfig ${1} up




I tried to create tap4 to fix this, then it complained about tap5 not
existing. It creates the /dev/tap device it wants when there is an
error.
I figure I made a  mistake (obviously), any ideas what?

Thanks,
-JIm Stapleton


More information about the freebsd-questions mailing list