Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internet Access in Ubuntu on VirtualBox [closed]

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.

like image 979
Joel Martinez Avatar asked Aug 29 '08 21:08

Joel Martinez


People also ask

Why can't VirtualBox connect to the Internet?

This is because VirtualBox by default does not support Wi-Fi connectivity unless the users have a USB Wi-Fi adapter installed. However, as a workaround, you can bridge to a Wi-Fi network card on the host. In this article, we discuss how to enable Wi-Fi on VirtualBox to access the Internet on your virtual machine.

How do I connect my virtual machine to the Internet Ubuntu?

Right-click the network connection and go under Sharing. Allow the sharing and choose the NAT Network from the drop-down. Now, on VMWare, go to the settings of Virtual Machine. Under Network, choose Custom Network and select the same NAT connection.


2 Answers

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.

like image 111
Adam Lassek Avatar answered Sep 22 '22 19:09

Adam Lassek


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.
like image 22
Vishal Avatar answered Sep 22 '22 19:09

Vishal