Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install openstack in workstation?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

I. preparatory work

Install workstation on your own computer, and when I use the workstation 15pro version, you can search and download it on the Internet; install the ubuntu operating system in workstation and configure a virtual machine to surf the Internet, please refer to my previous article

2. Install virtualbox and ssh for ubuntu virtual machine and install virtualbox, indicating that the dependency package is missing

Sudo apt install virtualbix

two。 Configure the source address, refer to the official website, and wait for the installation to be completed.

Https://www.virtualbox.org/wiki/Linux_Downloads

Edit the file vi / etc/apt/sources.list and add on the last line:

Deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian contrib

Fill in according to your own version

View method: lsb_release-a

Add a public key:

Wget-Q https://www.virtualbox.org/download/oracle_vbox_2016.asc-O-| sudo apt-key add-

View the public key: apt-key finger

Update: sudo apt-get update

Installation: sudo apt install virtualbox

Install ssh:sudo apt install ssh

Third, prepare before installing openstack

1. Install python:sudo apt install python and wait for the installation to complete

two。 Download the openstack experimental version: https://docs.openstack.org/training_labs/; download the corresponding version as needed, here using Master (labs-master.tgz), you can directly open the web page to download in the virtual machine, or upload it to the virtual machine after download.

3. After decompressing, go to the llbs directory and execute the script st.py

. / st.py-b cluster

You can download the ubuntu image file to the specified address in advance and put it in the specified directory (/ home/test/Downliads/labs/img/ubunt-18.04.3-server-amd64.iso). This will save about 30 minutes.

4. Then there was a long wait.

5. You will encounter the following error during installation

This error is reported by the controller node because ssh failed to log in to controller. Learn from the online saying, you can use the command line to directly use ssh to try to log in. After the login is successful, you can execute the script again.

Solution:

Ssh-p 2230 osbash@127.0.0.1 # password is osbash#controller

6. Install compute node to report an error

This error is a bug, which can be modified with reference to https://bugs.launchpad.net/labs/+bug/1803819.

Solution:

Rerun the installation script and repeat the following command several times to manually upload the SSH key and related configuration files to the controller and compute nodes from the host using ssh.

Ssh- Q-I / home/test/Downloads/labs/lib/osbash-ssh-keys/osbash_key-o UserKnownHostsFile=/dev/null-o StrictHostKeyChecking=no-o ConnectTimeout=10-o ControlPath=none-p 2230 osbash@127.0.0.1 mkdir-p autostart & & ssh- Q-I / home/test/Downloads/labs/lib/osbash-ssh-keys/osbash_key-o UserKnownHostsFile=/dev/null-o StrictHostKeyChecking=no-o ConnectTimeout=10-o ControlPath=none-p 2232 osbash@127.0.0.1 mkdir-p autostart

7. After a lot of hard work, the installation is finally completed.

8. Turned off the lights in Lulan, Openstack dashboard: http://127.0.0.1:8888/horizon/.

Enter the domain name, user name and password to enter the administrator master Overview main interface

Default domain name: default

Default user name: admin

Default password: admin_user_secret

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report