63

I recently installed Ubuntu on a VirtualBox VM it installed just fine (much easier than on VirtualPC). However I'm unable to get internet access from the guest OS (ie. Ubuntu). Can anyone give me any pointers on how I might enable this?

The Host OS is Windows Vista and the hardware is an IBM Lenovo.

Hash
  • 4,647
  • 5
  • 21
  • 39
Joel Martinez
  • 1,063
  • 1
  • 10
  • 11
  • 1
    No solution listed under this question worked for me. I was about to go crazy before i got this idea of disabling/uninstalling anti-virus on my host machine. And, that worked. – Amna Ali Mar 03 '15 at 22:23
  • 2
    Might be off topic, but I sure am glad it's here and Google knows it. – Adrian Carr Mar 06 '16 at 04:38
  • 1
    This might only help a small percent of the people, but: my problem was, I had VPN running on the host OS. – neuromouse Feb 04 '18 at 22:04
  • this is an old question but i would recommend to check to check the bridge connection status on your virtual box – Jose Antonio Nov 10 '18 at 20:55

5 Answers5

35

How did you configure networking when you created the guest? The easiest way is to set the network adapter to NAT, if you don't need to access the vm from another pc.

Adam Lassek
  • 35,156
  • 14
  • 91
  • 107
  • 1
    To add to ALassek's excellent answer, many wireless interfaces do not support promiscuous mode, and therefore cannot support bridged networking either (I'm not implying that you're in this situation, just mentioning it for the record). So yes, NAT is the first port of call in such cases. – C. K. Young Aug 30 '08 at 00:02
  • Does this work if you change wifi networks http://superuser.com/questions/990021/change-wifi-virtualbox-internet-goes-down ? – Lime Oct 21 '15 at 22:40
28

I could get away with the following solution (works with Ubuntu 14 guest VM on Windows 7 host or Ubuntu 9.10 Casper guest VM on host Windows XP x86):

  1. Go to network connections -> Virtual Box Host-Only Network -> Select "Properties"
  2. Check VirtualBox Bridged Networking Driver
  3. Come to VirtualBox Manager, choose the network adapter as Bridged Adapter and Name to the device in Step #1.
  4. Restart the VM.
wisbucky
  • 33,218
  • 10
  • 150
  • 101
Vishal
  • 289
  • 3
  • 2
16

I had the same problem.

Solved by sharing internet connection (on the hosting OS).

Network Connection Properties -> advanced -> Allow other users to connect...

jutky
  • 3,895
  • 6
  • 31
  • 45
3

it could be a problem with your specific network adapter. I have a Dell 15R and there are no working drivers for ubuntu or ubuntu server; I even tried compiling wireless drivers myself, but to no avail.

However, in virtualbox, I was able to get wireless working by using the default configuration. It automatically bridged my internal wireless adapter and hence used my native OS's wireless connection for wireless.

If you are trying to get a separate wireless connection from within ubuntu in virtualbox, then it would take more configuring. If so, let me know, if not, I will not bother typing up instructions to something you are not looking to do, as it is quite complicated in some instances.

p.s. you should be using Windows 7 if you have any technical inclination. Do you live under a rock? No offense intended.

-3

I had a similar issue in windows 7 + ubuntu 12.04 as guest. I resolved by

  • open 'network and sharing center' in windows
  • right click 'nw-bridge' -> 'properties'
  • Select "virtual box host only network" for the option "select adapters you want to use to connect computers on your local network"
  • go to virtual box.. select the network type as NAT.
Joshua T
  • 656
  • 8
  • 15
chandru
  • 51
  • 1
  • 1
  • 12
    There is a "'nw-bridge" option in windows? Where? – R Claven Mar 04 '14 at 05:13
  • 1
    Downvoted to bring the upvotes to an incorrect information down. So ppl don't waste time with this. – Mukus Mar 27 '15 at 03:42
  • >>>right click 'nw-bridge' -> 'properties' He forgot to add one step just before this step. We need to create network bridge. Follow below steps to create it. 1. Open network and sharing center in windows. 2. select both "wifi" node and "virtual box host only network" noe and right click, we find create bridge network, choose it. 3. Network bridge node is created. 4. Right click this node, goto properties. Next steps are same. This solution is worked for me...!!!! – Raj May 31 '18 at 17:14