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镜像和测试镜像[url]http://yuky1327.iteye.com/blog/1706480[/url]

多节点的环境下,还有一个dns的配置,暂时还没解决。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值