Running in VirtualBox
You can start a contextualized CernVM directly from the CernVM Online dashboard as shown in the following screenshot. The web interface will also install VirtualBox for you if necessary.
Alternatively, you can create your virtual machine through the VirtualBox user interface. Once booted a manually created virtual machine, you need to pair the virtual machine with a context defined in CernVM Online.
If VirtualBox is installed on your computer, you can download and open the CernVM OVA image. This will open an import dialog, which allows you to modify the virtual hardware settings to your needs. In particular, you might want to modify the virtual hard disk size, the memory size of the virtual machine, or the number of CPUs.
To configure your VirtualBox for running CernVM do the following steps:
- Start VirtualBox
- Click the 'New' button and a 'Create New Virtual Machine' dialogue will appear
- Enter the name of the virtual machine (e.g. CernVM 3) and define the OS Type:
- As the 'Type' chose Linux
- As the 'Version' chose 'Linux 2.6 / 3.x / 4.x (64 bit)'
- Click ‘Continue’
- Define the amount of memory which you want to make available to the Virtual Machine (e.g. 2048 MB) and click ‘Continue’. Choose at least 1G of memory and leave at least 1G of memory free for your host.
- Configure the Virtual Machine hard drive.
- Check the 'Create a virtual hard drive now' option
- As a hard drive file type, select VDI (VirtualBox Disk Image)
- For storage on physical hard drive, select Dynamically allocated
- Under file location and size, select the folder and file name of the virtual machine hard disk image and the maximum size. Select at least 20G for the size. If you choose a larger size, your VM will create a 20G root partition and a second partition spanning the rest of the size, which you can format according to your needs.
- Your new virtual machine will appear in the pane on the left.
Configuration of Virtual Machine
- Under 'General', select the 'Advanced' tab and choose Bidirectional for 'Shared Clipboard' and 'Drag and Drop'
- Under 'Storage', click on the empty CD drive entry on the left. Then click on the little CD icon on the top right. Select the CernVM ISO image that you downloaded in step 1. The CernVM image should appear as CD entry in the left pane.
- Under 'Network', click on the 'Adapter 2' tab and enable the adapter as a Host-only Adapter
- Close the settings dialog by clicking 'OK'.
Now you can Start the virtual machine by double clicking your virtual machine entry in the left pane. Once booted, you need to pair the virtual machine with a context defined in CernVM Online.