fedora18单机部署openstack教程

该教程详细介绍了如何在Fedora 18系统上单机部署OpenStack,包括安装包、启动支持服务、配置Keystone、Glance、Cinder、Nova、网络设置、注册镜像、启动实例、配置OpenStack Dashboard和Swift。内容涵盖了从数据库配置到服务启动的全过程。
摘要由CSDN通过智能技术生成

Basic Setup

  • These steps will setup OpenStack Nova, Glance, and Keystone to be accessed by the OpenStack Dashboard web UI on a single host, as well as launching our first instance (virtual machine). Fedora 18 includes OpenStack Folsom release.
  • Many of the examples here require 'sudo' to be properly configured, please see Configuring Sudo if you need help.

Install packages

First let us pull in OpenStack and some optional dependencies:

# OpenStack utils, Keystone (identity), Nova (compute), Cinder (block storage), 
# Glance (image), Swift (object storage), Quantum (network), Horizon (dashboard)
$> sudo yum install openstack-utils openstack-keystone openstack-nova \
  openstack-cinder openstack-glance openstack-swift openstack-swift-proxy \
  openstack-swift-account openstack-swift-container openstack-swift-object \
  openstack-quantum openstack-quantum-linuxbridge openstack-quantum-openvswitch \
  openstack-dashboard openstack-tempo
# MySQL, QPID (AMQP message bus), memcached, NBD (Network Block Device) wget module
$> sudo yum install mysql-server qpid-cpp-server memcached nbd wget
# Python bindings
$> sudo yum install python-nova-adminclient 
# Ruby bindings
$> sudo yum install rubygem-openstack rubygem-openstack-compute \
  rubygem-openstack-quantum-client
# Image creation
$> sudo yum install appliance-tools appliance-tools-minimizer \
  febootstrap rubygem-boxgrinder-build
# Some documentation
$> sudo yum install openstack-keystone-doc openstack-nova-doc \
  openstack-cinder-doc openstack-glance-doc openstack-swift-doc \
  python-keystoneclient-doc python-novaclient-doc \
  python-swiftclient-doc python-django-horizon-doc \
  rubygem-openstack-doc rubygem-openstack-quantum-client-doc

Start support services

OpenStack requires the MySQL database server to be running.


$> sudo systemctl start mysqld.service && sudo systemctl enable mysqld.service

Nova requires the QPID messaging server to be running.

$> sudo systemctl start qpidd.service && sudo systemctl enable qpidd.service

Nova requires the libvirtd server to be running:

$> sudo systemctl start libvirtd.service && sudo systemctl enable libvirtd.service

Configure Keystone

Keystone is the OpenStack identity service, providing a central place to set up OpenStack users, groups, and accounts that can be shared across all other services. This deprecates the old style user accounts manually set up with nova-manage.

Setting up Keystone is required for using the OpenStack dashboard.

     Configure the Keystone database, similar to how we do it for nova


$> sudo openstack-db --service keystone --init

    Set up a keystonerc file with a generated admin token and various passwords:

$> cat > ./.keystonerc << _EOF
export ADMIN_TOKEN=$(openssl rand -hex 10)
export OS_USERNAME=admin
export OS_PASSWORD=verybadpass
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://127.0.0.1:5000/v2.0/
export SERVICE_ENDPOINT=http://127.0.0.1:35357/v2.0/
export SERVICE_TOKEN=\$ADMIN_TOKEN
_EOF
$> . ./.keystonerc

     Set the administrative token in the config file

$> sudo openstack-config --set /etc/keystone/keystone.conf DEFAULT admin_token $ADMIN_TOKEN

     Start and enable Keystone service

$> sudo systemctl start openstack-keystone.service && sudo systemctl enable openstack-keystone.service

    Create sample Tenants, Users and Roles
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值