NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: configuring QEMU guest networking

On Fri, Dec 9, 2011 at 8:39 PM, Russ Campbell <> 
>> (Stefano Marinelli) writes:
>>>As far as I remember (and have observed), qemu 0.13.x in pkgsrc is not 
>>>correctly with NetBSD guests and networking.
>>It works for me with:
>>        qemu ... -net tap,fd=3 3<>/dev/tap0 -net nic
>>                                Michael van Elst
> When I try this I get an error saying "Missing name for redirect."

The following allows me to see qemu guests in my LAN.

# grep bridge /etc/rc.conf
net_interfaces='fxp0 bridge0'
# cat /etc/ifconfig.bridge0
!ifconfig tap0 create up
!ifconfig tap1 create up
!ifconfig tap2 create up
!ifconfig tap3 create up
!ifconfig tap4 create up
!ifconfig tap5 create up
!ifconfig tap6 create up
!ifconfig tap7 create up
!ifconfig tap8 create up
!ifconfig tap9 create up
!brconfig bridge0 add fxp0 add tap0 add tap1 add tap2 add tap3 add
tap4 add tap5 add tap6 add tap7 add tap8 add tap9 up
#  cat /srv/qemu/

renice 15 $$ >/dev/null 2>&1

qemu -no-acpi \
   -hda /srv/qemu/dfly.img \
   -m 192 \
   -net nic,model=ne2k_pci,macaddr=02:07:83:A8:81:FF \
   -net tap,fd=3 \
   -boot c "$@" 3<>/dev/tap3

Home | Main Index | Thread Index | Old Index