Can any one provide step by step installation of Open stack installation on Ubuntu 14.04?
Or
Is there any script like http://openstack.redhat.com/Quickstart for auto installation. I have tried devstack on Ubuntu but it didn't work ( Credentials Not Working ).
Dumidu answer did work (Installation) but there is no username or password for the installation, so there is nothing to check its working or not.
Is there any way to install Openstack on Ubuntu?
You can use devstack to deploy openstack on your machine. devstack is used for development and is probably the fastest and easiest way to deploy openstack. We first setup the environment to deploy openstack and then install openstack using devstack.
Preparing the environment:
Deploy a virtual machine with ubuntu 14.04 as the guest OS on your ubuntu 14.04. You can use various hypervisors for deploying the virtual machine, I have used VMware Player. For instructions on how to deploy a virtual machine using VMware Player, refer to this tutorial:
Next, after you have deployed the virtual machine and it is ready to use, you need to clone the devstack script from the github repositories, so first install git using the terminal(press Ctrl+Alt+t together) and type:
and enter your password and wait for the installation to complete. Now get the devstack script using the command below:
This will take sometime depending upon your connection speed.
Installing openstack:
If the script and other files downloaded successfully, you will get a directory
devstack
in the folder you executed this command. Go into the directory and type:and then execute the script that fetches and install packages required by openstack using:
You will be asked to set the password for administration and a few packages like mysql, rabbitmq, etc(six times in all); you could keep the passwords short and simple and may be even same if you don't wish to remember a different one for all. This will take roughly 2 hours to complete, again depending upon your connection speed (I assume it is around 200kbps). You can read about the script here. The script will download and install and start various services and packages.
The output of the execution explains what scripts are being downloaded and other installation output; this will be useful to troubleshoot if you end up with an unsuccessful installation. If the script completes execution successfully, you will the output ending with the following lines:
If you don't get this, the script encountered some errors and they need to be sorted out first.*
If the installation is successful, you can open a browser and type the URL as given in the output message:
This is your host ip: xxx.xxx.xxx.xxx
as shown above. **
You will get a page asking you the username and password. The username is
admin
and the password is what you entered when you installed openstack(the first of the six passwords). If you don't remember, open yourlocalrc
file in your devstack folder and check (It either be namedlocalrc
, or.localrc
orlocal.conf
).If you ever happen to restart your machine or the virtual machine or even log off, you may need to restart openstack services since all of them are not started when the machine is booted. To restart the services, executed the following command on a terminal when you are in the
devstack
folder:and if completed successfully, all openstack services will be started and you should be able to access using the same username and password.
The installation above does not install neutron(the networking component), to install neutron, add the following to the end of your
localrc
file:and then again execute
./stack.sh
.Notes:
Though you can install openstack on a bare-machine(not a virtual machine), it is recommended to install it on a virtual machine for security and for ease of use. The devstack installation removes your administrative password(rather does not ask for a password even for privileged commands). Also, you can create clones of your installtion and then even if you mess up your installation, you can discard the messed up one and then revert back to the latest working image of the virtual machine.
It is better to install openstack on a new, clean virtual machine having an LTS OS on it, since support and testing is usually done on LTS, you will find more response on channels and forums if it is on an LTS version. Also the new virtual machine ensures there are no package version conflicts and helps in easing out the installation.
If you are behind a proxy, you may need to add them in the virtual machine as environment variables in your
/etc/environment
file if you want to add it globally or in your~/.bashrc
file if you want it locally and also in/etc/apt/apt.conf
. You may also need to tweak the script a little if git is not able to fetch packages even after adding http and https proxies.*It is difficult to give a canonical solution to all those errors since a lot of ground needs to be covered and is nearly impossible to state them in one solution. After you have resolved the error that caused the script to fail, you need to restart the script using
./stack.sh
when you are indevstack
folder.**The reason you were getting the error when you logged in was because the installation was not successful or because you restarted, you need to restart openstack services if you restarted, if the installation failed, you need to troubleshoot the errors first and then restart the script.
I am not sure, I never try it but see if this work for you
Reference: http://docs.openstack.org/trunk/install-guide/install/apt/content/basics-packages.html
At present Devstack/Havana release supports only till ubuntu 12.04. You may try to install it in 14.04 however there might be issues in that. Please read devstack's Select a Linux Distribution here www.devstack.org