bridged network issue with 2.2

Discussions related to using VirtualBox on Linux hosts.
Post Reply
hamelg
Posts: 9
Joined: 22. Apr 2009, 21:16
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: windows & linux

bridged network issue with 2.2

Post by hamelg »

Hello,

I upgraded to 2.2. Now, bridged network connections between host and windows or Linux guests behave badly : file copies over network with scp are very slow (15Kb/s), lots of windows errors when using samba ...

Nat network mode is working normally.

To fix this issue, I must disable gso (global segmentation offload) feature of my host nic.
The host nic is a "Broadcom Corporation NetXtreme BCM5782 Gigabit Ethernet" and my linux kernel is 2.6.29.

Is anyone else having this problem ?

Regards
ESP
Posts: 7
Joined: 21. Apr 2009, 22:48
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, openSUSE, Ubuntu, Gentoo

Re: bridged network issue with 2.2

Post by ESP »

Hello,

I have a similar Problem with Samba since upgrading to VBox 2.2.
Host System is Windows XP, Samba is running in an openSUSE guest with Kernel 2.6.27.21-0.1, bridged-network connection.
When I copy or move files from Windows to the Samba-Share, the guest system freezes. Most of the time a restart of the guest fixes it, but the first attempt normally failes.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: bridged network issue with 2.2

Post by Perryg »

I have been seeing a bit of this here. Try this for me. I don't know if it will help or not but set up the network in VBox to use the second adapter. Leave the information that you have in the first adapter just uncheck it. Do your tests and let me know.
hamelg
Posts: 9
Joined: 22. Apr 2009, 21:16
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: windows & linux

Re: bridged network issue with 2.2

Post by hamelg »

Perryg wrote:Try this for me. I don't know if it will help or not but set up the network in VBox to use the second adapter. Leave the information that you have in the first adapter just uncheck it. Do your tests and let me know.
The same goes for the second adapter.
I've tried to change the guest nic type for intel pro1000, again the same behavior.

I don't know if it is a kernel issue or a virtualbox bug because I upgraded both at the same time. To be sure, I must downgrade virtualbox to 2.1 :roll:

Any other ideas ?
skuda
Posts: 16
Joined: 20. Dec 2008, 02:32

Re: bridged network issue with 2.2

Post by skuda »

I have the same problem described here with version 2.2.2 but i have it from version 2.2, any workaround for this other than downgrade version?
nmvega
Posts: 8
Joined: 30. Jan 2009, 07:19

Re: bridged network issue with 2.2

Post by nmvega »

Interesting because I *just now* posted a detailed problem description, seemingly of the same problem.
Here is the link, in case it is useful to add detail to the issue:

http://forums.virtualbox.org/viewtopic.php?f=7&t=17712

Subject: File transfers (ftp/scp) btwn Linux VBox host and XP VM slow
burghj
Posts: 13
Joined: 27. Apr 2009, 11:45
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Re: bridged network issue with 2.2

Post by burghj »

hamelg wrote:
I upgraded to 2.2. Now, bridged network connections between host and windows or Linux guests behave badly : file copies over network with scp are very slow (15Kb/s), lots of windows errors when using samba ...

To fix this issue, I must disable gso (global segmentation offload) feature of my host nic.
The host nic is a "Broadcom Corporation NetXtreme BCM5782 Gigabit Ethernet" and my linux kernel is 2.6.29.
This looks like the same problem that I reported in http://forums.virtualbox.org/viewtopic.php?f=7&t=16988
The thread was "locked" by some "operator" as being unsuitable for the forum.

But you have found the essential point yourself, namely that it has something to do with the gso feature in the linux kernel. With this information it is not difficult to google a redhat bugzilla entry https://bugzilla.redhat.com/show_bug.cgi?id=490266
where the whole problem is discussed, explained and solved.

It was/is a bug in the linux kernel 2.6.29 which was triggered by the tun driver (or perhaps the vbox netfilter in our cases) in connection with nic drivers that use that gso feature.

The (one-line) patch is now in the kernel sources since 2.6.29.2.

So we have various solutions now:
1) A workaround is to turn off the "segmentation offload" feature for the nic as you did already (ethtool ethn -K tso off seems to do the trick).
2) Add the one-line patch to your kernel sources yourself.
3) Use a kernel version from 2.6.29.2 up.

I'll try #2 myself for my system next week and report the results here.

JRO
burghj
Posts: 13
Joined: 27. Apr 2009, 11:45
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Re: bridged network issue with 2.2

Post by burghj »

burghj wrote:
So we have various solutions now:
1) A workaround is to turn off the "segmentation offload" feature for the nic as you did already (ethtool -K ethn tso off seems to do the trick).
2) Add the one-line patch to your kernel sources yourself.
3) Use a kernel version from 2.6.29.2 up.

I'll try #2 myself for my system next week and report the results here.

JRO
I have tested this now on my system and the network connections between host and guest work fine again.

JRO
chika.tambun
Posts: 5
Joined: 24. Apr 2009, 00:29
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: windows

Re: bridged network issue with 2.2

Post by chika.tambun »

Perryg wrote:I have been seeing a bit of this here. Try this for me. I don't know if it will help or not but set up the network in VBox to use the second adapter. Leave the information that you have in the first adapter just uncheck it. Do your tests and let me know.
even till now i don't know exactly abt host interface/ bridging/ NAT
but it works when i setup ipaddress by using second adapter with intel* adapter with NAT
and first adapter set to host interface

N it works
Post Reply