Running on CERN OpenStack

CernVM runs on CERN’s private cloud openstack.cern.ch. Like other OpenStack installations, the CERN cloud can be managed with nova tools. The nova tools are installed, for instance, on lxplus and on CernVM. The following steps can be used from a desktop CernVM.  Note that the commands might be different on lxplus.

If you haven’t done so, you need to upload the CernVM image to your project before you can create CernVM 3 instances. To do so, download the CernVM 3 “Raw” image and download the openrc.sh file from the CERN OpenStack website. You can find the openrc.sh file under "Access & Security" at the openstack.cern.ch web interface. Then run (commands differ for SLC6 and CC7)

On SLC6 (lxplus) or anywhere else with 'glance' version below 1.0.0

source openrc.sh
export OS_CACERT=/etc/pki/tls/cert.pem
glance image-create --name "CernVM 3" --is-public False --disk-format raw --property os=linux \
  --property hypervisor_type=kvm --container-format bare \
  --file <cernvm-image>.hdd
nova boot <Virtual Machine Image Name> --image "CernVM 3" --flavor m2.small \
  --key-name <OpenStack Keypair> --user-data <User Data File>

On CC7 (lxplus7) or anywhere else with 'glance' version above 1.0.0

source openrc.sh
export OS_CACERT=/etc/pki/tls/cert.pem
glance image-create --name "CernVM 4" --visibility private --disk-format raw --property os=linux \
  --property hypervisor_type=kvm --container-format bare \
  --file <cernvm-image>.hdd
nova boot <Virtual Machine Image Name> --image "CernVM 4" --flavor m2.small \
  --key-name <OpenStack Keypair> --user-data <User Data File>
 

If you don’t need the image name registered with DNS, add --meta cern-services=false to the “nova boot” command in order to speed up instantiation. For more sophisticated adjustments to CERN LanDB, please see the CERN OpenStack documentation.

For help on creating the user-data file, see our contextualization page.

You are here