Virtual Box

NOTE: did not work well on apple silicon.

Installation

Installation of Virtual Box

brew install --cask virtualbox@beta

(ref: reddit)

Download image: Ubuntu

Unzip it (can use this util method)

7z.unzip(){
  local file="${1:?}"

  install_if_missing p7zip 7za
  7za x "${file:?}"
}

Create a New Virtual Machine (if you haven't already):

  • Click on New to start the creation wizard.

img

  • Enter the name for your VM, choose the type and version of the operating system that matches the contents of the VDI file.
  • Continue through the wizard until you reach the "Hard disk" step.