Note |
---|
Note Before you issue commands with Nova, ensure that your environment contains the necessary credentials. You can do this by sourcing the keystonerc_admin file that is created during the OpenStack installation. For more information, refer to the section Getting Credentials for a CLI in the OpenStack CLI Guide. |
...
In OpenStack, run
source keystonerc_admin
to set up the OpenStack environment.Upload the qcow2 file for the specified vNIOS for KVM model to OpenStack. For more information, see Requirements.
Set up the OpenStack flavors, as described in the Setting Up the OpenStack Flavors for vNIOS section.
Import the vNIOS instance into OpenStack, as described in the Importing vNIOS Instance into OpenStack section.
Set up security groups, as described in the Setting Up Security Groups section.
Deploy an instance, as described in the Deploying a vNIOS Instance in an OpenStack Environment section.
Note |
---|
Note |
Setting up the OpenStack Flavors for vNIOS
...
To deploy the vNIOS instances in a HA setup in OpenStack, complete the following steps:
Note |
---|
Note In a HA configuration, you must unblock the VRRP port 112 in your security group. |
For both active and passive nodes, run the
neutron port-create
command to create port IDs for the MGMT, LAN1 and HA network interfaces as shown in the following steps:To create an MGMT port, use the command:
neutron port-create <mgmt_network_name> --name <mgmt-node-1> --binding:vnic-type direct
neutron port-create <mgmt_network_name> --name <mgmt-node-2> --binding:vnic-type direct
To create a LAN1 port, use the command:
neutron port-create <lan1_network_name> --name <lan1-node-1> --binding:vnic-type direct
neutron port-create <lan1_network_name> --name <lan1-node-2> --binding:vnic-type direct
To create a HA port, use the command:
neutron port-create <lan1_network_name> --name <ha-node-1> --binding:vnic-type direct
neutron port-create <lan1_network_name> --name <ha-node-2> --binding:vnic-type direct
Create a port for HA-VIP in the same subnet as that of LAN1 by using the command:
neutron port-create <lan1_network_name> --name <ha-vip> --binding:vnic-type direct
Run the
neutron port list
command to view the network and port IDs generated for all network interfaces. You can copy the port IDs from this output to thenova boot
command.Deploy active and passive nodes using the
nova boot
command:nova boot --config-drive True --flavor <flavor_name> --image <image_name> --nic port-id=<mgmt_port_id> --nic port-id=<lan1_port_id> --nic port-id=<ha_port_id> <instance name>
nova boot --config-drive True --flavor <flavor_name> --image <image_name> --nic port-id=<mgmt_port_id> --nic port-id=<lan1_port_id> --nic port-id=<ha_port_id> <instance name>
flavor
specifies the flavors of the vNIOS for KVM instance. For information about how to define flavors, see the Setting Up vNIOS OpenStack Flavors section.image
defines the name of the software package you downloaded. For information about supported vNIOS for KVM models, see vNIOS for KVM Virtual Appliance Models.nic port-id
specifies the port ID of an interface (MGMT, LAN1, LAN2, or HA).
...