No Internet in Virtual Box

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
vimal0212

No Internet in Virtual Box

Post 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?
DrHu

Re: No Internet in Virtual Box

Post 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.
Last edited by DrHu on Fri Oct 26, 2012 4:31 pm, edited 3 times in total.
Total_Blue
Level 3
Level 3
Posts: 113
Joined: Wed Sep 07, 2011 5:01 pm

Re: No Internet in Virtual Box

Post 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.
OrthoSteven

Re: No Internet in Virtual Box

Post 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.
AmitT

Re: No Internet in Virtual Box

Post 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.
vimal0212

Re: No Internet in Virtual Box

Post 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.
rielph

Re: No Internet in Virtual Box

Post 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
Matti L

Re: No Internet in Virtual Box

Post 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.
fallen.star

Re: No Internet in Virtual Box

Post 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:
cleobrag

Re: No Internet in Virtual Box

Post 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!
JustDoIt

Re: No Internet in Virtual Box

Post 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!
User avatar
RobertLM78
Level 3
Level 3
Posts: 183
Joined: Sat Apr 28, 2012 4:19 am
Location: US

Re: No Internet in Virtual Box

Post 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. :(
Gateway DX4860, Sapphire Radeon HD 5450, 8 GB RAM, Mint 17.3 64-bit (Rosa), MATE
AMD Ryzen 3-3100, AMD Radeon RX 570, 16 GB RAM, Mint 21 (Vanessa), MATE
Mechphisto

Re: No Internet in Virtual Box

Post 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!
User avatar
RobertLM78
Level 3
Level 3
Posts: 183
Joined: Sat Apr 28, 2012 4:19 am
Location: US

Re: No Internet in Virtual Box

Post 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 :(
Gateway DX4860, Sapphire Radeon HD 5450, 8 GB RAM, Mint 17.3 64-bit (Rosa), MATE
AMD Ryzen 3-3100, AMD Radeon RX 570, 16 GB RAM, Mint 21 (Vanessa), MATE
cwsnyder

Re: No Internet in Virtual Box

Post 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.
yonnie
Level 3
Level 3
Posts: 128
Joined: Mon Jan 03, 2011 12:18 am

Re: No Internet in Virtual Box

Post 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.
We are children of children and do as we are shown.
-James Curran
patey

Re: No Internet in Virtual Box

Post 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
polymath257

Re: No Internet in Virtual Box

Post 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.
xc1427

Re: No Internet in Virtual Box

Post 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!
intelxdn1997

Re: No Internet in Virtual Box

Post by intelxdn1997 »

thank you so much that is very hellping ....
Locked

Return to “Networking”