Skip to content

Instantly share code, notes, and snippets.

@Shawn-Armstrong
Last active February 2, 2023 21:03
Show Gist options
  • Save Shawn-Armstrong/1956a470880dbced8f52ec6a14dc2a15 to your computer and use it in GitHub Desktop.
Save Shawn-Armstrong/1956a470880dbced8f52ec6a14dc2a15 to your computer and use it in GitHub Desktop.
How to install guest additions on Ubuntu guest machine

#Ubuntu_Guest_Additions_Install.md

Overview

  • The following document provides instructions for installing guest additions on Ubuntu.
  • This installation was performed on 12/15/2022 running Ubuntu 20.04 as a guest machine using VirtualBox 6.1 on Windows10.

Insturctions

  1. Open a commandline on Ubuntu and execute the following commands:
shawn@shawn-VirtualBox:~$ sudo apt update
shawn@shawn-VirtualBox:~$ sudo apt-get upgrade
shawn@shawn-VirtualBox:~$ sudo apt-get dist-upgrade
shawn@shawn-VirtualBox:~$ sudo apt install build-essential dkms linux-headers-$(uname -r)
  1. Go to devices then select "Insert Guest Additions CD Image".

image

  1. Open the mounted CD in the file explorer then open a terminal.
    mount

  2. Execute the following command:

    shawn@shawn-VirtualBox:~$ sudo ./VBoxLinuxAdditions.run
  3. After the installation is finished execute

    shawn@shawn-VirtualBox:~$ shutdown -r now

Summary

Guest additions provides useful features to allow the host and guest machine to interact; namely, drag/drop functionality, shared clipboard as well as enabling the guest machine to have a custom screen resolution. These features can be enabled using the devices tab.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment