Forgot to mention the versions I run:
qemu: 2.8 and 5.2
kernel: 5.4.89

On Mon, Jan 18, 2021 at 5:44 PM Roman Dodin <dodin.ro...@gmail.com> wrote:

> Hello qemu users,
> I am failing to make a qemu process running inside a docker container to
> make use of a macvtap device.
>
> Here is the diagram of a setup that I have
> [image: image.png]
> My goal is to make qemu process running inside the container to use
> macvtap1 interface that is configured.
>
> The macvtap1 interface that I have, is using the underlying /dev/tap2
> interface. That I deducted by checking ifindex (2) of macvtap1 interface
>
> I tried multiple approaches.
> 1) to open the device, obtain its fd and pass fd to the qemu:
> -device e1000,netdev=p01,mac=9a:d2:fc:3b:d9:71,bus=pci.1,addr=0x2 -netdev
> tap,id=p01,fd=3
>
> 2) referring to "tap2" in ifname of netdev section:
> -netdev tap,id=p01,ifname=tap2
>
> None of those approaches worked. By "none of them" worked I mean that I
> don't see any packets when I sniff on "macvtap1" interface when I do a ping
> from the VM that is launched with qemu.
>
> I appreciate any pointers or suggestions in further troubleshooting.
>

Reply via email to