Page 1 of 1

No Internet in Virtual Box

Posted: Tue Jun 05, 2012 1:52 pm
by vimal0212
I just installed Linux Mint 13 and installed Virtual Box latest version.
My pc is connected to Internet and I can access websites.
But I cant access network in Virtual Box client operating systems.
I was used VB in Ubuntu 10.04 and no problem with Internet.
Give me a solution to access Internet inside VB?

Re: No Internet in Virtual Box

Posted: Tue Jun 05, 2012 2:15 pm
by DrHu
Start with the regular troubleshooting (virtualbox uses the host OS network card for outside(internet) access)).

Code: Select all

inxi -N
ifconfig
netstat -r
route
--etc etc
And you don't say whether wireless or wired

The default mode is NAT (Network Address Translation), which is the normal way an internal LAN connects to the internet via an ISP connection, and should be the same way on your Linux host (or windows host)
--if the internet works on the host OS, it should without any attention also work on the virtual box guest OS..

A bit of an explanation, but also discussing bridged mode for the nic (Network Interface card), a mode that is sometinmes needed for other types of data transfer..
http://www.howtogeek.com/howto/4922/wee ... t-edition/
  • The VirtualBox NAT adapter is great, especially for laptop users—the guest VM always has access to the internet regardless of where your laptop is connected to.

Re: No Internet in Virtual Box

Posted: Wed Jun 06, 2012 3:01 am
by Total_Blue
vimal0212 wrote:I just installed Linux Mint 13 and installed Virtual Box latest version.
My pc is connected to Internet and I can access websites.
But I cant access network in Virtual Box client operating systems.
I was used VB in Ubuntu 10.04 and no problem with Internet.
Give me a solution to access Internet inside VB?
Are you using NAT or Bridged? For some reason, I could not get NAT to work, but it worked for me using Bridge.

Re: No Internet in Virtual Box

Posted: Fri Jun 08, 2012 2:59 pm
by OrthoSteven
This is very strage, both of my Virtualbox sytems (XP & Centos) can no longer connect to the interent. I know for a fact my XP guest could when I initially installed LinuxMint 13.

Changed both network connections to be bridged (from NAT) and it started working. I've had these guests running on the last 3 releases of Linux Mint & Ubuntu and they have always worked fine. Not sure what changed, but both guests can access the internet now.

Re: No Internet in Virtual Box

Posted: Thu Jun 14, 2012 4:44 am
by AmitT
OrthoSteven wrote:This is very strage, both of my Virtualbox sytems (XP & Centos) can no longer connect to the interent. I know for a fact my XP guest could when I initially installed LinuxMint 13.

Changed both network connections to be bridged (from NAT) and it started working. I've had these guests running on the last 3 releases of Linux Mint & Ubuntu and they have always worked fine. Not sure what changed, but both guests can access the internet now.
Same problem here.
Just changed it to "bridged" and it works now.

Re: No Internet in Virtual Box

Posted: Thu Jun 14, 2012 5:41 am
by vimal0212
Yes I changed NAT to Bridge. Now it works.
Thank you all of you.
AmitT wrote:
OrthoSteven wrote:This is very strage, both of my Virtualbox sytems (XP & Centos) can no longer connect to the interent. I know for a fact my XP guest could when I initially installed LinuxMint 13.

Changed both network connections to be bridged (from NAT) and it started working. I've had these guests running on the last 3 releases of Linux Mint & Ubuntu and they have always worked fine. Not sure what changed, but both guests can access the internet now.
Same problem here.
Just changed it to "bridged" and it works now.

Re: No Internet in Virtual Box

Posted: Fri Jun 15, 2012 2:36 am
by rielph
Same thing on me, I have a newly installed Linux Mint 13 as host then I installer Oracle Virtualbox and installed Linux Mint 13 also as my guest OS. The host is connecting via on my wifi-wifi router I have no issues on browsing, but I can't access the internet from the guest OS, I can't ping the host OS, and the websites. I also tried using NAT and Bridged still I can't connect to the internet. Please help. Thank you

Re: No Internet in Virtual Box

Posted: Fri Jun 29, 2012 2:48 pm
by Matti L
I think the reason connecting to the internet in VirtualBox doesn't work in Ubuntu 12.04 is described here:
https://forums.virtualbox.org/viewtopic.php?f=7&t=49519

Using NAT you can change the guest DNS to whatever you want (eg, Google Public DNS: 8.8.8.8 ) and you should be able to surf the net like usual again.

Re: No Internet in Virtual Box

Posted: Mon Aug 13, 2012 8:45 pm
by fallen.star
Hey, anyone?

I have no internet in virtualbox host mint 13 guest xp pro, wireless atheros card.

I have tried all the options in vbox's network; NAT, bridged, Internal, Host-only, unchecking the cable connected box; still nothing.

Bridged gives me the connected but limited or no connectivity bubble.

Please make it better :oops:

Re: No Internet in Virtual Box

Posted: Sat Sep 01, 2012 12:05 am
by cleobrag
Found a Simple Solution to the Connectivity Problem in Virtualbox:
1. Set the Network setting to NAT in Virtualbox settings for WinXP.
2. After booting into the virtual XP machine, go to Properties of the Network Adapter
(right click on My Network Places, Properties, right click on Local Area Connection, Properties).
In the General tab, go to Properties of Internet Protocol (TCP/IP), and insert the following DNS server addresses:
208.67.222.222
208.67.220.220

