The MidoNet plugin allows CloudStack to use the MidoNet virtualized networking solution as a provider for CloudStack Networks and services. For more information on MidoNet and how it works, see http://www.midokura.com/midonet/.
Note
In CloudStack 4.2.0 only the KVM hypervisor is supported for use in combination with MidoNet.
In CloudStack release 4.2.0 this plugin supports several services in the Advanced Isolated Network mode.
When tenants create new isolated layer 3 Networks, instead of spinning up extra Virtual Router VMs, the relevant L3 elements (routers etc) are created in the MidoNet virtual topology by making the appropriate calls to the MidoNet API. Instead of using VLANs, isolation is provided by MidoNet.
Aside from the above service (Connectivity), several extra features are supported in the 4.2.0 release:
- DHCP
- Firewall (ingress)
- Source NAT
- Static NAT
- Port Forwarding
The plugin has been tested with MidoNet version 12.12. (Caddo).
In order to use the MidoNet plugin, the compute hosts must be running the MidoNet Agent, and the MidoNet API server must be available. Please consult the MidoNet User Guide for more information. The following section describes the CloudStack side setup.
CloudStack needs to have at least one physical Network with the isolation method set to "MIDO". This Network should be enabled for the Guest and Public traffic types.
Next, we need to set the following CloudStack settings under "Global Settings" in the UI:
.. cssclass:: table-striped table-bordered table-hover
Setting Name
Description
Example
midonet.apiserver.address
Specify the address at which the Midonet API server can be contacted
midonet.providerrouter.id
Specifies the UUID of the Midonet provider router
d7c5e6a3-e2f4-426b-b728-b7ce6a0448e5
Table: CloudStack settings
We also want MidoNet to take care of public traffic, so in componentContext.xml we need to replace this line:
<bean id="PublicNetworkGuru" class="com.cloud.network.guru.PublicNetworkGuru">
With this:
<bean id="PublicNetworkGuru" class="com.cloud.network.guru.MidoNetPublicNetworkGuru">
Note
On the compute host, MidoNet takes advantage of per-traffic type VIF driver support in CloudStack KVM.
In agent.properties, we set the following to make MidoNet take care of Guest and Public traffic:
libvirt.vif.driver.Guest=com.cloud.network.resource.MidoNetVifDriver libvirt.vif.driver.Public=com.cloud.network.resource.MidoNetVifDriver
This is explained further in MidoNet User Guide.
To allow CloudStack to use the MidoNet Plugin the Network service provider needs to be enabled on the physical Network.
The steps to enable via the UI are as follows:
- In the left navbar, click Infrastructure
- In Zones, click View All
- Click the name of the Zone on which you are setting up MidoNet
- Click the Physical Network tab
- Click the Name of the Network on which you are setting up MidoNet
- Click Configure on the Network Service Providers box
- Click on the name MidoNet
- Click the Enable Provider button in the Network tab
To enable via the API, use the following API calls:
addNetworkServiceProvider
- name = "MidoNet"
- physicalnetworkid = <the UUID of the physical Network>
updateNetworkServiceProvider
- id = <the provider UUID returned by the previous call>
- state = "Enabled"
0-0 Wed Mar 13 2013 Dave Cahill dcahill@midokura.com Documentation created for 4.2.0 version of the MidoNet Plugin