Running on CERN OpenStack

Publicly Available Images (Coming soon)

The CERN OpenStack interface provides publicly available CernVM 3 and CernVM 4 images. CernVM 3 images are SLC6 compatible, CernVM 4 images are CC7 compatible. Both image types are for the x86_64 architecture. The image name indicates the "bootloader version". The bootloader contains the Linux kernel and a CernVM-FS client. The actual operating system is loaded from a CernVM-FS repository.

CernVM images can be contextualized with cloud-init and amiconfig, general information about the image can be found in the release notes.

Manually Uploading Images

CernVM images and instances on OpenStack 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  # Only on CernVM
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  # Only on CernVM
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