Create a linux virtual machine
In this tutorial, you will
- Log in to http://openstack.cern.ch
- Set up a keypair
- Create a virtual machine
Accessing the web site
The display should look as follows
Setting up a keypair
Keypairs are used to access virtual machines with ssh.
You can set up a keypair in a number of ways. The recommended approach is to use your credentials from an lxplus account with ssh.
- access & security from the menu
- Select the import key pair button
- enter lxplus for your keypair
- enter the contents of ~/.ssh/id_dsa.pub from lxplus as your key
Creating a virtual machine
Once your key is defined, you can now proceed with creating a virtual machine.
- Select instances from the menu
- Select launch instance button
- a hostname (you can choose it, such as timdoc143)
- the flavor (such as m2.small)
- the boot source should be image
- for the image, choose the latest by date of the CentOS 8 images.
DO NOT PRESS LAUNCH.
- Select the access & security tab, enter your keypair (such as lxplus) and then press launch.
NOW PRESS LAUNCH.
Follow the boot process
The boot process can be followed on the instances screen. Once the VM is in state ACTIVE, you should be able to open a console to follow it booting. Note: registration of your VM in the CERN Network database may take up to 10 minutes, and the first boot of the VM may take some time as well.
Log in using ssh
Once the console shows the login prompt, your VM is ready for use. From lxplus or lxplus-cloud, you can log in with ssh as follows
$ ssh root@hostname