Running in VirtualBox

Spawning CernVM from CernVM Online

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.

Screenshot

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.

Importing the OVA Image

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.

Screenshot

Manual Installation

To configure your VirtualBox for running CernVM do the following steps:

  • Start VirtualBox
    Screenshot
  • Click the 'New' button and a 'Create New Virtual Machine' dialogue will appear
    Screenshot
  • 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
                 Screenshot
    • 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.
                 Screenshot
    • 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)
                              Screenshot
      • For storage on physical hard drive, select Dynamically allocated
                              Screenshot
      • 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.
                              Screenshot
    • Your new virtual machine will appear in the pane on the left.
                 Screenshot

    Configuration of Virtual Machine

    To configure created Virtual Machine, click on Settings.
    Screenshot

    • Under 'General', select the 'Advanced' tab and choose Bidirectional for 'Shared Clipboard' and 'Drag and Drop'
                 Screenshot
    • 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.
                 Screenshot
    • Under 'Network', click on the 'Adapter 2' tab and enable the adapter as a Host-only Adapter
                 Screenshot
    • 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.

Shared Folders

To configure created Virtual Machine, click on Settings.
Screenshot

  • Add the directories under 'Shared Folders'. Do not select the 'Auto-mount' option. Inside the virtual machine, shared folders are automatically mounted under /mnt/shared.
    Screenshot

You are here