Run UBOS in a VirtualBox virtual machine (64bit)
/docs/linux/installation/x86_virtualbox/
To run UBOS in a VirtualBox virtual machine on x86_64
, follow these instructions. Not counting
download times, this should take no more than 10 minutes to set up. These instructions are
the same regardless of the operating system that VirtualBox runs on.
While we don’t have separate instructions for VMware, the process should be quite similar.
Note
UBOS Linux is a 64bit operating system, for which VirtualBox requires hardware virtualization support. This is generally available on all reasonably modern processors, but may have to be switched on in the BIOS first. See the VirtualBox documentation.
Warning
Running UBOS in a VirtualBox on an ARM computer, such as a Mac with Apple Silicon, is currently not supported.
-
Download VirtualBox from virtualbox.org and install it if you haven’t already.
-
Download a UBOS boot image from the Depot. Images for Virtualbox (64bit) are at depot.ubosfiles.net/green/x86_64/images/index.html. Look for a file named
ubos_green_x86_64-vbox_LATEST.vmdk.xz
. -
Optionally, you may now verify that your image downloaded correctly by following Verify your downloaded UBOS image.
-
Uncompress the downloaded file. This depends on your operating system, but might be as easy as double-clicking it, or executing
% xz -d ubos_green_x86_64-vbox_LATEST.vmdk.xz
on the command line.
-
In VirtualBox, create a new virtual machine:
-
Click “New”.
-
Enter a name for the virtual machine, such as “UBOS (green)”. Select Type: “Linux”, and Version: “Other Linux (64 bit)”. Click “Continue”.
-
Select the amount of RAM you want to give it. 1024MB is a good start, and you can change that later. Click “Continue”.
-
Select “Use an existing virtual hard drive file” and pick the downloaded boot image file in the popup. You may need to select the little icon there to get a file selection dialog. Click “Create”.
-
-
By default, VirtualBox will put your virtual machine behind a special VirtualBox NAT on your local host. That means you won’t be able to access it with a web browser. To avoid this, either:
-
Set your networking mode to “bridged”: Click on “Network”. In the pop-up, select tab “Adapter 1”, and choose “Bridged Adapter”, and in the “Name” field choose the host system’s network adapter that connects to your Ethernet or Wifi network. Click “Ok”. (This should work unless your Ethernet or Wifi network isn’t willing to hand out more than one DHCP address to the same machine; it happens on some tightly managed networks). Or:
-
Activate two virtual networking interfaces, one as “NAT”, and one as “Host-only Adapter”: Click on “Network” in the right pane. In the pop-up, first select tab “Adapter 1”, and choose “NAT”. Then, select tab “Adapter 2”, make sure that “Enable Network Adapter” is checked, and choose “Host-only Adapter”. Click “Ok”.
-
-
In the main window, click “Start”. The virtual machine should now be booting.
-
When the boot process is finished, log in as user
root
. For password, see I need root. -
Now: wait. UBOS needs to generate a few cryptographic keys before it is ready to use and initialize a few other things on the first boot. That might take a few minutes. To determine whether UBOS ready, execute:
% systemctl is-system-running
-
If you are on VMWare, the VirtualBox kernel extension is going to fail. This is no cause for concern, simply disable it by removing file
/etc/modules-load.d/virtualbox.conf
. -
Now: wait. UBOS needs to generate a few cryptographic keys before it is ready to use and initialize a few other things on the first boot. That might take 5 or 10 minutes. To determine whether UBOS ready, execute:
% systemctl is-system-running
-
Check that your virtual UBOS PC has acquired an IP address:
% ip addr
Make sure you are connected to the internet before attempting to proceed.
-
Update UBOS to the latest and greatest:
% sudo ubos-admin update
-
You are now ready for Setting up your first Site and App.