Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install VirtualBox Guest Additions on Ubuntu 20.04 - DesignLinux

May 29 2020
designlinux 0 Comments
How to Install VirtualBox Guest Additions on Ubuntu 20.04

VirtualBox allows you to run multiple guest operating system simultaneously. The Guest Additions provides some useful functionalities for guest machines like a mouse pointer integration, full screen view, shared folders, shared clipboard, better and accelerated and much more. In this article, we will show how to install VirtualBox Guest Additions on Ubuntu 20.04 guests.

Installing Guest Additions on Ubuntu#

VirtualBox guest additions can be installed using VirtualBox guest addition ISO file. That inlcudes guest additions installers for all supported guest operating systems. The Guest additions ISO file can be mounted on a VirtualBox virtual machine via the Virtualbox manager or by installing with the package manager.

Perform the following steps to install VirtualBox guest additions on Ubuntu desktop or server guest.

1. Open the VirtualBox GUI Manager.

2. Start the Ubuntu guest virtual machine.

3. Log in to the guest machine as root or sudo user. Run below command to install the packages required for building kernel modules:

sudo apt update
sudo apt install dkms linux-headers-$(uname -r) build-essential

4. Open the virtual machine and click Devices > Insert Guest Additions CD image on the Menu bar.

insert-guest-additions-cd-image

5. To mount the ISO file, create a new directory using Ubuntu terminal:

sudo mkdir -p /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom

6. Go to that directory and run VBoxLinuxAdditions.run script to install the Guest Additions:

cd /mnt/cdrom
sudo sh ./VBoxLinuxAdditions.run

It will show output like below:

Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.8 Guest Additions for Linux...
...
VirtualBox Guest Additions: Starting.

7. Reboot the Debian guest for changes to take effect:

sudo shutdown -r now

8. Verify the installation once the virtual machine is booted, run the below command to check:

lsmod | grep vboxguest
vboxguest 348160 2 vboxsf

If it will not return any output means that the VirtualBox kernel module is not loaded.

Well, that is it. You have installed VirtualBox Guest Additions on your Ubuntu guest machine.

You can now enable mouse pointer integration, shared clipboard, shared folders, etc. from the virtual machine settings.

Conclusion#

This tutorial shown you step by step how to install VirtualBox Guest Additions on your Ubuntu 20.04 guest machine.

Visit VirtualBox Guest Additions documentation page to know more.

If you have any questions, please leave a comment below.

Related

Tags: ubuntu, virtualbox

How to Install and Use PHP Composer on Ubuntu 20.04

Prev Post

Secure Nginx with Let’s Encrypt on Ubuntu 20.04

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 1,069
  • 610,428

DesignLinux.com © All rights reserved

Go to mobile version