(OpenDNS configuration)
3. Now full internet connectivity is established.
Simple yet efficient!

Re: No Internet in Virtual Box

Posted: Mon Sep 17, 2012 2:53 pm
by JustDoIt
That's right!!

Just set as NAT and then in your virtual xp machine change dns to 208.67.222.222, 208.67.220.220 (or maybe you can use google dns 8.8.8.8 and 8.8.6.6) :D

Greetings from Peru!

Re: No Internet in Virtual Box

Posted: Wed Sep 19, 2012 4:19 pm
by RobertLM78
For what it's worth, I'm having the same difficulty. Only started popping up with Maya. Lisa VM's let me connect no problem. The whole situation is really disappointing in the end, because I haven't been able to play around with different distros like I was able to do just a few months ago. :(

Re: No Internet in Virtual Box

Posted: Thu Oct 25, 2012 7:29 pm
by Mechphisto
cleobrag wrote:Found a Simple Solution to the Connectivity Problem in Virtualbox:
1. Set the Network setting to NAT in Virtualbox settings for WinXP.
2. After booting into the virtual XP machine, go to Properties of the Network Adapter
(right click on My Network Places, Properties, right click on Local Area Connection, Properties).
In the General tab, go to Properties of Internet Protocol (TCP/IP), and insert the following DNS server addresses:
208.67.222.222
208.67.220.220

(OpenDNS configuration)
3. Now full internet connectivity is established.
Simple yet efficient!
Worked for me! Thanks!

Re: No Internet in Virtual Box

Posted: Fri Oct 26, 2012 4:19 pm
by RobertLM78
Mechphisto wrote:
cleobrag wrote:Found a Simple Solution to the Connectivity Problem in Virtualbox:
1. Set the Network setting to NAT in Virtualbox settings for WinXP.
2. After booting into the virtual XP machine, go to Properties of the Network Adapter
(right click on My Network Places, Properties, right click on Local Area Connection, Properties).
In the General tab, go to Properties of Internet Protocol (TCP/IP), and insert the following DNS server addresses:
208.67.222.222
208.67.220.220

(OpenDNS configuration)
3. Now full internet connectivity is established.
Simple yet efficient!
Worked for me! Thanks!
Too bad that's for a Window$ XP VM :(

Re: No Internet in Virtual Box

Posted: Sat Oct 27, 2012 3:16 pm
by cwsnyder
You can change to Google DNS or OpenDNS servers in your network manager application in whatever Linux/BSD version you install as well as you can in Windows XP. If you have problems doing so in a particular VM, you need to get peculiar instructions from the exact version you are trying to install in a VM.

Re: No Internet in Virtual Box

Posted: Sun Jan 06, 2013 2:02 pm
by yonnie
I don't see a [solved] on this topic so I'm assuming this is still open.

After battling with this all day and now on second day with trying to get vista to run on virtual box in LM14, I found a youtube which was a great help (I closed the link and can't find it again, sorry). Turn off the OS running in VBox, select it, (in case you have more than 1), go to settings in the VB manager, choose network, choose bridged-mode instead of NAT, choose the adapter that has "desktop" in the description. Click on OK. Start the OS and it (network) should start working. Hope this helps a few people and saves some time.

Re: No Internet in Virtual Box

Posted: Wed Jan 16, 2013 5:40 am
by patey
An alternative to manually entering DNS settings is to run this in a terminal:

Code: Select all

VBoxManage modifyvm "VM name" --natdnshostresolver1 on
This way it will work with whatever DNS your host is currently using.

Source:
https://forums.virtualbox.org/viewtopic.php?f=7&t=49519
http://www.virtualbox.org/manual/ch09.h ... lver_proxy

Re: No Internet in Virtual Box

Posted: Sun Jan 27, 2013 8:13 pm
by polymath257
I'm on a Mint 14 host and Bodhi guest. The host has a wireless usb stick. Using NAT, the guest obtained a IP address in the 10.0.. range, but was unable to connect to the net.

Using the bridged option allowed connection.

But I wanted to find a way to use NAT and still connect. I was able to do this by using Network Manager and editing the wired connection of the guest.

Under IPv4 settings, choose either 'Manual' mode (if you want a static address) or choose 'Automatic (DHCP) addresses only'.

In either case, provide the DNS servers of choice (I chose the google servers). If necessary, disable then re-enable networking to force a change. This is essentially the same trick as above for Win VMs.

Now the guest connects through NAT.

Re: No Internet in Virtual Box

Posted: Mon Aug 12, 2013 8:28 pm
by xc1427
JustDoIt wrote:That's right!!
Just set as NAT and then in your virtual xp machine change dns to 208.67.222.222, 208.67.220.220 (or maybe you can use google dns 8.8.8.8 and 8.8.6.6) :D
Greetings from Peru!
WORKS FOR ME!
I have Mint 13 as host OS and Win 7 as guest OS. The host OS has internet access via a WIFI connection.
Networking Mode is NAT but didn't work. Changing DNS server lets win 7 (guest) obtain Internet access!

Re: No Internet in Virtual Box

Posted: Sat Jul 28, 2018 12:53 pm
by intelxdn1997
thank you so much that is very hellping ....