VirtualBox Guest Additions on Kali Linux Install Guide 2025
文章指导如何在Kali Linux上正确安装VirtualBox Guest Additions以优化虚拟机性能。步骤包括更新系统包、安装依赖、挂载ISO并执行安装程序。完成后可实现全屏显示、共享文件夹及剪贴板功能,并提供性能优化建议。 2025-6-18 13:40:56 Author: www.blackmoreops.com(查看原文) 阅读量:13 收藏

Installing VirtualBox Guest Additions on Kali Linux packages correctly is crucial for optimal virtual machine performance. Many users struggle with fullscreen display issues, shared folders, and clipboard functionality when running Kali Linux on VirtualBox. This comprehensive guide provides the definitive method for installing these essential packages in 2025.

Modified Kali Linux running on Virualbox and fully installed Guest Additions

Check the 256MB Video memory and 4GB RAM that makes Kali Linux run faster

Without Virtualbox Guest Additions on Kali Linux

Before installing VirtualBox Guest Additions on Kali, users typically experience:

  • Inability to run Kali Linux in fullscreen mode
  • Non-functional shared clipboard between host and guest
  • Disabled drag-and-drop functionality
  • Poor mouse integration
  • Incorrect display resolution detection
  • Slow performance and system freezes

Step-by-Step Installation Process

Updating System Packages

First, update your Vbox Guest Additions on Kali Linux system completely:

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y

This crucial step ensures kernel headers match your running kernel version. Skipping this often causes installation failures.

Installing Required Dependencies

Install the necessary kernel headers for VirtualBox Guest Additions on Kali:

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

The $(uname -r) command automatically detects your kernel version, ensuring correct header installation.

Kali Linux terminal displaying successful linux-headers installation required for VirtualBox Guest Additions Kali Linux

Kali Linux terminal displaying successful linux-headers installation required for VirtualBox Guest Additions Kali Linux

Mounting Guest Additions ISO

From VirtualBox’s Devices menu, select “Insert Guest Additions CD image“. This mounts the VirtualBox Guest Additions ISO containing installation files.

VirtualBox Devices menu showing Insert Guest Additions CD image option

VirtualBox Devices menu showing Insert Guest Additions CD image option

Copying and Installing Packages

Copy the installer to your desktop:

cp /media/cdrom/VBoxLinuxAdditions.run ~/Desktop/ 
cd ~/Desktop/ 
chmod 755 VBoxLinuxAdditions.run 
sudo ./VBoxLinuxAdditions.run

Watch for “…done” messages during installation. These confirm successful module compilation and installation.

Kali Linux terminal displaying VBoxLinuxAdditions.run installation progress

Kali Linux terminal displaying VBoxLinuxAdditions.run installation progress

Rebooting the System

After successful installation, reboot your system:

sudo reboot

Configuring Shared Folders

Setting Up Host Folders

After installing VirtualBox Guest Additions, you should be able to configure shared folders through VirtualBox Manager:

  1. Select your Kali VM
  2. Click “Shared Folders” in settings
  3. Add your desired host folder
  4. Enable “Auto-mount” and “Make Permanent”

VirtualBox Manager showing shared folders configuration interface

VirtualBox Manager showing shared folders configuration interface

Performance Optimisation

Maximise Kali Linux performance by:

  • Allocating sufficient RAM (minimum 2GB)
  • Installing on SSD storage
  • Adjusting video memory to 128MB or 256MB

Modern Alternatives

While VirtualBox remains popular for Kali Linux for testing securely, consider these alternatives:

Conclusion

VirtualBox Guest Additions on Kali Linux provides essential integration between your host system and virtual machine and allows for better virtual machine experience. Following these steps ensures fullscreen support, clipboard sharing, and optimal performance. Regular updates and correct initial configuration prevent most common issues users encounter. With fullscreen support, shared clipboard functionality, and improved mouse integration, your penetration testing workflow becomes significantly more efficient and user-friendly.


文章来源: https://www.blackmoreops.com/virtualbox-guest-additions-on-kali-linux-install-guide-2025/
如有侵权请联系:admin#unsafe.sh