In this quickstart, we’ll create your first VM from start to finish, using only the graphical interface via your favorite Web browser. Once you’ve received your NOVA access, you can start by creating your key pair, which will be used to connect to your VMs.
After logging into the Openstack web interface, go to the left-hand tab Project > Compute > Key pairs, click on Import a public key :
Choose a name for your key.
Choose SSH key for the Key type.
Finally, you can choose between :
Reminder: by default, this file is located in the ~/.ssh folder.
We now need to authorize SSH requests from the outside. To do this, go to the left-hand tab Project > Network > Security Groups, click on Manage Rules :
Then click on Add a rule :
For Rule, choose SSH :
Next, you need to choose the source of the SSH that will be authorized. You can leave the default values CIDR and 0.0.0.0/0, which correspond to everyone.
Warning, later on, for security reasons, it’s best to replace the 0.0.0.0/0 with your IP address, so that only you can access your VM.
We can now move on to the most important step: creating an instance, the name given to a VM by Openstack.
To do this, go to the left-hand tab Project > Compute > Instances, click on Launch an instance :
VM creation is complete! We can now move on to the next step.
For the moment, our VM has been created but is not accessible from our machine. To make it accessible, we’re going to allocate it a floating public IP address.
Go to the left-hand tab Project > Network > Floating IP :
All that remains is to associate this IP with the VM created previously. To do this, click on Associate next to the newly created IP.
Finally, select your VM’s port, to be associated with your IP. In our example, the VM is called example and its private IP is 192.168.1.43.
That’s it! Our VM is accessible from our machine.
All that’s left to do is connect to the VM via SSH:
Warning, the default user is ubuntu for an Ubuntu operating system, and debian for a Debian operating system. In addition, you need to be connected to the UGA network or VPN to connect to the instances.
user@user-gricad:~$ ssh debian@ma-vm.u-ga.fr
Note: You can also use the IP address directly instead of the DNS name.
user@user-gricad:~$ ssh debian@129.88.204.55
Warning, as a reminder, your VM can be accessed from any IP address, so it’s best to filter the authorized IPs. To do this, sees Groupes de sécurité.