My ifconfig.vether0
create
inet 192.168.0.35 netmask 255.255.255.0
! ifconfig bridge0 create
! ifconfig bridge0 up
! brconfig bridge0 add vether0 add iwm0
and script to start qemu
qemu-system-x86_64 -accel nvmm \
-cpu max -smp cpus=2 -m 1G \
-drive file=netbsd.qcow2,if=none,id=hd0 \
-device virtio-blk-pci,drive=hd0 \
-audiodev oss,id=oss,out.dev=/dev/audio,in.dev=/dev/audio \
-netdev tap,id=vether0,ifname=vether0,script=no -device virtio-net-pci,netdev=vether0 \
-device ac97,audiodev=oss \
-display sdl,gl=on \
// -netdev tap,id=vether0,ifname=vether0,script=no -device virtio-net-pci,netdev=vether0 \
// -netdev user,id=vioif0 -device virtio-net-pci,netdev=vioif0 \
// -boot once=d -cdrom iso/NetBSD-10.0_RC3-amd64.iso \
ip forwarding is enabled
nvmm loaded
and when the script is run:
qemu-system-x86_64: -netdev tap,id=vether0,ifname=vether0,script=no: could not open /dev/vether0: No such file or directory