1.0 There are 2 ways to access your virtual machine:
a) Using VNC:
Once the VM is up and running click on the Virtual Machine card view and select the Summary View of the VM. At the top right you, will see a link to the console. Click on that link. A new browser tab will open and you have console access to the VM. If the VM has user ID and password login enabled, you can log in to the VM via this mechanism.
b) Using SSH
In order to SSH to the VM the following conditions should be met:
- You should either be on another machine that is on the same private network as the VM, or
- The VM should have been assigned a floating IP address.
- The VM should be part of a security group that allows SSH access (ingress)
1.1 Passwordless SSH to Virtual Machines
For security reason images configured to run on clouds are usually not setup with user/password login enabled. Keypairs can be used to connect to these VMs. The next sections explain how to setup keypairs and associate a VM with it.
More than one key-pair can be created or imported in a given OpenStack Project.
2.0 Key Pairs
2.1 Key-pairs can be created or imported as follows:
- During project Creation
- Later on, by visiting the Security tab in your project workspace
2.2 Creating/Importing Key Pairs:
After creating a new project select the "Customize Project" link at the bottom right of the window. Follow the customization steps in the wizard. Once you are in the security tab you can import an existing key-pair by uploading your public key or generating a completely new key pair.
2.3 Creating a New key-pair
If you chose to generate a new key-pair Openstack generates a text file that is downloaded locally to your desktop browser. Open the file on textPad or any other editor. You will see something like the text below:
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
Save it as a file with .pem extension. This file can now be used to connect to a VM that has been associated with the key-pair generated above.
A Key Pair can be created at other times as well, not just during project creation.
2.4 Uploading your own public key:
You can upload your own public key to OpenStack. That would obviate the need to download and save an extra private key. To do so, use the import key-pair feature in the same section of the UI as described above. The import key-pair option expects the user to enter a public key. Copy and paste the contents of public key in the text area and hit the save button.
3.0 Associating Key-Pair with a VM:
When creating a VM, select the advanced mode. Once you are in the security tab select a key pair from the drop down menu. The public key associated with the key-pair would be injected into the OS once the VM boots up.