网络规划:
控制节点: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.iyunv.com/blog/1706480
多节点的环境下,还有一个dns的配置,暂时还没解决。
运维网声明
1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网 享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com