This repository contains instructions and scripts on how to build the virtual machine for the USO course.
The VM is built using vbox
and ansible
.
- Download the ISO for the LTS version of Ubuntu Desktop.
- Install
vbox
on your host. - Create a new VM in
vbox
using the downloaded ISO. Note: you might need to increase CPU/RAM to speed up the installation. - Run the
vbox
script to configure the VM. - Install
ansible-core
on the VM. - Install
openssh-server
on the VM. - Install VirtualBox Guest Additions on the VM.
scp
theansible
playbook to the VM.- Run the
ansible
playbook to install the necessary software. - Clean up the VM:
- Remove the
ansible
playbook. - Uninstall
ansible-core
.
- Remove the
- Export the VM as an
ova
file.
Useful commands:
# Install ansible-core
sudo apt update
sudo apt install ansible -y
# Install openssh-server
sudo apt install openssh-server -y
# Install VirtualBox Guest Additions
sudo apt install build-essential dkms linux-headers-$(uname -r) -y
sudo mount /dev/cdrom /media/cdrom
sudo /media/cdrom/VBoxLinuxAdditions.run
# Ansible commands
ansible-playbook ubuntu.yml --syntax-check
ansible-playbook ubuntu.yml
- The VM is based on Ubuntu Desktop 24.04 - Download the ISO from here.
- The VM is based on Ubuntu Desktop 22.04 - Download the ISO from here.
The scripts and configs for the vm are based on the following instructions.