How To: Struggling to Connect to WiFi Network on Kali Linux 2.0 VirtualBox

Struggling to Connect to WiFi Network on Kali Linux 2.0 VirtualBox

Hello y'all!

I apologize if this question has been solved somewhere else, but I have looked around on Google, Yahoo, and Null Byte and have not been able to find any working solutions.

I've been trying to set up my first ever virtualbox guest (Kali Linux 2.0), but I'm having trouble with my network connection immediately after installing this guest machine on my Windows 7 host.

Ping and ifconfig in Terminal: http://imgur.com/FMlrLun

Sometimes, upon logging in as a root user, I can "ping google.com" in the Terminal, getting a steady stream of data from the internet. Okay, great! That means I'm connected right? But other times (even 10 seconds later) I try to ping yahoo.com without any different settings and all of a sudden "ping:unknown host yahoo.com".

The issue wouldn't be as bad if it only happened some of the time, but even when ping does work in the terminal, once I decide to try updating my system and enter "apt-get update" I only get error messages stating that I was "Unable to connect to security.kali.org:http:"

"Unable to Connect": http://imgur.com/nqH8888

This is where I'm really having a hard time, because my connection says that I am attached by a wired cable to the Network (I think my computer is using my WiFi but I attached my ethernet cable just in case).

Network Connection: http://imgur.com/36k8qMd
Network Adapter: http://imgur.com/x9qwdgO

How can I connect to the internet so I can update stuff?

Thank you!

(Editted to attach pictures)

Just updated your iPhone? You'll find new emoji, enhanced security, podcast transcripts, Apple Cash virtual numbers, and other useful features. There are even new additions hidden within Safari. Find out what's new and changed on your iPhone with the iOS 17.4 update.

4 Comments

Try to configure the network from Bridged to NAT.

Jako is right. When connecting out to the Internet, use NAT as your network setting. Also, sometimes the VM will drop the IP address of Kali. Make certain you have an IP before trying to connect out (ifconfig). If there is no IP, use dhclient to get a DHCP assigned IP.

Thank you JaKo and occupytheweb it seems you were both correct! Configuring the network from Bridged to NAT solved my issue.

Network Connection achieved! Thanks again so much for helping! (:

You're welcome, for that we are!

Share Your Thoughts

  • Hot
  • Latest