[SOLVED] VB and DEBIAN - Bridged Networking very slow

Discussions about using Linux guests in VirtualBox.
Post Reply
Hobbystern
Posts: 40
Joined: 21. Sep 2010, 06:17
Primary OS: MS Windows other
VBox Version: OSE Debian
Guest OSses: Windows XP

[SOLVED] VB and DEBIAN - Bridged Networking very slow

Post by Hobbystern »

Hi Mates,

i am using Debian and VB 3.2.8. Experienced some slow networking between 2 VMs, VB got bridged Networking with 1000Mbs on the host, every VM displays only 100 - even if i tell them per "nicspeed1 1000000" that there is more to get.

To demonstrate how "fast" the bridge is - just now i copy 4.5GB from one vm to another, it takes 2 hours and avg speed is 1 MB / sec.

What can i do to test the connection or better - what can i do to make it faster?

VM Config

Code: Select all

        <Network>
          <Adapter slot="0" enabled="true" MACAddress="080027FE1DC8" cable="true" speed="1000" type="Am79C973">
            <DisabledModes>
              <NAT>
                <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>                          
                <Alias logging="false" proxy-only="false" use-same-ports="false"/>
              </NAT>
            </DisabledModes>
            <BridgedInterface name="eth0"/>
          </Adapter>
          <Adapter slot="1" enabled="false" MACAddress="0800273C02A2" cable="true" speed="0" type="Am79C973">
            <DisabledModes>
              <NAT>
                <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
                <Alias logging="false" proxy-only="false" use-same-ports="false"/>
              </NAT>
            </DisabledModes>
          </Adapter>
          <Adapter slot="2" enabled="false" MACAddress="080027D13CC4" cable="true" speed="0" type="Am79C973">
            <DisabledModes>
              <NAT>
                <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
                <Alias logging="false" proxy-only="false" use-same-ports="false"/>
              </NAT>
            </DisabledModes>
          </Adapter>
          <Adapter slot="3" enabled="false" MACAddress="0800271FBAF6" cable="true" speed="0" type="Am79C973">
            <DisabledModes>
              <NAT>
                <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
                <Alias logging="false" proxy-only="false" use-same-ports="false"/>
              </NAT>
            </DisabledModes>
          </Adapter>
          <Adapter slot="4" enabled="false" MACAddress="0800273396C7" cable="true" speed="0" type="Am79C973">
            <DisabledModes>
              <NAT>
                <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
                <Alias logging="false" proxy-only="false" use-same-ports="false"/>
              </NAT>
            </DisabledModes>
          </Adapter>
          <Adapter slot="5" enabled="false" MACAddress="08002793A7D6" cable="true" speed="0" type="Am79C973">
            <DisabledModes>
              <NAT>
                <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
                <Alias logging="false" proxy-only="false" use-same-ports="false"/>
              </NAT>
            </DisabledModes>
          </Adapter>
          <Adapter slot="6" enabled="false" MACAddress="080027EF0262" cable="true" speed="0" type="Am79C973">
            <DisabledModes>
              <NAT>
                <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
                <Alias logging="false" proxy-only="false" use-same-ports="false"/>
              </NAT>
            </DisabledModes>
          </Adapter>
          <Adapter slot="7" enabled="false" MACAddress="0800273D1661" cable="true" speed="0" type="Am79C973">
            <DisabledModes>
              <NAT>
                <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
                <Alias logging="false" proxy-only="false" use-same-ports="false"/>
              </NAT>
            </DisabledModes>
          </Adapter>
        </Network>
Host "interfaces"

Code: Select all

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address 10.0.0.10
        netmask 255.255.0.0
        network 10.0.0.0
        broadcast 10.0.0.255
        gateway 10.0.0.112
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 10.0.0.112
        dns-search agethen
    bridge_ports eth0 vbox0 vbox1
As i see, is it right that i connect to "eth0" with the vms, or isnt it that i must connect to vbox0 vbox1 and so on?
I got this config from the ubuntu wiki.

Thanks Much!
Last edited by Hobbystern on 8. Oct 2010, 08:42, edited 1 time in total.
Asterisk - Server 1.4.x auf Debian Lenny mit heartbeat-redundantem-Bruder und 80 Klienten
Samba - Domänen - Server auf Debian Lenny mit VirtualBox 4.0.8 - (neu:clusterbetrieb), externem BackupStorage
Ich bin ein EDV Hobby - Stern (engl.Asterisk) und habe mit DOS5.0 und Novell Netware angefangen
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VB and DEBIAN - Bridged Networking very slow

