Deploying CVP on KVM
Once you complete these tasks, you can configure the CVP VM.
Downloading and extracting the CVP KVM tarball (.tgz archive)
- The CVP VM
- Disk images for the CVP application
- The files used to configure CVP VM.
You download the tarball to the host server that is configured for KVM. The files contained in the .tgz archive include:
Filename | Description | |
---|---|---|
1 | disk1.qcow2 | VM disk image for the CVP application. |
2 | disk2.qcow2 | Data disk image for the CVP application. |
3 | cvpTemplate.xml | A template for creating the XML file for libvirt domain specification. |
4 | generateXmlForKvm.py | A script for generating the CVP VM definition XML based on the XML template. |
5 | createNwBridges.py | A script for creating the network interfaces for the CVP VM. |
Complete the following steps to download and extract the CVP VM .tgz archive:
Creating Virtual Bridge and Network Interface Cards (NIC)
The second task in deploying CVP for KVM involves creating the bridges and interfaces that provide network connectivity for the CVP VM. You use the CreateNwBridges.py script you extracted in the previous task to create the required bridges and interfaces.
- Two interfaces (the cluster bridge interface and the device bridge interface).
- Single interface (the device bridge interface).
Complete the following steps to create the network interfaces for CVP KVM connectivity:
Generating the XML file that defines the CVP VM
The third task in deploying CVP for KVM involves generating the XML file that you use to define the CVP VM. You use generateXmlForKvm.py script and the cvpTemplate.xml file you extracted previously to generate the XML file you use to define the CVP VM.
The cvpTemplate.xml file is a template that defines wildcard values that are filled by the other parameters that are specified when you execute the script.
Complete the following steps to generate the XML file:
Defining and Launching the CVP VM
The last task in deploying CVP for KVM is to define and launch the CVP VM. You use the XML file you generated in the previous task to define the CVP VM.
Complete the following steps to define and launch the CVP VM: