Installing Guest Additions for Ubuntu 22.04 on Virtual Box
2024/02/06
Jez Caudle
Ubuntu 22.04 VirtualBox Guest Additions
Before I can write up How To Install Elastic Agent On Ubuntu 22.04, I need to create a virtual machine running Ubuntu 22.04 and install Elastic Agent as I don’t want to take my live server offline if I make any mistakes.
I installed the version without HWE, updated the installer to the latest version and chose the Ubuntu Server (minimized) - I had chosen the English (UK) localisation so surely that should have been “minimised”?
Then:
sudo apt update
sudo apt install bzip2
sudo apt dist-upgrade -y
sudo reboot
After logging back in:
sudo mount /dev/cdrom /media
cd /media
sudo ./VBoxLinuxAdditions.run
sudo reboot
Worked for me.