I'm having trouble with a slow network connection between the host (Windows Vista) and guest (Ubuntu). My goal is to set up a guest for development which has full internet access to the outside world but can also run a server (web, ftp, etc) visible to the host.
I tried setting this up as a bridged interface which seems to work but not quite. The guest is given an IP of 192.168.1.107 and the host is given an IP of 192.168.1.105 so everything seems ok at first. The guest accesses the internet fine. The problem is that the connection is painfully slow when I try to reach an HTTP server running on the guest from a web browser running on the host. There may be a 10-15 second delay before the browser displays a response.
Profiling tools on the guest show no problem with the HTTP server. If I connect to the HTTP server from the guest there's no problem (it's fast). If I ping the guest from the host there doesn't seem to be a slowdown there.
If I connect using a host-only interface the connection is not slow (but now the guest cannot access the internet).
I'm running 3.0.4 now but upgraded from 2.2 where I had the same problem.
Any thoughts?
Slow connection using bridged interface
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Slow connection using bridged interface
Unless you are running your own DNS server then this kind of behavior can be due to name resolution. By default in Bridged mode the name resolution is sent to your Provider first. You can solve this by running your own DNS server of by adding the name resolution and IP address to your Vista hosts file. That should speed things up a bit for you.
-
queso128
- Posts: 2
- Joined: 6. Sep 2009, 21:24
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: Ubuntu
Re: Slow connection using bridged interface
Thanks perryg but I'm using IP addresses only. Just to double-check I added a "linuxhost" entry to my hosts file and trying to connect to http://linuxhost/ has the same 10-15 sec delay (but it ultimately connects).
-
jonnei
- Posts: 1
- Joined: 19. Nov 2009, 16:05
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: Ubuntu 9.10 Server Edition
Re: Slow connection using bridged interface
I'm having the same problem now, after the update to 3.0.12. No answers?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Slow connection using bridged interface
Have you tried what I suggested above?jonnei wrote:I'm having the same problem now, after the update to 3.0.12. No answers?