7. Add a networking service

Controller Node:

1. sudo vi /etc/nova/nova.conf

[DEFAULT]

...

network_api_class = nova.network.api.API

security_group_api = nova

2. sudo service nova-api restart && sudo service nova-scheduler restart && sudo service nova-conductor restart

 

Compute Node:

1. sudo apt-get install nova-network nova-api-metadata

2. sudo vi /etc/nova/nova.conf

[DEFAULT]

...

network_api_class = nova.network.api.API

security_group_api = nova

firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver

network_manager = nova.network.manager.FlatDHCPManager

network_size = 254

allow_same_net_traffic = False

multi_host = True

flat_injected = False

send_arp_for_ha = True

share_dhcp_address = True

force_dhcp_release = True

flat_network_bridge = br100

flat_interface = eth1

public_interface = eth0

 

3.

sudo service nova-network restart

sudo service nova-api-metadata restart

Create initial network (Controller Node):

1. source admin-openrc.sh

2. 为实例创建可以被分配的IP Pool

nova network-create demo-net --bridge br100 --multi-host T --fixed-range-v4 172.52.17.0/24

 

3. 生成net-id供第十四步中使用

nova net-list

4. 创建Floating IP以使外部网络可以访问到实例

sudo nova-manage floating create --pool nova --ip_range 192.168.0.0/24

sudo nova-manage floating list

时间: 2024-10-15 10:20:13

7. Add a networking service的相关文章

OpenStack 网络总结之:openstack中网络的基本概念

原文:openstack-install-guide-yum-icehouse.pdf/7. Add a networking service/Networking concepts OpenStack的Neutron可以管理OpenStack环境中的虚拟 网络基础设施(VNI),和物理网络基础设施(PNI). OpenStack的Neutron允许租户创建虚拟网络拓扑结构,包含的服务例如防火墙,负载均衡和虚拟专用网络(VPN)等等. Neutron提供了对以下对象的抽象:网络,子网和路由器.

Openstack组件部署 — Networking service_安装并配置Controller Node

目录 目录 前文列表 前提条件 完成下面的步骤以创建数据库 创建service credentials服务凭证 创建Neutron的API Endpoints 配置自服务网络 安装网络组件 配置服务组件 配置 Modular Layer 2 ML2 插件 配置Linux 桥接代理 配置layer-3代理 配置DHCP代理 配置元数据代理 配置计算使用网络 完成安装 前文列表 Openstack组件部署 - Overview和前期环境准备 Openstack组建部署 - Environment o

[ISSUE] [Centos] Centos Start Nginx Show: Failed to start nginx.service:unit not found

CMD Line:systemctl start nginx.serviceFailed to start nginx.service: Unit not found. Solution: 1.vim /etc/init.d/nginx #!/bin/sh # nginx - this script starts and stops the nginx daemin # # chkconfig: - 85 15 # description: Nginx is an HTTP(S) server,

Writing a Simple Service and Client (C++)

Here we'll create the service ("add_two_ints_server") node which will receive two ints and return the sum. Change directories to your beginner_tutorials package you created in your catkin workspace previous tutorials: roscd beginner_tutorials Wr

ROS 新手测试简单的Service和Client

ROS 新手测试简单的Service和Client 编写简单的Service和Client (C++) Description: 本教程介绍如何用C++编写Service和Client节点. Tutorial Level: BEGINNER Next Tutorial: 测试简单的Service和Client 编写Service节点 这里,我们将创建一个简单的service节点("add_two_ints_server"),该节点将接收到两个整形数字,并返回它们的和. 进入先前你在ca

Service Discovery in WCF 4.0 – Part 2 z

Service Discovery in WCF 4.0 – Part 2 In the previous post I discussed about the basic usage of WCF Discovery in 4.0. I implemented a managed discovery service by inheriting from System.ServiceModel.Discovery.DiscoveryProxy. I utilized a concurrent d

Service Discovery in WCF 4.0 – Part 1 z

Service Discovery in WCF 4.0 – Part 1 When designing a service oriented architecture (SOA) system, there will be a lot of services with many service contracts, endpoints and behaviors. Besides the client calling the service, in a large distributed sy

Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme

13down votefavorite 6 I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to provide the correct authenticat

Add&Delete WindowService

Part One-Add: Step4: Add the new service to windows service: $commandLine = 'D:\IMS\2.16.0.42-DataServices\Service\Eze.Shell.exe -r=ziyezhang_22' New-Service -Name 'EzeImsService_22_test' -BinaryPathName $commandLine -StartupType Automatic Part-Two D