For this tutorial we prepare virtual machines with preinstalled Geant4 and Root. We have created [VirtualBox](https://www.virtualbox.org) VM running Ubuntu 20.04 Server.
If you planed to run VirtualBox in Windows look into [Installation on Windows](Win10 Installation) before you start.
## Ubuntu 20.04 LTS Virtual Machine
* Ubuntu 20.04 LTS Server installation.
* 2 Gb of memory, 40 Gb disk, nat network.
* OpenSSH-server running.
* Geant4 10.6.2 and Root 6.22/02 preinstalled.
* build-essential, curl, gnu g++, git and cmake packages.
The file _g4vm-ubuntu-20.ova_ for VirtualBox
can be downloaded from LLR owncloud server, following above link:
This is full virtual machine imported from VirtualBox running on Ubuntu 18.04 nn OVF 2.0 format. Open Virtualization Format (OVF) is a packaging format for virtual appliances.
## VirtualBox installation
You will need Oracle VirtualBox application run this virtual machine.
You can download VirtualBox for you software platform
from https://www.virtualbox.org . It can run on must Linux distributions, MacOS and Windows.
If you want to install Oracle VM VirtualBox Extension Pack read
VirtualBox Personal Use and Evaluation License (PUEL).
You can found more information in VirtualBox User Manual.
https://www.virtualbox.org/manual/UserManual.html
## Installation g4vm guest into VirtualBox
You can import .ova file using VirtualBox Gui:
1. Open Virtualbox and go to _File_ | _Import Appliance_.
Browse the .ovf file you just downloaded.
2. In the next window, you can see the virtual machine settings. You may change some settings here. For example you may want to allocate more RAM
3. Click _Import_ to start the import process. In few minutes, Virtualbox will create a new virtual machine with the settings you specified
From command line you can use command for import:
`$ VBoxManage import g4vm-ubuntu-20.ova`
## More VM customisation
You can use VirtualBox Gui to make additional modifications in VM
You can add disk, shared points, network interfaces, etc selection
The machine in left side of gui window and pressing <Settings> button.
You also can use `VBoxManage modifyvm ...` command to change VM settings.
## Running installed Geant4 VM
The machine was installed with help of HashiCorp Vagrant application https://www.vagrantup.com/ . The vagrant box _ubuntu/focal64_ used as base of this server.
Machine prepared to run as headless server, no Gui installed.