Installing Cisco VTS in a Linux—OpenStack Environment
Installing Cisco VTS in an OpenStack environment involves:
-
Installing the VTC VM. See Installing the VTC VM for details.
-
Installing the Host Agent and the Open Stack Neutron Plugin.
See Installing Host Agent and Registering OpenStack VMM.
Installing the VTC VM
You can install the VTC VM using either the automatic or manual configuration option.
To install the VTC VM using an ISO file (Auto Configuration), see Installing VTC VM—Automatic Configuration Using ISO File.
To install VTC VM using the virt-manager application (Manual Configuration), see Installing VTC VM—Manual Configuration Using virt-manager Application.
To install VTC VM using VNC (Manual Configuration), see Installing VTC VM - Manual Configuration using VNC.
Note |
If you need to access the VTC VM's console using virt-manager, VNC, or SPICE, it may be necessary to manually switch to tty1 using the CTRL+ALT+F1 key combination. After connecting to the VM's console, if the output shows a blank screen, then you must manually switch to tty1. |
Installing VTC VM—Automatic Configuration Using ISO File
To enable configuration using ISO file, the administrator needs to create a text file with the VM settings, wrap it into an ISO file, and then attach the ISO to the VM's CD drive.
Procedure
Step 1 |
Connect to any linux server that is reachable to all the controller/compute nodes as well as the fabric devices via SSH, and copy the vtc.qcow2 file to /var/lib/libvirt/images/ folder. |
||||
Step 2 |
Copy the vtc.sample.xml file to your controller. A sample XML file is available at Sample XML File—VTC Installation. |
||||
Step 3 |
Create a file called config.txt. The contents of the file is given in the below example:
In this file:
|
||||
Step 4 |
Use mkisofs to create an ISO file. For example:
|
||||
Step 5 |
Create the VTC VM using following command:
|
Installing VTC VM—Manual Configuration Using virt-manager Application
To install the VTC VM, configuring the VM, manually, using the virt-manager application:
Procedure
Step 1 |
Connect to the controller node via SSH, and copy the vtc.qcow2 file to /var/lib/libvirt/images/ folder. |
||
Step 2 |
Copy the vtc.sample.xml file to your controller. Modify it as per your setup. |
||
Step 3 |
Create the VTC VM using following command:
|
||
Step 4 |
Run the command:
It should display:
|
||
Step 5 |
Start virt-manager. Run:
|
||
Step 6 |
Once virt-manager window opens, click on the VTC VM to open up the VTC VM console. In the console you get the installation wizard which takes you through the steps to configure VTC VM for the first time. |
||
Step 7 |
Enter the following:
VTC VM reboots at this time. Wait for two minutes for the VTC VM to be up. You can ping the IP address given for VTC VM in the setup process to verify whether the VTC VM is up. |
||
Step 8 |
SSH into VTC VM using the IP address, administrative username/password given in the setup process (not vts-admin user). |
Installing VTC VM - Manual Configuration using VNC
If the server where VTC is to be installed resides on a remote location with network latency or low bandwidth, you may want to opt for the use of VNC in order to gain graphical console access to the VTC VM, and manually configure the VM. To do this:
Procedure
Step 1 |
Connect to the controller node via SSH, and copy the vtc.qcow2 file to /var/lib/libvirt/images/ folder. |
||
Step 2 |
Copy the vtc.sample.xml file to your controller. Modify it as per your setup. A sample XML file is available at Sample XML File—VTC Installation. |
||
Step 3 |
Replace the following sections of the vtc.sample.xml file:
with the following:
|
||
Step 4 |
Create the VTC VM using following command:
You should now be able to use a VNC client to connect to the graphics console of the VTC VM to continue with the setup process. |
||
Step 5 |
Enter the following:
VTC VM reboots at this time. Wait for two minutes for the VTC VM to be up. You can ping the IP address given for VTC VM in the setup process to verify whether the VTC VM is up. |
||
Step 6 |
SSH into VTC VM using the IP address, administrative username/password given in the setup process (not vts-admin user). |
Installing OpenStack Plugin
The OpenStack plugin gets installed when you register the VMM from the Cisco VTS GUI. See Registering OpenStack VMM for details.
This is applicable when Admin has selected Yes to the Question "Do you want VTS to install VMM plugin components?", in VMM Page of Cisco VTS UI. If the admin selected No then plugin is not installed, and the installation of plugin needs to be done manually on OpenStack Controllers.
Note |
This procedure is supported only for OpenStack Newton. |
Registering OpenStack VMM
You can register the OpenStack VMM using the Cisco VTS GUI.
If you opt for the guided set up using the Setup wizard, VMM registration is done as part of the wizard flow. See the Getting Started with Cisco Virtual Topology System chapter in the Cisco VTS User Guide for details.
If you are not using the Setup wizard, you can register the VMM using the Administration > Virtual Machine Manager UI.
Note |
If you install an unsupported OpenStack plugin version, you might encounter errors after installation. We recommend that you review the Supported Virtual Machine Managers section before you install the OpenStack plugin. |
Procedure
Step 1 |
Go to Administration > Virtual Machine Manager. |
||
Step 2 |
Click the Add (+) button. The Register VMM page is displayed. |
||
Step 3 |
Enter the VMM Details:
|
||
Step 4 |
Click Register. After the VMM is registered successfully, the Plugin sections open up. |
||
Step 5 |
For OpenStack:
|
Installing Host Agent
You can use the Host Agent while specifying the Virtual Switch type, in Host Inventory.
Note |
After the installation of the Host Agent if neutron-vts-agent service is down on the compute host, check whether the compute host has Python module pycrypto installed. If it does not exist, install this module and restart the neutron-vts-agent. |
Procedure
Step 1 |
Go to . The Inventory / Host Inventory page appears. The Host Inventory page has two tabs—Virtual Servers and Baremetals. By default, the page displays Virtual Server details. |
||
Step 2 |
To view host details on Virtual Servers, select the VMM from the Select VMM drop-down, and select the device from the Select Device drop-down list. The following details are displayed:
|
||
Step 3 |
Enter the following host details, while adding a new host or while editing the host:
|
||
Step 4 |
Enter the following host details, while adding a Baremetal.
|
||
Step 5 |
Click Save. After the installation is complete you can see the green check button under Installation Status.
|
||
Step 6 |
Specify the physnet type. This is mandatory. You can find this using ovs bridge #sudo ovs-vsctl show | more. By default, it is tenant. |
||
Step 7 |
Log in to the compute and check the service is up and running.
|