How to add VBoxLinuxAdditions.run in Debian Based Linux Distros
This Installation helps us auto configure the display size and other utilities when we setup a Linux distro inside the Virtual Box.
To install VirtualBox Guest Additions on your Ubuntu or any Debian Linux Distro inside a Virtual machine, follow these steps.
These additions will enable features like auto-resizing the VM window, shared folders, and better graphics support.
1. Mount the Guest Additions ISO
Start your Ubuntu VM.
In the VirtualBox menu, go to:
Devices → Insert Guest Additions CD image...
If prompted, allow VirtualBox to download the Guest Additions ISO.
2. Update Your Ubuntu System
Before proceeding, update your system to ensure you have the latest packages:
3. Install Required Dependencies
The Guest Additions require some tools to be installed first. Install them using the following command:
4. Mount the CD-ROM
If the Guest Additions CD doesn't auto-mount, you can manually mount it:
Check the contents of the CD to confirm the mount worked:
When you'll mount the CD and will try to read it something like ( This is Read-Only ) will pop-up which is completely fine (so don't panic, everything is okay).
5. Run the Installer
Run the Guest Additions installer from the mounted ISO:
6. Reboot the Virtual Machine
After installation completes, reboot the VM:
7. Verify Auto-Resize
After rebooting:
Resize the VirtualBox window, and Ubuntu should automatically adjust its resolution.
If it doesn’t work, ensure Auto-resize Guest Display is enabled:
Go to View → Auto-resize Guest Display in VirtualBox.
Troubleshooting
If the installation fails or auto-resizing doesn’t work:
Check the installation log for errors:
Ensure the Guest Additions kernel modules are loaded:
This should be resolving any issues you guys were facing. Have a nice day. V3nom Signing Off!!
Last updated