openstack_nova_ubuntu12.04安装文档.docx
文本预览下载声明
openstack_nova_ubuntu12.04安装文档安装系统安装Ubuntu12.04的系统apt-get updateapt-get upgradeapt-get install bridge-utils配置网络:vi /etc/network/interfacesauto eth0iface eth0 inet static address 7 netmask network broadcast 55 gateway auto eth1iface eth1 inet static address 7 netmask gateway /etc/init.d/networking restart安装mysql:apt-get install mysql-server python-mysqldbbind-address = restart mysql创建数据库以及数据库用户,设置密码为passwdMysql –uroot -ppasswdcreate database nova;create database glance;create database keystone;grant all on nova.* to nova@localhost identified by passwd;grant all on glance.* to glance@localhost identified by passwd;grant all on keystone.* to keystone@localhost identified by passwd;安装keystoneapt-get install keystone python-keystone python-keystoneclientvi /etc/keystone/keystone.confpublic_port = 5000admin_port = 35357admin_token = admincompute_port = 8774verbose = Truedebug = True[sql]#connection = sqlite:////var/lib/keystone/keystone.dbconnection = mysql://keystone:passwd@localhost/keystoneservice keystone restartkeystone-manage db_sync设置环境变量vi .bashrcexport SERVICE_TOKEN=adminexport OS_TENANT_NAME=adminexport OS_USERNAME=adminexport OS_PASSWORD=adminexport OS_AUTH_URL=http://localhost:5000/v2.0/export SERVICE_ENDPOINT=”http://localhost:35357/v2.0”source .bashrc创建组间keystone tenant-create --name adminkeystone tenant-create --name service创建用户keystone user-create --name admin --pass admin --email admin@ keystone user-create --name nova --pass nova --email nova@keystone user-create --name glance --pass glance --email glance@keystone user-create --name swift --pass swift --email swift@创建角色keystone role-create --name adminkeystone role-create --name Member查看组间、用户、角色keystone tenant-listkeystone user-listkeystone role-list为特定组间中的用户绑定角色(将ID变量换成相应的ID)为“admin”租间中的“admin”用户绑定“admin”角色:keystone user-role-add --user $admin _ID --role $admin_ID --tenant_id $admin_ID为“service”租间中的“nova”、“glance”、“swift”用户绑定“admin”角色:k
显示全部