Unable to connect (to the Internet) from a Linux guest

Discussions about using Linux guests in VirtualBox.
Post Reply
jirma
Posts: 3
Joined: 18. Oct 2012, 14:36

Unable to connect (to the Internet) from a Linux guest

Post by jirma »

While trying to resolve another issue (which require installation of new kernel packages) I found out I am not able to connect from my Linux guest to the Internet.

I tried both Bridged and NAT options.
a) Bridged + DHCP is unable to assign an IP address to the guest
b) Bridged + static
I am able to assign the IP address, but I cannot ping even the host machine - my (Windows 7) host has the address 10.163.28.223, subnet mask 255.255.252.0, gateway 10.163.28.1, I assigned manually the guest's address to 10.163.28.222 (checked it was not used) and used the same subnet mask and gateway, but could not ping either the host, nor the gateway
c) NAT + DHCP
The guest gets the IP address 10.0.2.15, I can ping 10.0.2.2, but nothing else - the error I get is 'Connect: Network is unreachable'. Also, nslookup returned no results.

Another hint I noticed: following a colleague's advice I tried to upgrade my VirtualBox to the most recent version (from 4.2.0 to 4.2.2). After the first run, the system showed me that I have an older version of Virtual Box Extensions installed, and when the system tried to update it, it could not connect to the Internet either (we don't use direct proxy settings, but get it from a wpad.dat file). Not sure if its related.
Rui Baptista
Posts: 63
Joined: 23. Dec 2010, 05:03
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux, ...

Re: Unable to connect (to the Internet) from a Linux guest

Post by Rui Baptista »

Yep, maybe it's related, wpad support isn't granted.

Download the wpad script, take a look at it and use one of the ips in VBox's Settings » Proxy
Post Reply