CERN Openstack

You can create your own personal CERN machine using the Openstack system available to users with a valid account.

Getting Started

Registering with OpenStack?

Firstly you must register with the "Cloud Infrastructure" service listed on:


KeyPair? Creation

To be able to access your machine remotely you will need to create a key pair. Firstly log into, within the sidebar navigate to "Project/Compute/Key Pairs" where you should be presented with the following screen:


within here you need to create a new key pair specifying an appropriate name.

Next download the key file to the system from which you want to be able to access the machine, using the following command to make it known to SSH:

chmod 0600 my_keypair.pem<font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="2"> </font>ssh-add my_keypair.pem

Creating a New Instance

You can now create a new virtual machine instance, it is recommended you use an SLC6 image and then install CVMFS on top of this for access to LHCb software. To create a new instance:

  • Go to "Project/Compute/Instances" in the sidebar of
  • From here click "Launch Instance" where you will be prompted to give your instance a name and have the option to launch multiple copies if required.
  • Under the "Source" tab select as the image "SLC6 - x86_64" by pressing the up arrow icon to the right of it.
  • Then under "Flavour" choose a preset to determine the storage, RAM and CPUs of the instance.
  • Under "Key Pair" make sure the key you generated earlier is selected.
  • Finally click "Launch Instance" to start the machine build, this make take some time.

You can now SSH into the new machine by using the command:

ssh -Y <my-cern-username>@<my-instance-name> 

Installing CVMFS

To be able to access LHCb software on your new virtual machine instance (and any other machine) you can install CVMFS to the Linux system:

For Centos (as with the instance created above):

sudo yum install

sudo yum install cvmfs cvmfs-config-default

For a Ubuntu installation:

sudo apt-get install lsb-release 
sudo dpkg -i cvmfs-release-latest_all.deb rm -f cvmfs-release-latest_all.deb sudo apt-get update  sudo apt-get install cvmfs cvmfs-config-default 

Run the CMFS setup:

cvmfs_config setup 

Create the local config file outlining which repositories arer required:

sudo echo ",\nCVMFS_HTTP_PROXY=DIRECT" > /etc/cvmfs/default.local 

Run the probe to mount the required system:

cvmfs_config probe

This should mount /cvmfs/ meaning the LHCb software is now available, if this does not work you can try restarting the autofs service:

sudo service autofs restart

and checking the CVMFS setup using:

cvmfs_config chksetup 

-- KristianAlexanderZarebski? - 02 Oct 2018

This topic: LHCb > CernVM
Topic revision: r1 - 02 Oct 2018 - _47DC_61ch_47DC_61cern_47OU_61Organic_32Units_47OU_61Users_47CN_61kzarebsk_47CN_61763242_47CN_61Kristian_32Alexander_32Zarebski
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback