1

I am new to Ubuntu and I can't seem to figure out how to connect to the wireless through my Bell Router.

I am using Ubuntu 12.04 in VirtualBox on a Macbook Pro Retina, and do not have the adapter to connect over Ethernet.

Thanks.

amc
  • 7,292

3 Answers3

2

The host should be connected to your wifi router network, the vm uses a virtual lan to connect to your host and share it's internet connection. In Ubuntu you will see a lan connection, that is what you want.

Network Connection Journey:

Router <----As-Wifi----> Host <----As-Virtual-Lan----> Virtual Machine

Screenshot Of Default VirtualBox Network Settings For An Ubuntu VM:

Screenshot

Screenshot Of Default Network Settings Within The Ubuntu VM:

Screenshot

Javier Rivera
  • 35,434
mango
  • 114
1

VirtualBox does not natively offer Wireless support (Like a virtualized Wireless device). Instead, it connects directly to the Wireless device the Host uses. Note that VirtualBox does NOT provide a virtualized Wireless device inside the guest (ubuntu in your case). They will all look like a wired one, even if the host (osx in your case) is providing the connection via a Wired or Wireless card.

First lets install the Extension Pack for that particular VirtualBox Version. It fixes many network cases. You can find the extension pack in the Download section of VirtualBox. Your version is for OS X hosts.

To install it, open VirtualBox, go to the menu and select File --> Preferences. Now select Extensions and select the Add Pack button at the far right. Look for the downloaded Extension pack and add it to VirtualBox.

You can read this guide for detailed step-by-step with images but care, the host is ubuntu too. For example you can skip the vboxusers step.

0

Virtual networking on a virtual environment holds few types which can be used according to the users need. Depending on how the network that a user requires; they can select their preferred one. But before doing so; it is better to acknowledge on the available options & what it does.

Basic networks explained;

  • Not attached - In this mode, VirtualBox reports to the guest that a network card is present, but that there is no connection -- as if no Ethernet cable was plugged into the card. This way it is possible to "pull" the virtual Ethernet cable and disrupt the connection, which can be useful to inform a guest operating system that no network connection is available and enforce a reconfiguration.
  • Network Address Translation (NAT) - If you're a use who need web browsing, email communication, downloading within the guest OS. Well, this is the suitable one as it look into the host OS's network and NAT it into guest OS
  • Bridged networking - This is for more advanced networking needs such as network simulations and running servers in a guest. When enabled, VirtualBox connects to one of your installed network cards and exchanges network packets directly, circumventing your host operating system's network stack. In simple ways, this does the same as the host OS tend to do.
  • Internal networking - This can be used to create a different kind of software-based network which is visible to selected virtual machines, but not to applications running on the host or to the outside world.
  • Host-only networking - This can be used to create a network containing the host and a set of virtual machines, without the need for the host's physical network interface. Instead, a virtual network interface (similar to a loopback interface) is created on the host, providing connectivity among virtual machines and the host.
  • Generic networking - Rarely used modes share the same generic network interface, by allowing the user to select a driver which can be included with VirtualBox or be distributed in an extension pack.

These are the common available networking types available on Virtual Box environment. You may refer Chapter 6. Virtual networking for detailed information.

Now, by looking into your issue; I assume you will need to bridge adapter in order to get wireless working. But I'm quiet confused as to why NAT did not work as it suppose to. Further, selecting network types are located under;

  • VirtualBox -> Select VM -> Settings -> Networking (do below);

enter image description here

Hope this helps!

AzkerM
  • 10,390