Trying To Connect Wi-fi With Kali Linux In VirtualBox

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Shaggy »

Hi, I'm new to VirtualBox and I'm trying to get my wi-fi connection working with Kali Linux. I've tried setting Network to NAT and Bridged Adapter with Promiscuous Mode set to Allow all, but keep getting this error when typing "ipconfig Wi-Fi name down". bash: ipconfig: command not found. What could be causing this?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Perryg »

Depends. How are you trying to connect kali to the adapter? Wired or wireless.
Guests don't see a wireless VBox adapter as they will see a wired connection. If you want kali to use the wireless adapter it must be a USB device and then it needs to be attached to the guest and the configuration would be done in the guest.
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Shaggy »

I do have a USB adapter.
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Shaggy »

Sorry, but what do you mean buy guest? I just installed Vbox and loaded Kali!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Perryg »

host = your PC
guest = other operating system installed in VirtualBox.

For USB wifi adapter to work you must install the extension pack and your user name must be in the vboxusers group on the host.

In a host terminal run this:

Code: Select all

sudo usermod -aG vboxusers <your username>
Replace <your username> with the name you use to log in. Type your user password when prompted.


Be sure to log off and back in to finalize the change in permissions
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Shaggy »

In vbox where exactly do I put this in?

In a host terminal run this:
CODE: SELECT ALL EXPAND VIEW
sudo usermod -aG vboxusers <your username>

Replace <your username> with the name you use to log in. Type your user password when prompted.

I take it I put it in Oracle VM VirtualBox Manager/ Settings/ Network, but I'm lost from there!

My Network settings say

Adapter 1
Enable Network Adapter, checked
Attached to: Bridged Adapter
Name: Wireless USB Adapter
Advanced
Adapter Type: Intel PRO/1000 MT Desktop (82540EM)
Promiscuious Mode: Allow All
MAC Address: ************`
Cable Connected, checked

I do not see where to put in that line?
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Shaggy »

Okay I tried it in root@kali:~# and this is what I get "usermod: group 'vboxusers' does not exist".

I wonder what I'm doing wrong?
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by loukingjr »

you run the command on the host, not the guest.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Shaggy »

Per my post two up I 'm trying, but don't know where!
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by loukingjr »

What is your host OS?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Shaggy »

Windows 8.1
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by loukingjr »

lol then why are you posting in the Linux Hosts section?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Perryg »

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

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Perryg »

Since this is not a Linux host my previous suggestions are not valid.
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Trying To Connect Wi-fi With Kali Linux In VirtualBox

Post by Shaggy »

Sorry, totally new to VirtualBox!
Post Reply