说明
操作系统: Ubuntu 14.04 LTS
cpu核数: 4
内存: 4G
启动CPU虚拟化特性
环境准备
-
设置root密码
sudo passwd root
-
安装OpenSSH Server
sudo apt-get install openssh-server
-
ssh 配置成可以 root 登录
vim /etc/ssh/sshd_config PermitRootLogin yes service ssh restart
-
更新源
wget -O /etc/apt/sources.list http://mirrors.163.com/.help/sources.list.trusty sudo apt-get update
-
安装git
sudo apt-get install git
安装DevStack
-
下载源码
cd /var/tmp git clone https://github.com/openstack-dev/devstack.git
-
修改配置文件
cd /var/tmp/devstack cp ./samples/local.conf . 生成service token: openssl rand -hex 10 vim ./local.conf [[local|localrc]] ADMIN_PASSWORD=123123 DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=7087c8125f9f30e96695 LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2 RECLONE=yes PIP_UPGRADE=True enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector ceilometer-api
-
创建stack用户
./tools/create-stack-user.sh
-
设置所属者
sudo chown -R stack:stack /var/tmp/devstack
-
切换到stack用户
su stack
-
更新pip源
mkdir ~/.pip vim ~/.pip/pip.conf [global] index-url=http://pypi.douban.com/simple/ [install] trusted-host=pypi.douban.com
-
执行stack.sh
./stack.sh