Start from a clean slate - kdaisho/Blog GitHub Wiki

Install Ubuntu from USB

Install VirtualBox

How to install VirtualBox

Install Kali

Go to Kali website

Download from Virtual Machines option, not from Installer Images option

Set up Kali

Launch VirtualBox

Add Kali if it's not there

Increase memory to 8MB (8192KB)

Click "Start"

If it doesn't, follow the message. You might need to install a few things. Browse the error message, you'll find solutions easily.

sudo apt update
sudo apt upgrade

Troubleshooting errors on launching Kali in VirtualBox

When I try to run Kali on VirtualBox I got this error:

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing /sbin/vboxconfig as root. If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vobxnetflt, vboxnetadp, vboxpci) before you can load them.

I checked BIOS, but Secure Boot was disabled already. (I did it a few months ago)

You can check it without launching BIOS settings.

mokutil --sb-state

After running sudo /sbin/vboxconfig and failed, Warp AI recommended install linux-headers-$(uname -r), gcc, make, perl. So I ran this:

sudo apt-get install -y linux-headers-$(uname -r) gcc make perl
sudo /sbin/vboxconfig

Now I can launch it.

The error has been resolved by:

  1. Installing the necessary build tool
  2. Rebuilding the VirtualBox kernel modules using vboxconfig

Tor

Check proxychains4.conf file to see if proxy_dns is not commented in the file.

vim /etc/proxychains4.conf

Installing & running (new: should install via nix package)

sudo apt install tor
sudo service tor start
# check the status to see it's active
sudo service tor status
# run the browser using proxychain
proxychains firefox

Change Kali password

passwd
# do it also for superuser too
sudo passwd

Install Nix

Guide: https://github.com/kdaisho/Blog/wiki/Nix-minimal-setup

Install extension pack for VirtualBox to recognize devices through USB slot -- USB Passthrough

How to set up WiFi - USB Passthrough