Other versions and other hosts should work similarly.) (This was tested installing Ubuntu Desktop 20.04 LTS as a guest in VirtualBox-6.1 on a Windows 10 host.
Setting up an Ubuntu virtual machine is easy. It doesn't matter if your host OS is Linux, MacOS, or something else. Once you have VirtualBox installed on your host computer. 6 Using ssh to access an Ubuntu virtual machine.