Using the CernVM Virtual Machine

Introduction

This page aims brings together links that explain how to run the LHCb software inside the CernVM virtual machine and to document any known problems. It is not about installing the CernVM-FS filesystem as a shared software area. For that, please look at the excellent CernVM-FS deployment page maintained by the UK GridPP.

Installation

The CernVM portal contains detailed installation instructions for a variety of virtualisation products. You may also find this page useful: CernVM 3 First Public Release.

Please note

CERNVM3 requires a second host only adaptor to work with Virtualbox. If you have trouble with your virtual machine, try following the instructions found here if you have not already.

LHCb Software environment

When using the graphical CernVM environment, the LHCb software setup does not always seem to run for new shells. To work around this add

if [ -f /cvmfs/lhcb.cern.ch/group_login.sh ]; then
      . /cvmfs/lhcb.cern.ch/group_login.sh
fi

To your ~/.bashrc file.

In addition, there is a script you can source that sets up various extra settings, which you should add to your ~/.bashrc file as well.

if [ -f /cvmfs/lhcb.cern.ch/lib/group_extra_settings.sh ]; then
      . /cvmfs/lhcb.cern.ch/lib/group_extra_settings.sh
fi

If for some reason you prefer (t)csh, add

if ( { ( [ -f /cvmfs/lhcb.cern.ch/group_login.csh ] ) } ) then
 . /cvmfs/lhcb.cern.ch/lib/group_login.csh
endif
if ( { ( [ -f /cvmfs/lhcb.cern.ch/group_extra_settings.csh ] ) } ) then
 . /cvmfs/lhcb.cern.ch/lib/group_extra_settings.csh
endif

to your ~/.cshrc or ~/.tcshrc file.

Grid Usage

In order to use grid tools like LHCbDirac or Ganga on CernVM, you need to enable the Grid UI options in the CernVM settings. In the web interface navigate to the CernVM -> Preferences section and in the CernVM Groups and Repositories section make sure grid is in your list of selected repositories.

You will of course need to copy your grid certificate to your CernVM instance, under ~/.globus, as per any other linux site. More instructions on this are available here.

In your home directory, you should create a file ~/.dirac.cfg in your home directory on the virtual machine with the following content

LocalSite
{
  Site = DIRAC.Local.uk
}
You may change the country if you like. It will affect the location where a file is retrieved from if available in more than one place.

Troubleshooting

  • Currently (version 3.3.0.4) CERNVM does not like jumps in time. If you find your grid work keeps timing out or other grid problems, restart the VM.

Tutorials

CERNVM 2.X

CERNVM 3

Other useful Links


Edit | Attach | Watch | Print version | History: r29 | r27 < r26 < r25 < r24 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r25 - 2014-06-17 - NathanaelFarley
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback