In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
For beginners, manual deployment of OpenStack is quite troublesome and takes more time to learn. However, we can use deployment scripts to install OpenStack.
There is an OpenStack deployment tool called DevStack, which is called the stupidest one on the Internet. I feel really stupid after using it for a while. Components are pulled directly from the github, not only slow, but also version compatibility problems may occur. It took four hours to install. If you want to change the parameters, you have to start all over again. To make matters worse, it uses python setup scripts to add some packages that may be out of date directly to the system's python library, causing a lot of errors. Basically, if you fail to install with DevStack, you can reinstall the system and come again.
OpenShit is a gadget that can quickly deploy Openstack on Ubuntu14.04 system. It uses Shell script and Python script to install and configure Openstack components. And you can easily change the configuration parameters to reconfigure, restart the service to empty the database and so on. Fully automated installation and configuration can be carried out with commands. The following is the address of OpenShit
Introduction to OpenShit command
. / openshit.sh start | stop | restart
Various (or all) Openstack components can be started, stopped, and restarted.
. / openshit.sh install | uninstall | download
Each component of Openstack can be installed, uninstalled and downloaded.
. / openshit.sh config
You can configure the build to set up the database, and the original configuration files are backed up according to time in the config-backup folder. Using the rollback.sh script, you can easily roll back the configuration file changes.
. / openshit.sh clean
You can clear the database of the service. If there is a problem with the service, you can clean up the database directly and then config it again.
Next we use OpenShit to deploy OpenStack. Exe on Ubuntu14.04. Here are a few small requirements:
1. The Ubuntu14.04 partition must have enough space. OpenStack will use the partition space when creating the instance. If there is not enough space, the instance cannot be created. The test uses Ubuntu14.04 to divide 100g, which is enough to use.
two。 It is recommended that the newly installed ubuntu partition is the best. It would be embarrassing if DevStack failed to install a pile of garbage and left it in the system library and then failed to use OpenShit.
Not much to say, starting now.
1. Install git and download openshit using git
Git clone https://github.com/windworst/openshit.git.
two。 Modify the configuration file setting.conf.
There are many passwords in it: database password, service password. The default can be changed, and it doesn't matter if you don't change it.
Change the network configuration. IP values in the configuration file are set to call their own IP, and the network card is set to their own network card (default is eth0).
3. Start the installation after the modification of the configuration file is completed
. / openshit.sh-- all install.
This command will ask you if you need to configure the software source. Select y when using openshit for the first time, so the command can be written as follows:
Echo y |. / openshit.sh-- all install
4. After a period of time, the installation is complete, please enter
. / openshit.sh-- all config
The configuration file and database configuration of each component are modified according to the value of setting.conf.
5. After completion
Run source admin-env.sh; nova service-list to check the service status if all up is installed successfully
If you open http://localhost/horizon in the browser, you can see that the Openstack management interface can log in by entering the password.
Now OpenStack is successfully deployed to the Ubuntu14.04 server.
In order to run an instance successfully, we need to create and upload an image, configure the network, and start the instance.
Make a mirror image of ubuntu14 server here
1. Make a mirror image
Qemu-img create-f qcow2 ubuntu.img 20g
Kvm-cdrom ubuntu-14.04-server-amd64.iso-drive file=ubuntu.img,if=virtio,index=0-boot d-net nic-net user
Here is to install the ubuntu14-server directly from the CD and install it.
two。 Upload image
Execute source admin-env.sh in the openshit directory
Execution
Glance p_w_picpath-create-name "ubuntu"-file ubunut.img-disk-format qcow2-container-format bare-is-public True-progress
The progress bar scrolls quickly and the upload is complete.
3. Create a network
Execute source admin-env.sh in the openshit directory (you don't have to do it here after you've done it before)
Execution
Nova network-create v-net-- bridge br100-- multi-host T--fixed-range-v4 10.0.1.0
Here v-net is the network name 10.0.1.0 Universe 29 is the network segment and the number of hosts to be allocated do not set the network segment the same as this network segment, otherwise the egg pain is more than you can imagine
Execution
Nova net-list
You can see the network you just created
4. Create an instance
Run it in the image bar of the web management end to create an instance (the ip address of the network you just created will be assigned)
Click the console to see the screen of the virtual machine through vnc
There is a problem that virtual machines and hosts can ping each other (need to turn off the firewall), but can not access the external network, may not be set up somewhere.
At this point, the example has been running, and the article is over.
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.