how to enable wifi on virtualbox

Discussions related to using VirtualBox on Windows hosts.
nmaujean
Posts: 4
Joined: 18. Dec 2017, 16:49

how to enable wifi on virtualbox

Post by nmaujean »

hi,

I am connecting to internet using wifi but can't access it on virtualbox.

I configure the network with bridge adapter to my wifi, tried promiscuited mode to deny and allow all,
I installed the extension pack but it is not working so far,

thank you for your help,

best regards,

Nicolas Maujean
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: how to enable wifi on virtualbox

Post by socratis »

VirtualBox does not offer a WiFi adapter to any VMs, it's only Ethernet adapters, i.e. wired ones.

The only way that you could access a WiFi network over WiFi would be to use a USB WiFi adapter, which 1) you'd have to capture in your VM, and 2) you wouldn't be able to use on your host.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how to enable wifi on virtualbox

Post by mpack »

nmaujean wrote: I am connecting to internet using wifi but can't access it on virtualbox.
For simple Internet access a NAT configuration is usually fine, easiest to set up, and uses whatever the host is using (including WiFi). Can you say why you don't want to use it?
trekfan1
Posts: 98
Joined: 13. May 2007, 07:22
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux
Location: Italy

Re: how to enable wifi on virtualbox

Post by trekfan1 »

Or Bridge to a Wifi network card on HOST
Sorry for my English, i'm Italian
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: how to enable wifi on virtualbox

Post by socratis »

@trekfan1
Bridged and wireless don't always play nice. Bridged networking is outside the WLAN specification. Bridging to wireless is not really bridging. It may or may not work. Some combinations of Routers/Access Points, WLAN cards and drivers work, some don't. See: Bridging & Wifi - Supported hardware.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how to enable wifi on virtualbox

Post by mpack »

trekfan1 wrote:Or Bridge to a Wifi network card on HOST
I specifically asked why the OP does not want to use NAT. I suggest we cross the subject of bridging when we come to it.
nmaujean
Posts: 4
Joined: 18. Dec 2017, 16:49

Re: how to enable wifi on virtualbox

Post by nmaujean »

mpack wrote:
nmaujean wrote: I am connecting to internet using wifi but can't access it on virtualbox.
For simple Internet access a NAT configuration is usually fine, easiest to set up, and uses whatever the host is using (including WiFi). Can you say why you don't want to use it?
when you use NAT, you can't connect VM to VM and VM to host, anyway with NAT it is not working also
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how to enable wifi on virtualbox

Post by mpack »

nmaujean wrote: when you use NAT, you can't connect VM to VM
With "NAT Network" (NAT Service) you can connect VM to VM as well as VM to Internet.
nmaujean wrote: and VM to host,
True. What particular host feature do you wish to access over a network connection?
nmaujean wrote: , anyway with NAT it is not working also
Well that would be the crux of the problem. I suggest you find out why NAT (the simplest option) isn't working before going on to more advanced networking modes. NAT should always work, if the host has a working Internet connection.
nmaujean
Posts: 4
Joined: 18. Dec 2017, 16:49

Re: how to enable wifi on virtualbox

Post by nmaujean »

mpack wrote:
nmaujean wrote: when you use NAT, you can't connect VM to VM
With "NAT Network" (NAT Service) you can connect VM to VM as well as VM to Internet.

no it is part of Virtual box documentation
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how to enable wifi on virtualbox

Post by mpack »

nmaujean wrote: no it is part of Virtual box documentation
Read it again (user manual section 6.4). "NAT network" is not NAT.
nmaujean
Posts: 4
Joined: 18. Dec 2017, 16:49

Re: how to enable wifi on virtualbox

Post by nmaujean »

mpack wrote:
nmaujean wrote: no it is part of Virtual box documentation
Read it again. "NAT network" is not NAT.
yes, sorry, I misread
schulak_vdm
Posts: 1
Joined: 29. Dec 2017, 19:02

Re: how to enable wifi on virtualbox

Post by schulak_vdm »

The NAT feature try to connect to the first NIC (commonly wire interface). Becose you do not plug the wire (if you use wireless) the NAT don't give you access to the outside. Try to disable your wire NIC (of your host pc) and reboot your guest. You will have access to the internet via you wireless NIC.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: how to enable wifi on virtualbox

Post by socratis »

schulak_vdm wrote:Becose you do not plug the wire (if you use wireless) the NAT don't give you access to the outside.
I'm sorry, but that's not true. NAT will use whatever your host is using, it doesn't have any preference if it's wired, wireless or anything else. So disabling and otherwise "playing" with your wired host interfaces shouldn't affect your internet connectivity.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how to enable wifi on virtualbox

Post by mpack »

schulak_vdm wrote:The NAT feature try to connect to the first NIC (commonly wire interface).
It most definitely does not do that. At home I have terrible landline connection, but ok 4G connection. Of course the latter is metered. I regularly control which connection the HOST is using in order that the GUEST has a fast NAT connection, e.g. in order to download a large feature update and not take all day doing it.

It's possible that you have have to restart the guest, that I don't know since I never suspend VMs, I always start them from scratch every time.
bluephoenix71
Posts: 4
Joined: 7. Oct 2013, 21:22

Re: how to enable wifi on virtualbox

Post by bluephoenix71 »

Hi I would just like to know how I can install an ubuntu 64bit VM in VB and make it work using WIFI and not need to connect to the wired network in my home. Anyone have ideas? I tried this with VM workstation and I never had problems with it. I also just choose NAT and everything seems to work. How come it's so hard to install an Ubuntu VM in my windows laptop? I just want the VM to have internet access using wifi.
Post Reply