How to install VirtualBox Guest Additions on Kali Linux

If you run Kali Linux as a 'guest' in VirtualBox, this article will help you successfully install the 'VirtualBox Guest Additions' tool on Kali Linux.

You must use 4.2.xx or newer of VirtualBox to take advantage of enhancements, including compatible updates and enhance the stability of both platform and client applications.

  1. Download VirtualBox

Install VirtualBox Guest Additions in Kali Linux

VirtualBox Guest Additions integrates appropriate mouse and screen, as well as shared folders, with your operating system. To install them, proceed as follows.

Start the Kali Linux virtual machine, open the terminal window and enter the following commands:

 apt-get update 
apt-get install -y virtualbox-guest-x11
reboot

How to install VirtualBox Guest Additions on Kali Linux Picture 1

Install VirtualBox Guest Additions in older Kali versions

Start Kali Linux virtual machine, open a terminal window and enter the following command to install Linux kernel headers:

 apt-get update && apt-get install -y linux-headers - $ (uname -r) 

Once completed, you can attach an image of the CD-ROM ' Guest Additions '. Select ' Devices ' from the VirtualBox menu and then select ' Install Guest Additions '. This will mount the ISO Guest Additions in the virtual CD drive of the virtual machine Kali Linux. When prompted to run the CD automatically, click the Cancel button.

How to install VirtualBox Guest Additions on Kali Linux Picture 2

From the terminal window, copy the VboxLinuxAdditions.run file from the Guest Additions CD-ROM to the path on the local system. Ensure the necessary conditions and run the file to start the installation.

 cp /media/cd-rom/VBoxLinuxAdditions.run / root / 
chmod 755 /root/VBoxLinuxAdditions.run
cd / root
./VBoxLinuxAdditions.run

How to install VirtualBox Guest Additions on Kali Linux Picture 3

Restart Kali Linux virtual machine to complete the Guest Additions installation process. You will now have full mouse and screen integration, as well as the ability to share folders with the server system.

Create shared folders with the server system

This section explains how to share folders on the server system with Kali Linux VirtualBox 'guest'.

From VirtualBox Manager, select your Kali Linux VM and click on the ' Shared Folders ' link in the right pane. This will open a window to add the shared folder. In this window, click the " Add Folders " icon.

In the Folder Path text box, provide the path to the folder you want to share or click the drop-down arrow to browse the server system for the path to the directory. Select the checkboxes to enable ' Auto-mount ' and ' Make Permanent ' and click the ' OK ' button both times when prompted.

How to install VirtualBox Guest Additions on Kali Linux Picture 4

Your shared folders will now be available in the media folder. You can create bookmarks or links for easier access to folders.

How to install VirtualBox Guest Additions on Kali Linux Picture 5

See more:

  1. How to install Kali Linux on Android using Linux Deploy
  2. Instructions for installing Kali Linux on Windows 10 are easier than ever
  3. How to install and use Kali Linux on VmWare virtual machine
3.8 ★ | 108 Vote

May be interested

  • How to manage Linux services using SystemdPhoto of How to manage Linux services using Systemd
    one of the most important skills that any new systemd user needs to learn is how to manage computer services. this article will teach you the basics: start, stop, enable and disable services from the linux command line.
  • 10 reasons you can't not 'love' Linux MintPhoto of 10 reasons you can't not 'love' Linux Mint
    when deciding to switch to linux, which version should you choose? when consulting with the 'seniors', they will introduce linux mint. why? it is simply one of the most user-friendly and flexible linux distributions.
  • How to 'turn' Ubuntu into WindowsPhoto of How to 'turn' Ubuntu into Windows
    thanks to gnome shell in ubuntu 18.04 lts, you can now get a windows-style taskbar on ubuntu. alternatively, you can change the theme to look like windows if you feel 'bored' with the orange theme of ubuntu.
  • How to find, set and change IP addresses on LinuxPhoto of How to find, set and change IP addresses on Linux
    ip address is like a computer phone number. computers use it to communicate with other devices and vice versa. here are some simple ways to manage ip addresses on linux.
  • How to check the status of using laptop battery running LinuxPhoto of How to check the status of using laptop battery running Linux
    previously, battery management on laptops running linux was quite complicated. for years, linux has been 'famous' for managing inefficient battery life. part of it is due to the amount of work going into linux through the server space. partly because it can't guess the user configuration setting.
  • Instructions for using pstree command on LinuxPhoto of Instructions for using pstree command on Linux
    pstree is a powerful and useful command to display processes running in linux. like the ps command, it shows all the processes that are currently active on your login system. the main difference is that when running the pstree command, processes are organized into tree sorting instead of lists like using the ps command.