Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've got an OSX 10.8 machine hosting Ubuntu 13.04 in a VirtualBox VM. The guest Ubuntu machine is running an Apache server. I'm accessing the website from my host machine and am experiencing very high latency (15-40 seconds per http page request).

Th VM's Network is set to use "Bridged Adapter" mode. edit| I have set the network Adapter Type to Paravirtualized (virtio-net) and it has made no difference. |edit

The Ubuntu machine has the following configuration in /etc/network/interfaces:

auto lo
iface lo inet loopback

Running ifconfig on the Ubuntu machine gives this output:

eth0      Link encap:Ethernet  HWaddr 08:00:27:77:1f:31  
          inet addr:172.16.103.101  Bcast:172.16.103.255  Mask:255.255.252.0
          inet6 addr: fe80::a00:27ff:fe77:1f31/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5194 errors:0 dropped:12 overruns:0 frame:0
          TX packets:376 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:975517 (975.5 KB)  TX bytes:82820 (82.8 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:126 errors:0 dropped:0 overruns:0 frame:0
          TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:10903 (10.9 KB)  TX bytes:10903 (10.9 KB)

My host OSX machine has this record in /etc/hosts:

172.16.103.101 local.site

Accessing the site via http://local.site/ works fine, but results in high latency as described above. Pinging the guest IP (172.16.103.101) is very quick (0.3 - 0.6ms).

What could be the cause of this latency?

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.