virtio driver: seeing all packets. Is this expected?

This is for discussing general topics about how to use VirtualBox.
Post Reply
rschmied
Posts: 18
Joined: 5. Jan 2010, 11:42
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: various
Location: Germany

virtio driver: seeing all packets. Is this expected?

Post by rschmied »

I'm using VB 4.0 on Linux Lucid 64 and Mac OS X 10.6 with various guests. Since switching to VB 4.0 I've changed the NIC in my Linux guests to the virtio NIC driver. Now I'm observing that all my Linux guests see all traffic from the host NIC and not only the traffic that is addressed to their MAC address (from a networking perspective it looks as if the guest is connected via a hub to the host resulting in seeing all packets. Where as in a switched environment it would only see the packets that are addressed to the guest or broad / multicast packets). This is especially painful as the host boots from iSCSI and some of the VDI images of the guests reside on NFS shares... :( IOW, I'm seeing a pretty high interrupt load on my guests resulting from traffic on the net that should not be seen by the guest in the first place.
  • is this expected? or a bug?
  • On the Linux host, I could setup a bridge and attach a tap interface to the bridge, connecting the guest to the tap interface, that would solve the problem but would add additional processing overhead on the host... is this recommended?
  • have others experienced similar behavior?
Thanks,
-ralph
Last edited by rschmied on 18. Jan 2011, 14:52, edited 1 time in total.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: virtio driver: seing all packets. Is this expected?

Post by fixedwheel »

i have no experience in this, but with your given precondition i would go that way:
connecting the guest to the tap interface, that would solve the problem
rschmied
Posts: 18
Joined: 5. Jan 2010, 11:42
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: various
Location: Germany

Re: virtio driver: seing all packets. Is this expected?

Post by rschmied »

Thanks for replying... And I would agree that it removes the symptoms but not the problem (also not speaking of the additional performance overhead which was the reason I went down the virtio path). Especially since there's no such thing (brctl, bridging of interfaces) on a Mac and I'm also not sure if that could be easily done on Windows platforms.
Post Reply