准备虚拟环境

  1. 在物理机上创建stack用户
  1. sudo useradd stack
  2. sudo passwd stack # specify a password
  3. echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
  4. sudo chmod 0440 /etc/sudoers.d/stack
  5. su - stack
  1. 配置yum源

    1. a
  2. 安装instack-undercloud

    1. sudo yum install instack-undercloud -y
  3. 配置instack环境变量

    1. export NODE_DIST=centos7
    2. export NODE_COUNT=9
    3. export NODE_CPU=2
    4. export NODE_MEM=6144
    5. export NODE_DISK=40
    6. export UNDERCLOUD_NODE_CPU=4
    7. export UNDERCLOUD_NODE_MEM=16384
    8. export UNDERCLOUD_NODE_DISK=50
    9. export DIB_LOCAL_IMAGE=CentOS-7-x86_64-GenericCloud-1611.qcow2
  4. 部署虚拟环境

    1. instack-virt-setup