How to configure OpenStack with Devstack (single node)

Source: Internet
Author: User

For a new OpenStack novice, it is undoubtedly a painful process to use the command line to build an OpenStack, and using a build tool will make the building process simple, and here is a brief introduction to my successful building process.
First step: Install the virtual machine
I personally prefer to use virtrualbox virtual machine, can be downloaded from the following address: Https://www.virtualbox.org/wiki/Downloads, select the appropriate version to download the installation on the line.
Step Two: Install the operating system
The requirement for configuration using devstack must be a pure system, which means that the system has just been loaded and has not been configured yet. Officials say use minimal CD for Ubuntu or Fedora and Centos/rhel. I started with ubuntu14.04lts installed once, did not succeed, I use this time is minimal CD for Ubuntu, is: Https://help.ubuntu.com/community/Installation/MinimalCD.
I chose the third Ubuntu 14.04 LTS "Trusty Tahr" under the 64-bit PC (AMD64, x86_64) (Recommended)
Step three: Install the minimum system
Please refer to: http://blog.csdn.net/xingjiarong/article/details/47006801
Fourth Step: Configure the virtual machine network
We know that the minimum system does not have a desktop system, and if the virtual machine's IP cannot be accessed from the host, then we will not be able to open OpenStack dashboard from the browser. In order for the host and virtual machines to ping each other we need to set the virtual machine's network connection mode to bridge mode:
Right-click on the virtual machine, select Network

In bridge mode, the host and virtual machines are in the same network segment so that both sides can ping each other.
Fifth Step: Installing OpenStack
After setting up the network, we open the virtual machine, open the virtual machine with Ifconfig first to view the IP information:
The IP of my virtual machine is: 211.87.226.157
You can now try to ping the virtual machine in the host. If there is no problem with the network, we proceed to the installation section below.
1, add a new user, now Devstack is not allowed to use the root user directly executed, you must create a new user, use if the command to create a stack user:

stack

To give sudo permissions to the stack user:

sudo -yecho"stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

You can exit the current user at this point and then use the stack to do the following:

exitstack

2. Download Devstack

sudo apt-get-ygit clone https://git.openstack.org/openstack-dev/devstackcd devstack

3. configuration file local.conf
Create the local.conf file under the Devstack directory, and then copy the following to the file, and then make the appropriate modifications.

[[LOCAL|LOCALRC]]  FLOATING_ Range=211.87  .226  /27  fixed_range=10.11  .12  .0 /24  Fixed_network_ Size=256  flat_interface=eth0admin_password=supersecretmysql_password= Iheartdatabasesrabbit_password=flopsymopsyservice_password=iheartkslservice_token=xyzpdqlazydog  

The Floating_range represents the range of FLOATINGIP used by the OpenStack cloud instance, which should be in the same network segment as the virtual machine's IP, but is a range of IP that is not currently used by the virtual machine. For example: My IP is 211.87.226.157, then I set Floating_range to 211.87.226.224/27, which indicates that the FLOATINGIP range is 211.87.226.225~254.
Fixed_range represents the creation of a cloud instance on OpenStack, the IP used internally by the cloud instance can not be modified.
Fixed_network_size and Flat_interface do not have to modify, and then set the user's password, where the Admin_password will be logged dashboard will be used, do not forget the password you set.

4. Run the script

./stack.sh

There will be a lot of output, and if it doesn't, it will take about 40 minutes before it's ready to be installed.

After the installation is complete, you will be prompted to use a certain IP login dashboard.

Sixth step: Test

Enter IP as prompted to log in:

Username is admin, password is the password set in local.conf, login will enter such a work interface:


Since I've been using it for a while, there are some used information.

Here we create a virtual machine with OpenStack's own mirror for testing.
Start a cloud host with an instance of select project

, the name of the cloud host is test, type here can be selected, different types occupy the system's resource size is different, because the image itself is very small, so here we choose Nano This type, and then choose from the image boot, the image name on the selection of the one, the other without modification, click to run.

Click Test, enter the details of the cloud host, select the console to enter the command line interface to the Cloud host:

User name and password, in the penultimate line has been told, after landing can be like using their own computer as the use of the cloud host.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

How to configure OpenStack with Devstack (single node)

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.