On Wed, 2 Jul 2025 at 19:18, Brook Milligan <br...@biology.nmsu.edu> wrote:
>
> I’m trying to set up a qemu guest with tap networking with no luck.  I’m 
> following chapter 30 of the guide pretty closely and everything except the 
> network seems to work as expected; user mode networking also works fine, but 
> is not what I need.
>
> The details are in the attached files (qemu command line, host tap0 
> configuration, host bridge0 configuration, and guest vioif0 configuration and 
> routing table), but a few points.
>
> The qemu network is set up as
>
>         -netdev tap,id=vioif0,ifname=tap0,script=no -device 
> virtio-net-pci,netdev=vioif0


FWIW, I've always started my qemu quests under NetBSD like this:

/usr/pkg/bin/qemu-system-x86_64 \
        -device qemu-xhci \
        -device usb-tablet \
        -m 2048M \
        -k en-gb \
        -accel nvmm \
        -vnc :8 \
        -drive format=raw,file=/dev/zvol/rdsk/pail/mxlinux \
        -vga vmware \
        -smp 2 \
        -net tap,fd=4 4<>/dev/tap3 \
        -net nic

The bridge was created as per the wiki. I can't test it atm, though.

>
> The host tap0 interface has a MAC address of f2:0b:a4:70:18:82, and the guest 
> vioif0 interface has a MAC address of 52:54:00:12:34:56.  The latter is what 
> shows up on the bridge; should they match?  When I add mac=f2:0b:a4:70:18:82 
> to -device, the network still does not work.
>
> I expected the guest to see traffic on its interface from the bridge (it 
> should be passing all traffic, right?), but there is nothing, and I cannot 
> ping even the host IP address.
>
> Also, the host has no route pointing to the tap0 interface.  Should there be 
> one?  If so, how should it be created?  Should there be an IP address on the 
> host tap0 interface?
>
> I’m sure there is something obviously incorrect in my configuration, but I’m 
> not seeing it.  Any help is greatly appreciated.
>
> Thanks a lot.
>
> Cheers,
> Brook
>


-- 
----

Reply via email to