手机版
你好,游客 登录 注册
背景:
阅读新闻

Ubuntu 12.04 OpenStack Folsom 安装(VLAN模式)

[日期:2013-04-11] 来源:Linux社区  作者:hobbylinux [字体:大 中 小]
安装nova服务

 

  1. apt-get -y install nova-api nova-cert nova-common nova-scheduler Python-nova python-novaclient nova-consoleauth novnc nova-novncproxy
 
配置
编辑 /etc/nova/api-paste.ini

 

  1. auth_host = 192.168.4.164
  2. auth_port = 35357
  3. auth_protocol = http
  4. admin_tenant_name = service
  5. admin_user = nova
  6. admin_password = nova
 
编辑文件 /etc/nova/nova.conf

 

  1. [DEFAULT]
  2. logdir=/var/log/nova
  3. state_path=/var/lib/nova
  4. lock_path=/run/lock/nova
  5. verbose=False
  6. api_paste_config=/etc/nova/api-paste.ini
  7. scheduler_driver=nova.scheduler.simple.SimpleScheduler
  8. s3_host=192.168.4.164
  9. ec2_host=192.168.4.164
  10. ec2_dmz_host=192.168.4.164
  11. rabbit_host=192.168.4.164
  12. rabbitrabbit_password=rabbit-pass
  13. cc_host=192.168.4.164
  14. nova_url=http://192.168.4.164:8774/v1.1/
  15. sql_connection=mysql://nova:nova-pass@192.168.4.164/nova
  16. ec2_url=http://192.168.4.164:8773/services/Cloud
  17. root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
  18. # Auth
  19. use_deprecated_auth=false
  20. auth_strategy=keystone
  21. keystone_ec2_url=http://192.168.4.164:5000/v2.0/ec2tokens
  22. # Imaging service
  23. glance_api_servers=192.168.4.165:9292
  24. image_service=nova.image.glance.GlanceImageService
  25. # Vnc configuration
  26. novnc_enabled=true
  27. novncproxy_base_url=http://0.0.0.0:6080/vnc_auto.html
  28. novncproxy_port=6080
  29. vncserver_proxyclient_address=0.0.0.0
  30. vncserver_listen=0.0.0.0
  31. # Network settings
  32. #network_api_class=nova.network.quantumv2.api.API
  33. #quantum_url=http://192.168.4.164:9696
  34. #quantum_auth_strategy=keystone
  35. #quantum_admin_tenant_name=service
  36. #quantumquantum_admin_username=quantum
  37. #quantum_admin_password=
  38. #quantum_admin_auth_url=http://192.168.4.164:35357/v2.0
  39. #libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
  40. #linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
  41. #firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
  42. ###### NETWORK
  43. #network_manager=nova.network.manager.FlatDHCPManager
  44. network_manager=nova.network.manager.VlanManager
  45. force_dhcp_release=True
  46. dhcpbridge_flagfile=/etc/nova/nova.conf
  47. dhcpbridge=/usr/bin/nova-dhcpbridge
  48. firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
  49. public_inter>
  50. flat_inter>
  51. vlan_inter>
  52. flat_network_bridge=br100
  53. fixed_range=10.100.0.0/24
  54. multi_host=true
  55. # Compute #
  56. #compute_driver=libvirt.LibvirtDriver
  57. ###### COMPUTE
  58. libvirt_type=kvm
  59. connection_type=libvirt
  60. instanceinstance_name_template=instance-%08x
  61. api_paste_config=/etc/nova/api-paste.ini
  62. allow_resize_to_same_host=True
  63. libvirt_use_virtio_for_bridges=true
  64. start_guests_on_host_boot=true
  65. resume_guests_state_on_host_boot=true
  66. # Cinder #
  67. volume_api_class=nova.volume.cinder.API
  68. osapi_volume_listen_port=5900
 
创建nova数据表
 
  1. nova-manage db sync
重启服务

 

  1. service nova-api restart
  2. service nova-cert restart
  3. service nova-consoleauth restart
  4. service nova-scheduler restart
  5. service nova-novncproxy restart
linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款