Uploading the vSRX VNF Image for a Centralized Deployment
The Contrail Service Orchestration (CSO) installer places
the vSRX image in the /var/www/html/csp_components directory on the installer virtual machine (VM) during the installation
process. You must copy this image from the installer VM to the Contrail
controller node and upload it to make the vSRX virtualized
network function (VNF) available in a centralized
deployment.
To upload the vSRX VNF image for a centralized deployment:
- Log in to the installer VM as root.
- Set up an SSH session as root to the Contrail controller node.
- Copy the
vSRX-imgfile from the installer VM to any directory on the Contrail controller node.For example, if the IP address of the Contrail controller node is 192.0.2.1, and you want to copy the file to the
rootdirectory:root@host:/# scp /var/www/html/csp_components/vSRX-img root@192.0.2.1:root - Check whether you have an OpenStack flavor with the following
specification on the Contrail controller node.
2 vCPUs
4 GB RAM
40 GB hard disk storage
For example:
root@host:/#openstack flavor listID Name Memory_MB Disk Ephemeral Swap VCPUs Is_Public 1 m1.tiny 512 0 0 1 True 2 m1.small 2048 20 0 1 True 3 m1.medium 4096 40 0 2 True 4 m1.large 8192 80 0 4 True 42 m1.nano 64 0 0 1 True 5 m1.xlarge 16384 160 0 8 True 84 m1.micro 128 0 0 1 True
If you do not have a flavor with the required specification, create one.
For example:
root@host:/# openstack flavor create m1.vsrx_flavor --ram 4096 --disk 40 --vcpus 2 - Access the directory where you copied the image on the
Contrail controller node, and upload it into the Glance software.
For example:
root@host:/# cd rootroot@host:/root# glance image-create --name vSRX-img --is-public True --container-format bare --disk-format qcow2 < vSRX-imgNote You must name the image
vSRX-imgto ensure that the virtual infrastructure manager (VIM) can instantiate the VNF.
To verify that you can manually instantiate the vSRX VNF:
- Access the OpenStack dashboard.
- Create an instance of the vSRX image.
- Select Projects > Instances.
The status of the instance should be spawning or running. You can click the instance to see its console.
If you need to investigate the image further, the default username for the vSRX-img package is root and the password is passw0rd.
