Run UBOS in a VirtualBox virtual machine (64bit)

/docs/users/installation/x86_virtualbox/

To run UBOS in a VirtualBox virtual machine, follow these instructions. Not counting download times, this should take no more than 10 minutes to set up.

While we don’t have separate instructions for VMware, the process should be quite similar.

Note: UBOS 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.

  1. Download VirtualBox from virtualbox.org and install it if you haven’t already.

  2. Download a UBOS boot image from the Depot. Images for Virtualbox (64bit) are at depot.ubos.net/green/x86_64/images. Look for a file named ubos_green_x86_64-vbox_LATEST.vmdk.xz.

  3. Optionally, you may now verify that your image downloaded correctly by following Verify your downloaded UBOS image.

  4. Uncompress the downloaded file. This depends on your operating system, but might be as easy as double-clicking it, or executing

    % sudo xz -d ubos_green_x86_64-vbox_LATEST.vmdk.xz
    

    on the command line.

  5. 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”.

  6. 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”.

  7. In the main window, click “Start”. The virtual machine should now be booting.

  8. When the boot process is finished, log in as user root. For password, see I need root.

  9. 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
    
  10. 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.

  11. 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
    
  12. 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.

  13. Update UBOS to the latest and greatest:

    % sudo ubos-admin update
    
  14. You are now ready for Setting up your first Site and App.