Centos7上布置openstack mitaka配置详解(将疑难题都实

作者:电脑系统

systemctl restart httpd

5.2安装并配备计算节点

      #yum install openstack-neutron-linuxbridge ebtables ipset
      #vi  /etc/neutron/neutron.conf
    [DEFAULT]
      rpc_backend = rabbit
      auth_strategy = keystone
    [oslo_messaging_rabbit]
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = RABBIT_PASS
    [keystone_authtoken]
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = neutron
      password = xxxx
    [oslo_concurrency]
      lock_path = /var/lib/neutron/tmp
    配置vxlan
      #vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini
    [linux_bridge]
      physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME
    [vxlan]
      enable_vxlan = True
      local_ip = OVERLAY_INTERFACE_IP_ADDRESS
      l2_population = True
    [securitygroup]
      enable_security_group = True
      firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
    #vi /etc/nova/nova.conf
    [neutron]
      url =
      auth_url =
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = neutron
      password = xxxx
    启动:
      #systemctl restart openstack-nova-compute.service
      #systemctl enable neutron-linuxbridge-agent.service
      #systemctl enable neutron-linuxbridge-agent.service

PlacementNotConfigured: This compute is not configured to talk to the placement service

4.1设置并布控节点

    创设nova的数据库:
    #mysql -u root -p
    #CREATE DATABASE nova_api;
    #CREATE DATABASE nova;
    授权:
    #GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%'
      IDENTIFIED BY '密码';
     运转碰到变量:
    #. admin-openrc
    创建nova用户:
      #openstack user create --domain default
        --password-prompt nova
        #openstack role add --project service --user nova admin
    创立计算服务:
      #openstack service create --name nova
        --description "OpenStack Compute" compute
    创建endpoint:
      #openstack endpoint create --region RegionOne
        compute public
      #openstack endpoint create --region RegionOne
        compute internal
      #openstack endpoint create --region RegionOne
        compute admin
    安装:
      #yum install openstack-nova-api openstack-nova-conductor
        openstack-nova-console openstack-nova-novncproxy
        openstack-nova-scheduler
      #vi /etc/nova/nova.conf
    找到:[DEFAULT]
      enabled_apis = osapi_compute,metadata
    找到[api_database]
      connection = mysql pymysql://nova:NOVA_DBPASS@controller/nova_api
      [database]
      connection = mysql pymysql://nova:NOVA_DBPASS@controller/nova
      [DEFAULT]
      rpc_backend = rabbit
      [oslo_messaging_rabbit]
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = RABBIT_PASS
      [DEFAULT]
      auth_strategy = keystone
      [keystone_authtoken]
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = nova
      password = xxx
      [DEFAULT]
      my_ip = ip地址
      [DEFAULT]
      use_neutron = True
      firewall_driver = nova.virt.firewall.NoopFirewallDriver
      [vnc]
      vncserver_listen = $my_ip
      vncserver_proxyclient_address = $my_ip
      [glance]
      api_servers =
      [oslo_concurrency]
      lock_path = /var/lib/nova/tmp
    同步数据库:
      #nova-manage api_db sync
      #nova-manage db sync
    运行服务:
      #systemctl enable openstack-nova-api.service
        openstack-nova-consoleauth.service openstack-nova-scheduler.service
        openstack-nova-conductor.service openstack-nova-novncproxy.service
       # systemctl start openstack-nova-api.service
        openstack-nova-consoleauth.service openstack-nova-scheduler.service
        openstack-nova-conductor.service openstack-nova-novncproxy.service

username = nova

一:环境

yum install https://rdoproject.org/repos/rdo-release.rpm

       尝试本身配置前可观望《生手帮你跳过openstack配置进度中的坑》。

project_domain_name = default

4.2设置并配备总结节点

      #yum install openstack-nova-compute
      #vi /etc/nova/nova.conf
    [DEFAULT]
      rpc_backend = rabbit
    [oslo_messaging_rabbit]
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = xxx
    [DEFAULT]
      auth_strategy = keystone
    [keystone_authtoken]
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = nova
      password = xxx
    [DEFAULT]
      my_ip =总结节点ip地址
    [DEFAULT]
      use_neutron = True
      firewall_driver = nova.virt.firewall.NoopFirewallDriver
    [vnc]
      enabled = True
      vncserver_listen = 0.0.0.0
      vncserver_proxyclient_address = $my_ip
      novncproxy_base_url =
      [glance]
      api_servers =
    [oslo_concurrency]
      lock_path = /var/lib/nova/tmp
    注意:
      egrep -c '(vmx|svm)' /proc/cpuinfo
      假使为0则需求改善/etc/nova/nova.conf
    [libvirt]
      virt_type = qemu
      为大于0则没有须求
    启动:
      systemctl enable libvirtd.service openstack-nova-compute.service
      systemctl start libvirtd.service openstack-nova-compute.service     

project_name = service

2.5创建 OpenStack 顾客端景况脚本

            
    可将蒙受变量设置为脚本:
    #vi admin-openrc 加入:

    export OS_PROJECT_DOMAIN_NAME=default
    export OS_USER_DOMAIN_NAME=default
    export OS_PROJECT_NAME=admin
    export OS_USERNAME=admin
    export OS_PASSWORD=123456
    export OS_AUTH_URL=
    export OS_IDENTITY_API_VERSION=3
    export OS_IMAGE_API_VERSION=2

              #vi demo-openrc 加入:
    export OS_PROJECT_DOMAIN_NAME=default
    export OS_USER_DOMAIN_NAME=default
    export OS_PROJECT_NAME=demo
    export OS_USERNAME=demo
    export OS_PASSWORD=123456
    export OS_AUTH_URL=
    export OS_IDENTITY_API_VERSION=3
    export OS_IMAGE_API_VERSION=2           
    运行使用 #. admin-openrc只怕使用#source admin-openrc
    验证输入指令:
    openstack token issue
    有不易的出口即为配置不错。

auth_url =

  2.2创办服务实体和API端点

              #export OS_TOKEN=下面生成的随机值
    #export OS_URL=
    #export OS_IDENTITY_API_VERSION=3
    创建keystone的service:
    #openstack service create --name keystone --description "OpenStack Identity" identity (identity那么些注明项目一定不得以错卡塔尔
    创建keystone的endpoint:
      #openstack endpoint create --region RegionOne
      identity public
    #openstack endpoint create --region RegionOne
      identity internel  
    #openstack endpoint create --region RegionOne
      identity admin  

安装步骤

1.4SQL数据库

    安装在调控节点,指南开中学的步骤基于分歧的发行版使用MariaDB或 MySQL。OpenStack 服务也扶持任何 SQL 数据库。
    #yum install mariadb mariadb-server MySQL-python
    #vi /etc/mysql/conf.d/mariadb_openstack.cnf
    加入:
        [mysqld]
      bind-address = 192.168.1.73                         (安装mysql的机械的IP地址,这里为controller地址卡塔 尔(阿拉伯语:قطر‎
      default-storage-engine = innodb
      innodb_file_per_table
      collation-server = utf8_general_ci
      character-set-server = utf8
    
    #systemctl enable mariadb.service     (将数据库服务设置为自运维卡塔 尔(阿拉伯语:قطر‎
    #systemctl start mariadb.service          (将数据库服务设置为张开卡塔 尔(英语:State of Qatar)
    设置mysql属性:
    #mysql_secure_installation  (此处参照,中坑一)

[placement]

  2.4验证

    作为 admin 顾客,央求认证令牌:
    #openstack --os-auth-url
      --os-project-domain-name default --os-user-domain-name default
      --os-project-name admin --os-username admin token issue
    输入密码然后,有正确的输出即为配置不错。

              图片 1

 

             作为``demo`` 客户,恳求认证令牌:

    #openstack --os-auth-url

               --os-project-domain-name default --os-user-domain-name default

    --os-project-name demo --os-username demo token issue

             图片 2

 

2、调节节点

       以下也是本人将全体openstack配置进程进展汇总,并对难题举办分析,希望对您们有所帮衬,要是在布局进度中反常,也足以进行留言。

yum install openstack-nova-placement-api

4.3验证

     在调整节点验证:
     运维景况变量:
      #. admin-openrc
      #openstack compute service list
    输出平常即为配置不错

password = ******

二:认证服务

    [keystone认证服务]
    注意:在头里须要设置好hosts拆解深入分析,调节节点和总括节点都要做。作者的为:
    192.168.1.73 controller
    192.168.1.74compute1

auth_type = password

5.3验证

     运维情况变量:
      #. admin-openrc
      #neutron ext-list
      输出平常就可以

memcached_servers = controller:11211

  2.3创立域、项目、客商和剧中人物

    成立私下认可域default:
    openstack domain create --description "Default Domain" default
    创建admin的租户:
    #openstack project create --domain default
      --description "Admin Project" admin

    创建admin用户:
    #openstack user create --domain default
     --password-prompt admin(会唤起输入密码为记名dashboard的密码卡塔尔
    创建admin角色:
    #openstack role create admin
    将客户租户剧中人物连接起来:
    #openstack role add --project admin --user admin admin
    成立服务目录:
    #openstack project create --domain default
      --description "Service Project" service
    成立demo消息近似admin:
    #openstack project create --domain default
      --description "Demo Project" demo
    #openstack user create --domain default
      --password-prompt demo
    #openstack role create user
    #openstack role add --project demo --user demo user

3、计算节点

1.5音信队列

    音信队列在openstack整个架构中扮演着至关心重视要(交通枢纽卡塔尔国的功用,就是因为openstack计划的狡猾、模块的松耦合、架构的扁平化,反而使openstack特别信赖于音讯队列(不料定使用RabbitMQ,

    能够是其余的信息队列成品卡塔尔,所以音信队列收发消息的习性和新闻队列的HA才具一贯影响openstack的属性。若是rabbitmq未有运维起来,你的整openstack平台将不可能利用。rabbitmq使用5672端口。
    #yum install rabbitmq-server
    #systemctl enable rabbitmq-server.service(加入自运行卡塔 尔(阿拉伯语:قطر‎
    #systemctl start rabbitmq-server.service(启动)
    #rabbitmqctl add_user openstack RABBIT_PASS                       (增添客户openstack,密码自个儿设置替换掉RABBIT_PASS)
    #rabbitmqctl set_permissions openstack ".*" ".*" ".*"                   (给新扩展的顾客授权,没有授权的顾客将无法选拔和传递信息卡塔 尔(英语:State of Qatar)

缘由:官方文书档案中脱漏了-nova-placement-api的安装

1.6Memcached

    memcache为筛选安装项目。使用端口11211
    #yum install memcached python-memcached
    #systemctl enable memcached.service
    #systemctl start memcached.service

 

       在配备openstack项目时多六个人感觉四处是坑,极其是新手,生龙活虎旦进坑未有人指引,身体将会以为叁遍次被刨出,作为生手的笔者也身临其境,因为已经被挖出n次了。

firewall-cmd --reload

  2.1安装和安顿     

    登入数据库创设keystone数据库。
    #mysql -u root -p
    #CREATE DATABASE keystone;
    设置授权顾客和密码:
    #GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'
         IDENTIFIED BY '密码';
       生成admin_token的随机值:
      # openssl rand -hex 10
      安全并陈设组件
       #yum install openstack-keystone httpd mod_wsgi
          #vi /etc/keystone/keystone.conf
       使用刚刚生成的私下值替换掉[DEFAULT]中的
       #admin_token = 随机值                           (首要为安全,也得以不用替换卡塔尔
       配置数据库连接

               [database]

                connection = mysql pymysql://keystone:密码@controller/keystone
                provider = fernet
             伊始化身份ID明服务的数据库

        # su -s /bin/sh -c "keystone-manage db_sync" keystone(一点要查看数据库是不是生成表成功卡塔 尔(英语:State of Qatar)
    初始化keys:
    #keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
    配置apache:
    #vi  /etc/httpd/conf/httpd.conf
      将ServerName 前面改成主机名,幸免运行报错
      ServerName controller
    生成wsgi配置文件:
    #vi /etc/httpd/conf.d/wsgi-keystone.conf加入:

Listen 5000
Listen 35357

<VirtualHost *:5000>
    WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
    WSGIProcessGroup keystone-public
    WSGIScriptAlias / /usr/bin/keystone-wsgi-public
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    ErrorLogFormat "%{cu}t %M"
    ErrorLog /var/log/httpd/keystone-error.log
    CustomLog /var/log/httpd/keystone-access.log combined

    <Directory /usr/bin>
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:35357>
    WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
    WSGIProcessGroup keystone-admin
    WSGIScriptAlias / /usr/bin/keystone-wsgi-admin
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    ErrorLogFormat "%{cu}t %M"
    ErrorLog /var/log/httpd/keystone-error.log
    CustomLog /var/log/httpd/keystone-access.log combined

    <Directory /usr/bin>
        Require all granted
    </Directory>
</VirtualHost>

 

    启动httpd:
    #systemctl enable httpd.service
    #systemctl start httpd.service

firewall-cmd --zone=public --add-port=8778/tcp --permanent

六:Dashboard

1、先安装openstack octca版本的yum源

6.1配置

    #yum install openstack-dashboard
    #vi /etc/openstack-dashboard/local_settings
        OPENSTACK_HOST = "controller"
        ALLOWED_HOSTS = ['*', ]
       SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
      CACHES = {
        'default': {
      'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
      'LOCATION': 'controller:11211',
      }
      }
      OPENSTACK_KEYSTONE_URL = "" % OPENSTACK_HOST
      OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
      OPENSTACK_API_VERSIONS = {
        "identity": 3,
        "image": 2,
        "volume": 2,
        }
      OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default"
      OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
    启动:
    #systemctl restart httpd.service memcached.service

 

auth_uri =

6.2登录

             在网页上输入网址

             域:default

             用户名:admin或者demo

             密码:自个儿安装的

         图片 3

    登陆后会开掘现身转手页面:此处可看中的坑四。

           图片 4

          依照坑四缓和后会出现转手页面,就足以玩了,但假若是台式机会运营非常的慢,等有了服务器继续玩吧!!

        图片 5

 

 

           本文网站:

           配置完后可尝试已经写好的脚本风姿洒脱键安装方式:

 

user_domain_name = default

四:总计服务

编辑 /etc/nova/nova.conf

1.3Openstack包

        [openstack packages安装在调控和测算节点]
    安装openstack最新的源:
    #yum install centos-release-openstack-mitaka
    #yum install
    #yum upgrade                                               (在主机上涨级包卡塔 尔(阿拉伯语:قطر‎
    #yum install python-openstackclient            (安装opentack必得的插件卡塔尔
    #yum install openstack-selinux                    (可选则设置那一个插件,作者直接关闭了selinux,因为不熟,对持续不会有震慑卡塔尔

os_region_name = RegionOne

三:镜像服务

增加

3.1装置配备

    建立glance数据
    登录mysql
    #mysql -u root -p
    #CREATE DATABASE glance;
    授权
    #GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%'
      IDENTIFIED BY '密码';
    运维景况变量:
    #. admin-openrc
    成立glance用户音讯:
    openstack user create --domain default --password-prompt glance
    openstack role add --project service --user glance admin
    成立镜像服务目录:
    #openstack service create --name glance
      --description "OpenStack Image" image
    创制镜像endpoint:
    #penstack endpoint create --region RegionOne
      image public
    #penstack endpoint create --region RegionOne
      image internal
    #penstack endpoint create --region RegionOne
      image admin
    安装:
    #yum install openstack-glance
    #vi  /etc/glance/glance-api.conf
    配置数据库连接:
      connection = mysql pymysql://glance:密码@controller/glance
    找到[keystone_authtoken](配置认证卡塔尔国
    加入:
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = glance
      password = xxxx
    找到[paste_deploy]
      flavor = keystone
    找到[glance_store]
      stores = file,http
      default_store = file
      filesystem_store_datadir = /var/lib/glance
    #vi /etc/glance/glance-registry.conf
    找到[database]
      connection = mysql pymysql://glance:密码@controller/glance
    找到[keystone_authtoken](配置认证卡塔尔
    加入:
      auth_uri =
      auth_url =
      memcached_servers = control:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = glance
      password = xxxx
    找到:[paste_deploy]
      flavor = keystone
    同步数据库:
      #su -s /bin/sh -c "glance-manage db_sync" glance
    启动glance:
      #systemctl enable openstack-glance-api.service
        openstack-glance-registry.service
        systemctl start openstack-glance-api.service
                       openstack-glance-registry.service

 重启 systemctl restart openstack-nova-compute.service

3.2验证

    运营情况变量:
      #. admin-openrc
    下载贰个相当小的镜像:
      #wget
    上传镜像:
      #openstack image create "cirros"
        --file cirros-0.3.4-x86_64-disk.img
        --disk-format qcow2 --container-format bare
        --public
    查看:
        #openstack image list
    有出口 注脚glance配置不错

       相同的时间若是不想一步步安装,能够实行安装脚本:

五:Networking服务

1.2网络时间商讨(NTP)

  [决定节点安装NTP]   

    NTP首要为一同时间所用,时间不一致步,或者招致你不能够制造云主机

    #yum install chrony(安装软件包卡塔尔

    #vi /etc/chrony.conf增加

      server NTP_SERVER iburst

      allow 你的ip地址网段                 (能够去掉,指代允许你的ip地址网段能够访谈NTP卡塔尔

    #systemctl enable chronyd.service    (设置为系统自运转)

    #systemctl start chronyd.service       (启动NTP服务)

          [算算节点安装NTP]

     # yum install chrony

     #vi /etc/chrony.conf`` 释除``server`` 值外的全部内容。校勘它援引调整节点:server controller iburst

     # systemctl enable chronyd.service     (参与种类自运转)

     # systemctl start chronyd.service        (启动ntp服务)

           [验证NTP]

    调节节点和测算节点分别实践#chronyc sources,现身如下

              图片 6

              图片 7

5.1装置并布署调控节点

    创建neutron数据库
      #mysql -u root -p
      #CREATE DATABASE neutron;
      #GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost'
        IDENTIFIED BY 'NEUTRON_DBPASS';
      #GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%'
        IDENTIFIED BY 'NEUTRON_DBPASS';
    运转情状变量:
      #. admin-openrc
    创立顾客:
      #openstack user create --domain default --password-prompt neutron
      #openstack role add --project service --user neutron admin
    创立互连网服务:
      #openstack service create --name neutron
        --description "OpenStack Networking" network
    创建neutron endpoint
      #openstack endpoint create --region RegionOne
        network public
      #openstack endpoint create --region RegionOne
        network internal
      #openstack endpoint create --region RegionOne
        network admin
    创建vxlan网络:
      #yum install openstack-neutron openstack-neutron-ml2
        openstack-neutron-linuxbridge ebtables
      #vi /etc/neutron/neutron.conf
    [database]
      connection = mysql pymysql://neutron:密码@controller/neutron
    [DEFAULT]
      core_plugin = ml2
      service_plugins = router
      allow_overlapping_ips = True
    [DEFAULT]
      rpc_backend = rabbit
              [oslo_messaging_rabbit]
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = RABBIT_PASS
    [DEFAULT]
      auth_strategy = keystone
    [keystone_authtoken]
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = neutron
      password = xxxx
    [DEFAULT]
      notify_nova_on_port_status_changes = True
      notify_nova_on_port_data_changes = True
    [nova]
      auth_url =
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = nova
      password = xxxx
    [oslo_concurrency]
      lock_path = /var/lib/neutron/tmp
    配置ml2扩展:
      #vi /etc/neutron/plugins/ml2/ml2_conf.ini
    [ml2]
      type_drivers = flat,vlan,vxlan
      tenant_network_types = vxlan
      mechanism_drivers = linuxbridge,l2population
      extension_drivers = port_security
    [ml2_type_flat]
      flat_networks = provider
    [ml2_type_vxlan]
      vni_ranges = 1:1000
    [securitygroup]
      enable_ipset = True
    配置网桥:
      #vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini
    [linux_bridge]
      physical_interface_mappings = provider:使用的网卡名称
    [vxlan]
      enable_vxlan = True
      local_ip = OVERLAY_INTERFACE_IP_ADDRESS
      l2_population = True
    [securitygroup]
      enable_security_group = True
      firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
    配置3层网络:
      #vi /etc/neutron/l3_agent.ini
    [DEFAULT]
      interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
    配置dhcp:
      #vi /etc/neutron/dhcp_agent.ini
    [DEFAULT]
      interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
      dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
      enable_isolated_metadata = True
    配置metadata agent
      #vi /etc/neutron/metadata_agent.ini
    [DEFAULT]
      nova_metadata_ip = controller
      metadata_proxy_shared_secret = METADATA_SECRET
    #vi /etc/nova/nova.conf
    [neutron]
      url =
      auth_url =
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = neutron
      password = xxxx
      service_metadata_proxy = True
      metadata_proxy_shared_secret = METADATA_SECRET
    成立增加连接:
      ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
    启动:
      #systemctl restart openstack-nova-api.service
      #systemctl enable neutron-server.service
        neutron-linuxbridge-agent.service neutron-dhcp-agent.service
        neutron-metadata-agent.service
      #systemctl start neutron-server.service
        neutron-linuxbridge-agent.service neutron-dhcp-agent.service
        neutron-metadata-agent.service
         # systemctl enable neutron-l3-agent.service
      #systemctl start neutron-l3-agent.service  

1.1主机互连网

  • 系统版本 CentOS7

  • 支配节点: 1 微电脑, 4 GB 内部存款和储蓄器, 及5 GB 存款和储蓄

  • 算算节点: 1 微型机, 2 GB 内部存款和储蓄器, 及10 GB 存款和储蓄

   说明:

  1:以CentOS7为镜像,安装两台机器(如何设置详见卡塔尔国并介意布署双网卡和调整两台机器的内部存储器。

  2:改善机器主机名分别为:controller和compute1

             #hostnamectl set-hostname hostname 

  3:编辑controller和compute1的 /etc/hosts 文件

             #vi /etc/hosts

            图片 8

  4:验证

            选取互ping以致ping百度的方法

            图片 9 图片 10

本文由分分快三计划发布,转载请注明来源

关键词: 分分快三计划 其他分类 云计算 云计算-openstac