In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
Today, I would like to share with you how to use packstack to install openstack under centos. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
Summary:
Prerequisites: the system requires two hard drives and two network cards.
Configure the network card and skip this step if the system is already connected to the Internet
Vi / etc/sysconfig/network-scripts/ifcfg-eth0; modify onboot=yes; service network restart
Install wget, skip this step if it is already installed
Yum install wget-y
Partitions for cinder-volumes
Fdisk / dev/sdb; n p 1 ret ret w; vgcreate cinder-volumes / dev/sdb1
Modify update source
Enable NetEase's centos update source
Cd / etc/yum.repo.d/; wget http://mirrors.163.com/.help/centos6-base-163.repo; mv centos-base.repo centos-base.repo.bak; mv centos6-base-163.repo centos-base.repo
Enable update source for openstack
Vi openstack.repo
Enter the following and save:
[openstack] baseurl= http://rdo.fedorapeople.org/openstack/openstack-grizzly/epel-6 gpgcheck=0
Update yum Feed
Yum clean all; yum makecache; yum update
Install packstack
Yum install-y openstack-packstack
Next, you need to enter your ip address with one click to install the openstack,--install-hosts parameter
Packstack-when prompted by install-hosts=your_ip;, enter your password and wait for the installation to complete.
Text
The simplest installation of openstack here refers to a centos system that requires the least number of steps to install. If the environment is unlimited, the simplest installation is to use stackops, which is an integrated ubuntu system with openstack. After installing the iso image it provides, openstack has been installed.
However, since many companies use centos as their primary operating environment, the simplest installation is as outlined in this article. Note that it must be a 64-bit centos, and it can be installed at its simplest. A 32-bit system will fail because some installation packages are missing.
One, download
Download link: download centos-6.4-x86_64-minimal.iso.
Download address collection of all centos versions: / / www.jb51.net/os/redhat/395751.html.
Second, install the virtual machine:
Create a new virtual machine with the configuration shown in the following figure. The key is that you need two hard drives and two network cards.
One of the network cards is nat and the other is host-only (uncertain). Otherwise, subsequent installation of packstack will fail.
Select the right arrow of the first hard inventory here.
It will be finished soon.
Third, configure the ip address
There is no ip after the installation.
Vi / etc/sysconfig/network-scripts/ifcfg-eth0
It can be configured as dhcp or static ip, as in the original.
Then restart the network service. Service network restart can see that there is an ip address.
Fourth, add an update source
Cd / etc/yum.reops.d/
Under minimum installation, you don't even have wget, so you need to install it. If you install dvd, ignore this step.
Yum install wget
Download NetEase's mirror repo file, or you can download other repo files according to your network situation.
Wget http://mirrors.163.com/.help/centos6-base-163.repo mvcentos-base.repocentos-base.repo.bak mvcentos6-base-163.repocentos-base.repo
Add openstack.repo
Vi openstack.repo
Enter the following
[openstack] baseurl= http://rdo.fedorapeople.org/openstack/openstack-grizzly/epel-6 gpgcheck=0
Then enter the command to update the source:
Yum clean all yum makecache yum update
Fifth, hard disk operation
Then partition and mount the disk:
Fdisk / dev/sdb n p 1 return (enter) retrun (enter) w
Operate on hard disk / dev/sdb1
Enter:
Vgcreate cinder-volumes / dev/sdb1
This step does not require the installation of cinder. See the following prompt to indicate that the operation is successful: volume group "cinder-volumes" successfully created
Sixth, install packstack
Yum install-y openstack-packstack
Seventh, use packstack to install openstack
Packstack-install-hosts=192.168.8.142
The next step is to enter the password of your root account
As you can see, a series of installations have taken place.
Eight, the installation is successful
Nine, log in to dashboard and manage openstack
Follow the above instructions, log in, and you can manage openstack.
In this step, if you use a vbox virtual machine, you need to configure it according to the way that the virtualbox virtual machine accesses the Internet and hosts and hosts visit each other-- organize this post. At this time, you enter not the address of the nat network card (eth0) that accesses the external network, but the address of the host-only network card (eth1). Because in vbox, the communication between the host and the virtual machine is accomplished through the host-only network card.
The username and password are saved in the keystonerc_admin file in the root directory and viewed using the cat command:
Cat / root/keystonerc_admin
Command line: source / root/keystonerc_admin can import some environment parameters
Then execute some commands, such as:
Keystone user-list
Create a normal user
Keystone user-create-name tcommerce-pass password above is all the content of this article "how to use packstack to install openstack under centos". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.