40分钟

任务4 安装OpenStack

任务目标

实验第四步是安装OpenStack,该步骤为安装OpenStack的关键步骤,通过allinone的方式实现单机版OpenStack的安装。

任务步骤

1.使用packstack工具安装OpenStack

执行如下命令,安装OpenStack:

packstack --allinone --provision-demo=n

当最后输出如下结果,代表OpenStack安装完成:

** Installation completed successfully ****

Additional information:

  • A new answerfile was created in: /root/packstack-answers-20200601-085244.txt
  • Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
  • File /root/keystonerc_admin has been created on OpenStack client host 192.168.56.20. To use the command line tools you need to source the file.
  • To access the OpenStack Dashboard browse to http://192.168.56.20/dashboard . Please, find your login credentials stored in the keystonerc_admin in your home directory.
  • The installation log file is available at: /var/tmp/packstack/20200601-085244-zGX_Hi/openstack-setup.log
  • The generated manifests are available at: /var/tmp/packstack/20200601-085244-zGX_Hi/manifests

这里需要重点关注几个信息:

1)OpenStack的登录路径:http://192.168.56.20/dashboard

2)登录的账号密码文件:/root/keystonerc_admin