Issue link: https://read.uberflip.com/i/1334488
Chapter 1 21 How to do it... The euca2ools and Nova Client packages are conveniently available from the Ubuntu repositories. If the host PC isn't running Ubuntu, creating a Ubuntu virtual machine alongside our OpenStack Compute virtual machine is a convenient way to get access to these tools. 1. As a normal user on our Ubuntu machine, type the following commands: sudo apt-get update sudo apt-get install euca2ools python-novaclient unzip 2. Now the tools have been installed, we need to grab the nova.zip file that we created at the end of the previous section and unpack this on your Ubuntu computer. We do this as follows: cd mkdir openstack cd openstack scp openstack@172.16.0.1:nova.zip . unzip nova.zip 3. We can now source the credentials file named novarc into our shell environment with the following command and set up our environment to allow us to use our command-line tools to communicate with OpenStack: . novarc 4. We now must create a keypair that allows us to access our cloud instance. Keypairs are SSH private and public key combinations that together allow you to access a resource. You keep the private portion safe, but you're able to give the public key to anyone or any computer without fear or compromise to your security, but only your private portion will match enabling you to be authorized. Cloud instances rely on keypairs for access. The following commands will create a keypair named openstack: To create our keypair using euca2ools, use the following commands: euca-add-keypair openstack > openstack.pem chmod 0600 *.pem 5. To create your keypair using Nova Client, use the following commands: nova keypair-add openstack > openstack.pem chmod 0600.pem www.it-ebooks.info

