`
yuky1327
  • 浏览: 123037 次
  • 性别: Icon_minigender_2
  • 来自: 广州
社区版块
存档分类
最新评论

OpenStack-FlatDHCP(multi_host)-nova.conf配置

 
阅读更多
网络规划:
控制节点:192.168.1.50
计算节点:192.168.1.30
虚拟子网段:10.10.64.0/24

控制节点的配置
#common
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--s3_host=192.168.1.50
--ec2_host=192.168.1.50
--rabbit_host=192.168.1.50
--glance_api_servers=192.168.1.50:9292
--image_service=nova.image.glance.GlanceImageService
--sql_connection=mysql://novadbadmin:novasecret@192.168.1.50/nova
--ec2_path=http://192.168.1.50:8773/services/Cloud
--api_paste_config=/etc/nova/api-paste.ini
--start_guests_on_host_boot=true
--resume_guests_state_on_host_boot=true
--network_manager=nova.network.manager.FlatDHCPManager
--connection_type=libvirt
--root_helper=sudo nova-rootwrap
--verbose=false
--use-syslog=false
--enabled_apis=ec2,osapi_compute,osapi_volume,metadata
--metadata_host=192.168.1.50

#hypervisors
--libvirt_type=kvm
--libvirt_use_virtio_for_bridges=true
#--libvirt_vif_driver =nova.virt.libvirt.vif.LibvirtBridgeDriver
--use_usb_tablet=true
--libvirt_ovs_bridge=br-int

#keystone
--auth_strategy=keystone
--keystone_ec2_url=http://192.168.1.50:5000/v2.0/ec2tokens

#Scheduler
--scheduler_driver=nova.scheduler.multi.MultiScheduler

#network
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--multi_host=true
--public_interface=eth0
--flat_interface=eth1
--flat_network_bridge=br100
--fixed_range=10.10.64.0/24
--flat_injected=false
--force_dhcp_release=true
--network_size=256
--allow_same_net_traffic=true

#vnc,如果控制节点没装nova-comput和nova-network则不需要填
--vnc_enabled=true
--novncproxy_base_url= http://192.168.1.50:6080/vnc_auto.html
#--vncserver_proxyclient_address=192.168.1.50
#--vncserver_listen=192.168.1.50
--vnc_keymap=en-us

#log
#--logging_exception_prefix="%(asctime)s TRACE %(name)s %(instance)s"
#--publish_errors=true

#compute
#--compute_driver=nova.virt.connection.get_connection
--instances_path=/var/lib/nova/instances


计算节点
#common
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--s3_host=192.168.1.50
--ec2_host=192.168.1.50
--rabbit_host=192.168.1.50
--glance_api_servers=192.168.1.50:9292
--image_service=nova.image.glance.GlanceImageService
--sql_connection=mysql://novadbadmin:novasecret@192.168.1.50/nova
--ec2_path=http://192.168.1.50:8773/services/Cloud
--api_paste_config=/etc/nova/api-paste.ini
--start_guests_on_host_boot=true
--resume_guests_state_on_host_boot=true
--network_manager=nova.network.manager.FlatDHCPManager
--connection_type=libvirt
--root_helper=sudo nova-rootwrap
--verbose=false
--use-syslog=false
--enabled_apis=ec2,osapi_compute,osapi_volume,metadata
--metadata_host=192.168.1.50

#hypervisors
--libvirt_type=kvm
--libvirt_use_virtio_for_bridges=true
#--libvirt_vif_driver =nova.virt.libvirt.vif.LibvirtBridgeDriver
--use_usb_tablet=true
--libvirt_ovs_bridge=br-int

#keystone
--auth_strategy=keystone
--keystone_ec2_url=http://192.168.1.50:5000/v2.0/ec2tokens

#Scheduler
--scheduler_driver=nova.scheduler.multi.MultiScheduler

#network
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--multi_host=true
--public_interface=eth0
--flat_interface=eth1
--flat_network_bridge=br100
--fixed_range=10.10.64.0/24
--flat_injected=false
--force_dhcp_release=true
--network_size=256
--allow_same_net_traffic=true

#vnc
--vnc_enabled=true
--novncproxy_base_url= http://192.168.1.50:6080/vnc_auto.html
--vncserver_proxyclient_address=192.168.1.30
--vncserver_listen=192.168.1.30
--vnc_keymap=en-us

#log
#--logging_exception_prefix="%(asctime)s TRACE %(name)s %(instance)s"
#--publish_errors=true

#compute
#--compute_driver=nova.virt.connection.get_connection
--instances_path= /mnt/instances



创建网络的命令
nova-manage network create --label=br100 --fixed_range_v4=10.10.64.0/24 --num_network=1 --network_size=256  --multi_host=T --bridge=br100 --bridge_interface=eth1



如果虚拟机的操作系统希望是window server 2008的话,要注意网卡驱动,需要安装virtio网卡驱动才可以在kvm中使用网卡设备。可以参考kvm创建server2008镜像和测试镜像http://yuky1327.iteye.com/blog/1706480

多节点的环境下,还有一个dns的配置,暂时还没解决。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics