Setting up a Ubuntu 22.04 LTS VM in Oracle Virtualbox
This is how I setup my Ubuntu 22.04 LTS VM every time I need to work on a fresh installation.
Pre-Installation
- Load the Ubuntu 22.04 LTS ISO file when initializing the new VM, but disable the unattended installation.
- Allocate (at least) 2 CPU cores and 4 GB of RAM.
- Create a new virtual hard disk with a size of (at least) 25 GB.
During Installation
- Select the US-US keyboard layout.
- Select the minimal installation option.
- Select the Jakarta, Indonesia region.
- By default, I set the passwords of my VM to 0000 and enable automatic login.
Post-Installation
- Skip the Ubuntu Pro subscription.
- Disable sending system information to Canonical.
- Remove Ubuntu softwares and Help from the favourites bar, and move the home folder shortcut to the top-right.
- Go to the settings and enable the following:
- Power: Set blank screen to never
- Appearance: Dark mode
- Language & Region: Set the language format to UK (requires reboot and login)
-
Install the following packages:
sudo apt update sudo apt install build-essential dkms linux-headers-$(uname -r)
- Install the Virtualbox Guest Additions Disk and run the autorun script.
-
Add the current user to the vboxsf group:
sudo adduser $USER vboxsf
- Reboot the VM.
- Eject the Virtualbox Guest Additions Disk.
- Enable bidirectional shared clipboard and add shared folders if necessary.
-
Update all softwares:
sudo apt upgrade
- Shut down and create a snapshot of the fresh VM.
Enjoy Reading This Article?
Here are some more articles you might like to read next: