Ubuntu Openstack Django 十分钟快速部署Openstack 云计算
Ubuntu Openstack Django 十分钟快速部署Openstack 云计算:
安装git
- sudo su
- apt-get update
- apt-get install git
获取快速安装脚本
- git clone git://github.com/StackGeek/openstackgeek.git
- cd openstackgeek
使用基础脚本安装依赖包
- ./openstack_base_1.sh
完成脚本使用后,编辑interface
- vim /etc/network/interfaces
修改为
- auto eth0
- iface eth0 inet static
- address 10.0.1.20
- network 10.0.1.0
- netmask 255.255.255.0
- broadcast 10.0.1.255
- gateway 10.0.1.1
- dns-nameservers 8.8.8.8
- auto eth1
完成设置后,进行下一步。
- /etc/init.d/networking restart
- ./openstack_base_2.sh
几分钟完成。需要创建新的分区。
- root@ www.linuxidc.com :/home/kord/openstackgeek# fdisk /dev/sdb
- Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0xb39fe7af.
- Changes will remain in memory only, until you decide to write them.
- After that, of course, the previous content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- Command (m for help): n
- Partition type:
- p primary (0 primary, 0 extended, 4 free)
- e extended
- Select (default p): p
- Partition number (1-4, default 1): 1
- First sector (2048-62914559, default 2048):
- Using default value 2048
- Last sector, +sectors or +size{K,M,G} (2048-62914559, default 62914559):
- Using default value 62914559
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- root@ www.linuxidc.com :/home/kord/openstackgeek# pvcreate -ff /dev/sdb1
- Physical volume "/dev/sdb1" successfully created
- root@ www.linuxidc.com :/home/kord/openstackgeek# vgcreate nova-volumes /dev/sdb1
- Volume group "nova-volumes" successfully created
- root@ www.linuxidc.com :/home/kord/openstackgeek#
安装Mysql
- ./openstack_mysql.sh
设置默认密码(这里使用的是f00bar)
- Enter a password to be used for the OpenStack services to talk to MySQL (users nova, glance, keystone): f00bar
安装时,需要提供密码。
- mysql start/running, process 8796
- #######################################################################################
- Creating OpenStack databases and users. Use your database password when prompted.
- Run './openstack_keystone.sh' when the script exits.
- #######################################################################################
- Enter password:
Mysql开始运行后,可以登录任意Openstck
- mysql -u root -pf00bar
- mysql -u nova -pf00bar nova
- mysql -u keystone -pf00bar keystone
- mysql -u glance -pf00bar glance