Installation of command-line tools on Ubuntu
Management of OpenStack Compute from the command line is achieved by using the Nova Client. The Nova Client tool uses the OpenStack Compute API and the OS-API. Understanding this tool is invaluable in comparison to understanding the flexibility and power of Cloud environments, not least allowing you to create powerful scripts to manage your Cloud.
Ubuntu has a lot of GUI-based methods for installing applications, but they take some time to search and find.
The tools will be installed on your host computer if it’s running Ubuntu or on a machine running Ubuntu and it is assumed that you are running a version of Ubuntu, which is the easiest way to get hold of the Nova Client packages ready to manage your Cloud environment.
How to achieve it…
The Nova Client packages are conveniently available from the Ubuntu repositories. If the host PC isn’t running Ubuntu, creating an Ubuntu virtual machine alongside our OpenStack Compute virtual machine is a convenient way to get access to these tools. These are the steps for installing the command line tools that are currently available as Ubuntu packages
As a normal user on our Ubuntu machine, type the following commands:
sudo apt-get update
sudo apt-get –y install python-novaclient
How it works…
Using Nova Client on Ubuntu is a very natural way of managing our OpenStack Cloud environment. Installation is very straightforward as these are provided as part of the standard Ubuntu packaging.