Install Openstack in VMware-Ubuntu

Source: Internet
Author: User
Tags install node
Note: 1. select Custom for the Type of the VM to customize some options. 2. & ldquo; Installfrom & rdquo; Select & ldquo; Iwillinstalloperatingsystemlater & rdquo; to control the Ubuntu installation process. 3. choose Linux for Guestoperatingsystem and Version

Create a virtual machine

Precautions for creating a virtual machine:

1. Select Custom for the Type of the VM to customize some options;

2. Select "I will Install operating system later" for "install from" to control the Ubuntu installation process;

3. Select Linux as the Guest operating system and Ubuntu 64-bit as the Version. (hardware support is required for 64-bit virtual machines. If you cannot create 64-bit virtual machines, select Ubuntu );

4. Select "NAT" for "Network connection ";

You can use the default items for other settings.

Install Ubuntu Server 12.10

Download installation Image

Download the installation image from http://www.linuxidc.com/linux/2012-10/72581.htm. here the Ubuntu Server version is used instead of the Desktop version;

If you can download it Using BT, we recommend that you;

If you need to install 64-bit Ubuntu, download the ubuntu-12.10-server-amd64.iso; otherwise, download the ubuntu-12.10-server-i386.iso.

Install Ubuntu Server (refer to http://www.linuxidc.com/Linux/2012-11/73500.htm)

1. go back to VMWare Workstation, edit the properties of the virtual machine created in the previous step, select "CD/DVD" in the Hardware list, and check "Connect at power on" in the settings on the right ", select "Use ISO image file:" in "Connection" and click "Browse ..." Select the ISO image file downloaded from the previous step and click OK to save the settings.

2. Start the VM and run the Ubuntu installation process;

Modify and update the installation source;

1. during the installation process, Ubuntu uses the installation source from us.archive.ubuntu.com by default. We recommend that you change it to the Domestic installation source. I use the Netease installation source, which can basically reach full speed during download and installation;

2. Run the following command to back up and modify the source. list Configuration:

Sudo cp/etc/apt/sources. list/etc/apt/sources. list. backup

Sudo sed-I's/us.archive.ubuntu.com/ubuntu.cn99.com/g'/etc/apt/sources. list

3. After the modification is complete, run the following command to update and install

Sudo apt-get update

Sudo apt-get upgrade

Install VMTools:

Sudo bash

1. Because some modules need to be compiled during the VMTools installation process, you need to install gcc and make:

Sudo apt-get install-y gcc make

2. Install VMTools:

3. Click VM> Install VMWare Tools in the menu of VMware Workstation;

Apt-get install linux-headers-server build-essential

Mkdir/mnt/cdrom

Mount/dev/cdrom/mnt/cdrom

Cp/mnt/cdrom/vmwarw.ls-* .tar.gz ~

Cd ~

Tar-zxf VmwareTools-x.x.x-xxxxx.tar.gz

/Vmware-install.pl

Install OpenStack with DevStack

1. Install Git (the DevStack code is managed using Git and needs to be obtained using Git );

Sudo apt-get install git

2. Use Git to obtain the latest DevStack code:

Cd ~

Git clone git: // github.com/openstack-dev/devstack.git

Install necessary python Components

1. First install easy_install:

Sudo apt-get install python-setuptools

2. Install the netaddr Module

Sudo easy_install netaddr

3. Install pytz

Pytz is a Python module used for time zone processing. During the DevStack installation process, you will try to download and install it from SourceForge. However, for some reason, the download is always unsuccessful, so you need to install it manually.

My solution is: Install axel and download it with axel.

Sudo apt-get install axel

Axel http://pypi.python.org/packages/2.7/p/pytz/pytz-2012h-py2.7.egg

Download path:

Then run the command.

Sudo easy_install pytz-2012h-py2.7.egg

 

Install OpenStack

 

Cd ~ /Devstack

./Stack. sh

This script will automatically execute the OpenStack installation. in the initial stage of installation, you will need to enter some passwords. If you are lazy, set them to the same, for example, set them to 123456 ......

 

My network speed is not good. I downloaded it for several hours, and it was broken in the middle, but I re-executed it.

./Stack. sh

It seems that resumable download is supported, so you don't have to worry about it.

After the keyring is installed, you also need to enter a password.

Installation is fine as long as the network speed is high

After the installation is complete, enter http: // in the browser <Virtual Machine IP address>, you can see the login interface of OpenStack. The default user name is admin, And the password is the password entered at the beginning of installation.

Solve problems after installation

1. solved the problem of displaying "Exception Value:/usr/bin/env: node: No such file or directory ".
Install the following two programs to solve the problem:

Sudo apt-get install node-less
Sudo apt-get install nodejs-legacy

2. If An "An error occurred authenticating. Please try again later" error occurs when you log on to the Dashboard after restarting the virtual machine, execute the rejoin-stack.sh script under DevStack to resolve it. This method is not perfect. After the script is executed, it does not know what shell is in and cannot exit. At the same time, the script does not seem to be able to solve the problem once and for all, and the restart may still fail.

Common commands

Sudo apt-get autoclean

Sudo apt-get autoremove

Sudo apt-get clean

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.