Configure wireless in Ubuntu 16.04 guest

Discussions about using Linux guests in VirtualBox.
Post Reply
faffer
Posts: 18
Joined: 16. Apr 2010, 12:26
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: OpenSUSE 11.2

Configure wireless in Ubuntu 16.04 guest

Post by faffer »

Hello,

I'm running Ubuntu 16.04 as a guest os on my windows laptop.

After setup it appears to know it's a VM and is using NAT mode to connect to the network via the windows host.

This is great, but what I actually want to do is connect to the wireless network directly from my VM (so I can write some user instructions on how to do so). So I want the guest OS to see and use the host wireless adapter, not use the host's existing wireless connection. I hope that makes sense. Is that possible?

Thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Configure wireless in Ubuntu 16.04 guest

Post by Perryg »

Depends. Some USB wireless adapters don't play well, but if you find one that does then yes. You attach the device via USB and do not setup the network in the VirtualBox guest settings since it will be passed to the guest as a USB device. Then make sure you have the proper drivers for the guest to be able to use the device.
faffer
Posts: 18
Joined: 16. Apr 2010, 12:26
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: OpenSUSE 11.2

Re: Configure wireless in Ubuntu 16.04 guest

Post by faffer »

Thanks,

As this is a laptop it has a built-in wireless adaptor. I found that the networking was set to 'NAT' which I changed to 'Bridged', this seems to make the adaptor visible and I have selected it, I also created a new wireless connection. But I don't think the drivers are installed properly as there are no wireless SSIDs being detected, the wireless icon appears in the toolbar but is empty as if no signal.

I found the Intel 7265 drivers and put the files in /lib/firmware do I need to do anything else to install those drivers? The instructions aren't very helpful
Last edited by socratis on 9. Jan 2017, 18:04, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Configure wireless in Ubuntu 16.04 guest

Post by Perryg »

Built in adapters are presented as PCI devices and not USB. Windows hosts can not use the PCI passthrough only Linux so that part is out for you. You would need a USB adapter to allow the guest to use the wireless adapter direct. Presently the wireless device you have is being represented as a cabled device and not wireless, plus it is using the hosts drivers and a special hook from the VirtualBox driver to allow access.
faffer
Posts: 18
Joined: 16. Apr 2010, 12:26
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: OpenSUSE 11.2

Re: Configure wireless in Ubuntu 16.04 guest

Post by faffer »

Ah that explains why the ethernet adaptor was shown in the details under the wireless adaptor. Ok, I'll buy myself a wireless USB adaptor and try again.

Just on the off-chance do you have any recommendations for one of those?! Choosing one looks like a bit of a minefield! Doesn't need to be high-powered or AC compatible (though I would buy an AC one if it was reliable)
Last edited by socratis on 9. Jan 2017, 18:05, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Configure wireless in Ubuntu 16.04 guest

Post by Perryg »

Not sure which one you need but AC does not matter AFAIK. I have used linksys before with success. I would stay away from d-link with all the hubbub of its failing security going on.
faffer
Posts: 18
Joined: 16. Apr 2010, 12:26
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: OpenSUSE 11.2

Re: Configure wireless in Ubuntu 16.04 guest

Post by faffer »

Ok thanks for your help
Post Reply