Qemu: Assigning two tap devices to one virtual machine

Jedrzej Kalinowski kalinoj1 at iem.pw.edu.pl
Sat May 23 22:46:54 UTC 2009


Hello all,

I'm running qemu 0.10.5 on CURRENT machine and experienced an
interesting problem.

I try to run a single qemu machine with two network interfaces (tap's)
connected to the same bridge - I need this for playing with m0n0wall for
example.

The qemu launch looks similiar to this:

qemu -net nic -net tap -net nic -net tap -cdrom cdrom.iso -curses

What happens is that when qemu starts up - my machine locks (sometimes I
manage to kill qemu and recover it, sometimes not). I see that it's a
problem with network bridge - looks like the infitine loop of arp
requests that get replicated infinitely (it also kills/floods my real network
that is connected through the bridge to the tap devices).

My question is - have any of You tried to use multiple tap devices within
one qemu machine? Can you replicate this problem in your environments?

One note: there is no problem if I run two qemus and each of them has a
tap device connected to bridge0. They coexist and I have no network
issues in both guests. I can post qemu-if{up,down} scripts if needed.

All the best,
Jedrzej Kalinowski


More information about the freebsd-emulation mailing list