Atom feed of this document
  

 配置Hyper-V 2层代理

在安装OpenStack 网络Hyper-V 2层代理到Hyper-V 计算节点之前,请确保是正确使用了说明来完成计算节点的配置的。

 

安装OpenStack 网络的Hyper-V代理且配置节点

  1. 从仓库下载OpenStack 网络的代码:

    > cd C:\OpenStack\
    > git clone https://git.openstack.org/cgit/openstack/neutron
  2. 安装OpenStack网络Hyper-V代理:

    > cd C:\OpenStack\neutron\
    > python setup.py install
  3. 复制文件 policy.json

    > xcopy C:\OpenStack\neutron\etc\policy.json C:\etc\
  4. 创建文件C:\etc\neutron-hyperv-agent.conf,然后添加对应的配置属性,以及Hyper-V 相关的属性。这里是一个样例文件:

    [DEFAULT]
    verbose = true
    control_exchange = neutron
    policy_file = C:\etc\policy.json
    rpc_backend = neutron.openstack.common.rpc.impl_kombu
    rabbit_host = IP_ADDRESS
    rabbit_port = 5672
    rabbit_userid = guest
    rabbit_password = <password>
    logdir = C:\OpenStack\Log
    logfile = neutron-hyperv-agent.log
    
    [AGENT]
    polling_interval = 2
    physical_network_vswitch_mappings = *:YOUR_BRIDGE_NAME
    enable_metrics_collection = true
    
    [SECURITYGROUP]
    firewall_driver = neutron.plugins.hyperv.agent.security_groups_driver.HyperVSecurityGroupsDriver
    enable_security_group = true
    
  5. 启动OpenStack网络Hyper-V代理:

    > C:\Python27\Scripts\neutron-hyperv-agent.exe --config-file C:\etc\neutron-hyperv-agent.conf
Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...