Can't Connect Wi-Fi With Kali Linux

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

Can't Connect Wi-Fi With Kali Linux

Post by Shaggy »

First off I'm new to VirtualBox! I've had it for about 3 weeks. I have Kali Linux, Ubuntu 15.04, and Tails 1.4 loaded as Guests and the host is a Windows 8.1 machine. I'm trying to get Kali working with a wi-fi connection. This is how I have things setup. However when trying to go online in Kali this is what I get. "Unable to mount location. Failed to retrieve share list from server". Please tell me how to properly set things up so I can get online!
Attachments
Kali Network.png
Kali Network.png (23.99 KiB) Viewed 4568 times
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Can't Connect Wi-Fi With Kali Linux

Post by Shaggy »

I know I'm not online because when I try to ping Google I get a reply of "Network Unreachable"!
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can't Connect Wi-Fi With Kali Linux

Post by noteirak »

There are limitations when bridging to a Wifi adapter - it might or might not work, depending on the hardware itself and also on your AP hardware.
I have the feeling, given your error messages, that the guest adapter is not configured properly and/or you encounter the above issue.
Provide the output of the following commands in the guest:

Code: Select all

ifconfig -a
route -n
nslookup 8.8.8.8
ping 8.8.8.8
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Can't Connect Wi-Fi With Kali Linux

Post by Shaggy »

ipconfig -a
bash: ipconfig: command not found

route -n
Kernel IP Routing Table
Destination Gateway Genmask Flags Metrics Ref Use Iface
0.0.0.0 10.0.3.2 0.0.0.0 UG 0 0 0 eth1
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.0.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

nslookup 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
8.8.8.8.in-address.arpa name = google-public-dns-a.google.com.

Authoritative answers can be found from:

ping 8.8.8.8
PING 8.8.8.8(8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_request=1 ttl=53 time=60.8 ms
64 bytes from 8.8.8.8: icmp_request=1 ttl=53 time=180 ms
64 bytes from 8.8.8.8: icmp_request=1 ttl=53 time=61.0 ms
and so on and so on
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Can't Connect Wi-Fi With Kali Linux

Post by Shaggy »

Oh yeah I changed the network to NAT and now the Host is Windows 10 Build 10074.
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Can't Connect Wi-Fi With Kali Linux

Post by Shaggy »

I wonder why the ipconfig command is not found?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't Connect Wi-Fi With Kali Linux

Post by Perryg »

Probably because it is ifconfig instead of ipconfig
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can't Connect Wi-Fi With Kali Linux

Post by noteirak »

Indeed, silly me. Regardless, the other commands show that your network connection is perfectly fine - you got IP connectivity and DNS resolution. I guess since you switched to NAT?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't Connect Wi-Fi With Kali Linux

Post by Perryg »

Max,

You have ifconfig in your post.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can't Connect Wi-Fi With Kali Linux

Post by noteirak »

Ok sleep time it is... at least I had it right :D
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Shaggy
Posts: 16
Joined: 27. May 2015, 14:34

Re: Can't Connect Wi-Fi With Kali Linux

Post by Shaggy »

Okay, now that I'm online using NAT if at root@kali:~#ifconfig ******** down what do I put in for *******? Is it my SSID, DNS suffix, or USB Wireless LAN Card name? Maybe I should ask this on the Kali Linux forum?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can't Connect Wi-Fi With Kali Linux

Post by noteirak »

The Kali forum is your next step yes - everything is working fine in VirtualBox.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply