Quickly deploy OpenStack on the Ubuntu14.04

Source: Internet
Author: User

For beginners, OpenStack manual deployment is cumbersome and takes more time to learn. But we can use deployment scripts to install OpenStack.


Online there is a known as the most stupid OpenStack deployment tool called Devstack. I used to think it was quite a fool. The component is pulled straight down from GitHub, not only slow not to say, Even version compatibility may be problematic. It took 4 hours to install. It's more than just a change of parameters. Even worse, it uses the Pythonsetup script to add some potentially expired packages directly to the system's Python library. Throws a lot of errors. Basically with Devstack installation failed to reinstall the system again.


Openshit is a gadget that can quickly deploy OpenStack on a Ubuntu14.04 system, using shell scripts and Python scripts to complete the installation and configuration of OpenStack components. And can easily change the configuration parameter reconfiguration, Restart the service to clear the database, and so on. Use commands to fully automate installation and configuration. The following is the address of Openshit


Openshit Command Introduction


./openshit.sh<--all|service_name> Start|stop|restart

The various (or all) OpenStack components can be started, stopped, and restarted.


./openshit.sh<--all|service_name> Install|uninstall|download

Can install, uninstall, and download package operations for all OpenStack components


./openshit.sh<--all|service_name> Config

You can configure the build database, the original configuration file in the Config-backup folder according to time back up, using the rollback.sh script can easily rollback the configuration file changes


./openshit.sh<--all|service_name> Clean

Can clear the service database, if the service problem can be directly clear the database and then re-config


Next we use Openshit to deploy OpenStack on Ubuntu14.04. Here are a few small requirements:


1.ubuntu14.04 partitions must have enough space. OpenStack uses partitioned space when creating instances, and cannot create instances when there is not enough space. The test was Ubuntu14.04 100G, enough to use.


2. It is advisable to install the Ubuntu partition. If the god horse Devstack did not install the success of a pile of rubbish left in the system library and then use Openshit not successful that would be embarrassed.


Not much to say now to start

1. Install git and use git to download Openshit

git clone https://github.com/windworst/openshit.git.


2. Modify the configuration file setting.conf.

There are many passwords: The database password, the service password. The default can be changed, not changed, and nothing.

Change the network configuration. The IP value within the profile is set to its own IP, and the NIC is set to its own network card (default is eth0).


3. Start the installation after the configuration file modification is complete

./openshit.sh--allinstall.

This command will ask you if you need to configure the source of the software, the first time you use Openshit select Y, so the command can be written like this:

echo y |./openshit.sh--allinstall


4. After a period of time installation is complete, please enter

./openshit.sh--all Config

The configuration files for each component and the database configuration are modified based on the value of setting.conf.


5. Upon completion

Run sourceadmin-env.sh; Nova service-list View service status if all installed successfully

Open Http://localhost/horizon in the browser to see the OpenStack admin interface enter the password to login


OpenStack is now successfully deployed on the Ubuntu14.04 server.


To successfully run an instance, we need to create and upload a mirror, configure the network, and launch the instance.

Make an image of UBUNTU14 server here

1. Making images

Qemu-img create-f qcow2ubuntu.img 20G

Kvm-cdromubuntu-14.04-server-amd64.iso-drivefile=ubuntu.img,if=virtio,index=0-boot d-net Nic-netuser

This is the right way to install Ubuntu14-server directly from the CD.


2. Uploading Images

Executes the source admin-env.sh in the Openshit directory

Perform

glanceimage-create--name "ubuntu"--file ubunut.img --disk-formatqcow2--container-format bare-I. S-public True--progress

The progress bar is quickly rolled over, upload completed


3. Create a network

executes the source admin-env.sh in the Openshit directory (the previous execution is not performed here)

Execution

novanetwork-create v-net--bridge br100--multi-host T--fixed-range-v4 10.0.1.0/29

Here v-net is the network name 10.0.1.0/29 is a network segment and the number of hosts to allocate do not set the network segment as the same as this network segment, or the egg pain beyond your imagination

Execution

Novanet-list

You can see the network you just created


4. Create an instance

Create an instance by running it in the Web management side of the Mirror bar (the IP address of the network you just created is assigned).

Click on the console to see the virtual machine's screen through VNC

There's a problem here. The virtual machine and the host can ping each other (need to switch off the firewall), but can not access the external network, may be where there is no settings.


By the way, the instance has run, and the article is finished.



This article is from the "Ghostwolf" blog, make sure to keep this source http://ghostwolf.blog.51cto.com/11851154/1834761

Quickly deploy OpenStack on the Ubuntu14.04

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.