瑞雪年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: 订阅 订阅 :: 管理 ::

之前ubuntu使用Canonical时,我曾尝试过,严重受挫(2010/06/13).

这次在得知ubuntu转投OpenStack后赶紧再次尝试,真不愧时代进步啊!!!

基本上全自动化,无悬念搞定!!!

wget --no-check-certificate https://github.com/elasticdog/OpenStack-NOVA-Installer-Script/raw/master/nova-install
sudo chmod 755 nova-install

sudo bash nova-install -t cloud
sudo bash nova-install -t compute

mkdir –p /root/creds
nova-manage project zipfile mycloud root /root/creds/novacreds.zip
unzip /root/creds/novacreds.zip -d /root/creds/
cat /root/creds/novarc >> ~/.bashrc
source ~/.bashrc

restart libvirt-bin; restart nova-network; restart nova-compute;
restart nova-api; restart nova-objectstore; restart nova-scheduler

uec-publish-tarball ubuntu-10.04-server-uec-amd64.tar.gz mybucket

euca-add-keypair mykey > mykey.pem
chmod 600 mykey.pem

euca-run-instances -k mykey ami-1e31f4fd -t m1.tiny

ssh ubuntu@$192.168.0.130 -i mykey.pem

posted on 2011-05-20 00:36  瑞雪年  阅读(6018)  评论(8编辑  收藏  举报