Learning Hub / Your Attack Machine / Configure Your Kali Box

Configure Your Kali Box

Guide 2.3 Difficulty: Beginner ~20 minutes

A few small tweaks turn Kali from "works" into "a pleasure to use": a full-size resizable screen, a shared clipboard, a folder you can swap files through, and snapshots so you can always roll back.

Step 1 — Install VirtualBox Guest Additions

Guest Additions give you a resizable display, shared clipboard, and better performance. The Kali pre-built image usually includes them; if your screen won't resize, install them manually:

kali@kali
$ sudo apt update
$ sudo apt install -y virtualbox-guest-x11
$ sudo reboot

After rebooting, enable View → Auto-resize Guest Display in the VirtualBox window. The Kali desktop should now fill your window.

Kali desktop automatically resizing to fill the VirtualBox window after Guest Additions are installed
Figure 1. A resizable Kali display after Guest Additions.

Step 2 — Enable a shared clipboard

With the VM running, choose Devices → Shared Clipboard → Bidirectional. You can now copy and paste between your host and Kali — handy for commands and notes.

Step 3 — Set up a shared folder

A shared folder lets you move files (wordlists, downloads, screenshots) between host and Kali.

  1. Add the folder in VirtualBox

    Open Settings → Shared Folders, add a folder from your host, name it share, and tick Auto-mount and Make Permanent.

    VirtualBox Shared Folders settings adding a host folder named share with auto-mount enabled
    Figure 2. Configuring a shared folder.
  2. Give your user access

    Auto-mounted shares appear under /media/ and are owned by the vboxsf group. Add your user to it, then log out and back in:

    kali@kali
    $ sudo usermod -aG vboxsf $USER
    $ ls /media/sf_share

Step 4 — Find your lab IP address

You'll need Kali's address constantly when scanning. Find it with:

kali@kali
$ ip -4 addr show eth0 | grep inet
    inet 192.168.56.10/24 brd 192.168.56.255 scope global eth0

Make a note of this 192.168.56.x address — it identifies your attacker on the lab network.

Step 5 — Take a clean snapshot

Snapshots are save points. Take one now, while Kali is freshly updated and configured, so you can always return to a known-good state.

  1. Shut down Kali

    A snapshot taken while powered off is the cleanest.

    kali@kali
    $ sudo poweroff
  2. Create the snapshot

    In VirtualBox Manager select Kali → SnapshotsTake. Name it clean-updated.

    VirtualBox snapshot panel showing a snapshot named clean-updated for the Kali VM
    Figure 3. A clean snapshot you can always roll back to.

Take a fresh snapshot before any big experiment. If something breaks, restore in seconds instead of rebuilding the whole VM.

Checkpoint: Kali resizes, shares a clipboard and folder with your host, you know its lab IP, and you have a clean snapshot. Your attacker is ready — time to add some targets.