nova.conf 参数说明

来源:互联网 发布:带帽子女孩网络歌手 编辑:程序博客网 时间:2024/05/20 20:05
# Rabbit-MQ
--rabbit_host=10.108.110.23

# MySQL
--sql_connection=mysql://novaUser:novaPwd@10.108.110.23/nova

# API
--cc_host=10.108.110.23
--auth_strategy=keystone
--s3_host=10.108.110.23
--ec2_host=10.108.110.23
--ec2_url=http://10.108.110.23:8773/services/Cloud
--nova_url=http://10.108.110.23:8774/v1.1/
--keystone_ec2_url=http://10.108.110.23:5000/v2.0/ec2tokens
--api_paste_config=/etc/nova/api-paste.ini
--allow_admin_api=true
--use_deprecated_auth=false

# Nova-Schedule
--scheduler_driver=nova.scheduler.simple.SimpleScheduler

# network specific settings
--network_manager=nova.network.manager.FlatDHCPManager            #使用FlatDHCP方式分配网络
--force_dhcp_release                                                                                        #删除虚拟机时,释放dhcp分配的ip
--dhcpbridge_flagfile=/etc/nova/nova.conf                                                     #方便替换配置文件,--dhcpbridge_flagfile=/etc/nova/my_nova.conf  
--dhcpbridge=/usr/bin/nova-dhcpbridge
--routing_source_ip=10.108.110.23
--fixed_range=192.168.4.0/27                                                                         #私有地址空间,地址池,给instance分配
--network_size=32                                                                                             #私有地址数量
--flat_network_dhcp_start=192.168.4.1                                                        #从1开始分配地址

--public_interface=eth0                                                                                    #对外网络接口
--flat_interface=eth0                                                                                          #采用单网卡,对内接口
--flat_network_bridge=br100
--floating_range=10.108.110.23/27                                                               #私有地址范围
--flat_injected=False


# Nova-Compute with KVM Hypervisor
--libvirt_type=kvm
--libvirt_use_virtio_for_bridges=true
--start_guests_on_host_boot=true
--resume_guests_state_on_host_boot=true
--connection_type=libvirt

# Nova-Volume
--iscsi_ip_prefix=192.168.4
--iscsi_helper=tgtadm

# Glance
--glance_api_servers=10.108.110.23:9292
--image_service=nova.image.glance.GlanceImageService

# vnc specific configuration
--novnc_enabled=true
--novncproxy_base_url=http://10.108.110.23:6080/vnc_auto.html
--vncserver_proxyclient_address=10.108.110.23
--vncserver_listen=10.108.110.23


# Misc
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/run/lock/nova
--root_helper=sudo nova-rootwrap
--verbose




原创粉丝点击