zoukankan      html  css  js  c++  java
  • openstack stein部署手册 7. nova-compute

    # 安装程序包
    yum install -y openstack-nova-compute
    

    # 变更配置文件
    cd /etc/nova
    mv nova.conf nova.conf.org
    
    cat > /etc/nova/nova.conf << EOF
    [DEFAULT]
    my_ip = 192.168.10.220
    enabled_apis = osapi_compute,metadata
    transport_url = rabbit://openstack:Abc@123@controller
    user_neutron = true
    firewall_driver = nova.virt.firewall.NoopFirewallDriver
    
    [api_database]
    connection = mysql+pymysql://nova:Abc@123@controller/nova_api
    
    [database]
    connection = mysql+pymysql://nova:Abc@123@controller/nova
    
    [api]
    auth_strategy = keystone
    
    [keystone_authtoken]
    auth_url = http://controller:5000/v3
    memcached_servers = controller:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project _name = service
    username = nova
    password = Abc@123
    
    [vnc]
    enabled = true
    server_listen = 0.0.0.0
    server_proxyclient_address = $my_ip
    novncproxy_base_url = http://controller:6080/vnc_auto.html
    
    [glance]
    api_servers = http://controller:9292
    
    [oslo_concurrency]
    lock_path = /var/lib/nova/tmp
    
    [placement]
    region_name = RegionOne
    project_domain_name = default
    user_domain_name = default
    project _name = service
    auth_type = password
    auth_url = http://controller:5000/v3
    username = placement
    password = Abc@123
    
    [libvirt]
    virt_type =qemu
    EOF
    
    chmod 640 /etc/nova/nova.conf
    chown root:nova /etc/nova/nova.conf
    

    # 开启服务
    systemctl restart libvirtd && systemctl enable libvirtd
    systemctl restart openstack-nova-compute && systemctl enable openstack-nova-compute
    

    # 验证
    在controller上执行
    source ~/.openstack_admin
    openstack compute service list
    openstack catalog list
    openstack image list
    nova-status upgrade check
    
  • 相关阅读:
    <转>css选择器基本语法
    Pycharm错误提示
    Python继承Selenium2Library
    对于框架设计的一点总结
    <转>自动化框架设计思想
    svn检出项目报错
    eclipse查看jar包源文件
    plsql连接远程数据库快捷方式
    plsql过期注册
    hql语句cast用法
  • 原文地址:https://www.cnblogs.com/liujitao79/p/11870846.html
Copyright © 2011-2022 走看看