How to install OpenStack on a single Ubuntu Server virtual machine – TechRepublic

Image: Jack Wallen

OpenStack has become the de facto standard in private cloud server platforms. If you've ever considered spinning up OpenStack, you know that it is not only an administrative challenge, but it also requires considerable hardwareto the tune of around five servers. However, if you have a powerful enough virtual machine, you can run OpenStack on a single Ubuntu Server.

SEE: How Mark Shuttleworth became the first African in space and launched a software revolution (TechRepublic PDF download)

First, you must update Ubuntu. Open a terminal window and issue the commands:

Once those commands have completed, you'll need to install git. To do this, issue the command:

Allow that installation to complete.

We're going to use git to clone devstack. To do this, go back to your terminal window and issue the following two commands:

Next, we have to copy the sample configuration file and set a password to be used for automated deployment. To complete this task, issue the following commands:

Now we must set the automated deployment password. Open the local.conf file with the command:

Search for the password variable section and ensure it reflects the following (YOURPASSWORD is the actual password you want to use):

It's time to run a few scripts. The first script will create a new user for devstack. The command to run this script is:

Once the script completes, you'll need to change the permissions of the devstack folder with the command:

It's time to run the installation scriptthis must be run as the stack user by first issuing the command sudo su stack. After you change to the stack user, kick off the install with the command /devstack/stack.sh. This command will take at least 30 minutes to complete.

When the command finally completes, you will be given an IP address (the address of the server), as well as two usernames (the admin password was created in the local.conf file). Open a browser, point it to http://SERVER_IP_ADDRESS/dashboard, and log in with the given credentials. You will be presented with the OpenStack Dashboard (Figure A).

Figure A

Congratulations! You're ready to create and deploy.

Here is the original post:
How to install OpenStack on a single Ubuntu Server virtual machine - TechRepublic

Related Posts

Comments are closed.