Post by Perryg »

Well first do you have a router in the network?
It looks like you are actually using the host to do the bridge instead of VirtualBox.
Hobbystern
Posts: 40
Joined: 21. Sep 2010, 06:17
Primary OS: MS Windows other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: VB and DEBIAN - Bridged Networking very slow

Post by Hobbystern »

Hi Perry,

yes - of course. There is a router in the network, the host only act as a client - from network sight.

Greets! Stefan
Asterisk - Server 1.4.x auf Debian Lenny mit heartbeat-redundantem-Bruder und 80 Klienten
Samba - Domänen - Server auf Debian Lenny mit VirtualBox 4.0.8 - (neu:clusterbetrieb), externem BackupStorage
Ich bin ein EDV Hobby - Stern (engl.Asterisk) und habe mit DOS5.0 und Novell Netware angefangen
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VB and DEBIAN - Bridged Networking very slow

Post by Perryg »

Well I was only thinking that if you setup the bridge like it was supposed to be you might have better throughput.
VirtualBox has had its own Bridge for some time now. Using the host to construct the bridge might be causing a bottleneck.
Hobbystern
Posts: 40
Joined: 21. Sep 2010, 06:17
Primary OS: MS Windows other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: VB and DEBIAN - Bridged Networking very slow

Post by Hobbystern »

Perry, is there an other (better?) Instruction how to set it up?

I only found this one for me - please keep in mind, i need a installation without gui (headless!)

Ups! EDIT

In this Link (i posted after a quick googling) the team wrote in german :

"Upcoming to Version 2 and later, there is no need to do any changes to the host system anymore, vb can do it by himself"

But! 3 Lines later, they explain how to do the changes to the host.....grmpfl!

I think that my changes are not needed - i can test it out and kick them through - possible that is the reason for the leackage?

Greets! Stefan
Asterisk - Server 1.4.x auf Debian Lenny mit heartbeat-redundantem-Bruder und 80 Klienten
Samba - Domänen - Server auf Debian Lenny mit VirtualBox 4.0.8 - (neu:clusterbetrieb), externem BackupStorage
Ich bin ein EDV Hobby - Stern (engl.Asterisk) und habe mit DOS5.0 und Novell Netware angefangen
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VB and DEBIAN - Bridged Networking very slow

Post by Perryg »

Depending on the version that you have you only need to set bridged in the guest settings and then configure you guests network.
you may need to remove the adapter information and start over now though.

Here is a simple one. http://www.ubuntugeek.com/ubuntu-networ ... -line.html Has both dhcp and static.
No need to setup any special bridge inside the OS if it is Ubuntu 8.04 or newer and any VBox version newer than 2.1.x IIRC
Hobbystern
Posts: 40
Joined: 21. Sep 2010, 06:17
Primary OS: MS Windows other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: VB and DEBIAN - Bridged Networking very slow

Post by Hobbystern »

Yes Perry, i think so, too.

Got much luck that we two found this before the week starts...Thx much Dude!

I reply here to set up if the Goal is reached..
Asterisk - Server 1.4.x auf Debian Lenny mit heartbeat-redundantem-Bruder und 80 Klienten
Samba - Domänen - Server auf Debian Lenny mit VirtualBox 4.0.8 - (neu:clusterbetrieb), externem BackupStorage
Ich bin ein EDV Hobby - Stern (engl.Asterisk) und habe mit DOS5.0 und Novell Netware angefangen
Hobbystern
Posts: 40
Joined: 21. Sep 2010, 06:17
Primary OS: MS Windows other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: VB and DEBIAN - Bridged Networking very slow

Post by Hobbystern »

Goal is reached, bridged networking under the VB is at "normal state" - no bridging tools and something installed or configured.

Now the reported speed is right, 1000Mbps instead of the bridged 100.

Network feels better, works better - i am happy.

Thx!
Asterisk - Server 1.4.x auf Debian Lenny mit heartbeat-redundantem-Bruder und 80 Klienten
Samba - Domänen - Server auf Debian Lenny mit VirtualBox 4.0.8 - (neu:clusterbetrieb), externem BackupStorage
Ich bin ein EDV Hobby - Stern (engl.Asterisk) und habe mit DOS5.0 und Novell Netware angefangen
Post Reply