Before starting, you will need to get a copy of the Citrix NetScaler VPX virtual machine; You can register for a 90 day trial on the Citrix site. http://www.citrix.com/products/netscaler-application-delivery-controller/try.html36
Once you have registered download the KVM image highlighted above.
Your 90 Day License key will also be displayed here.
You will need to decompress the tgz file. Note: Citrix have provided a RAW image and this expands to 20 Gigabytes.
The best way to do this is copy the file up to the VIRL server and run the following command:
qemu-img convert -f raw -O qcow2 NSVPX-KVM-10.5-55.8_nc.raw NSVPX-KVM-10.5-55.8_nc.qcow2
This will reduce the file size to 287Mb approx
NetScaler VPX supports only virtIO para-virtualized network interfaces and requires a minimum of 2 vcpus and 4Gb of ram.
To add the Citrix NetScaler VPX image into VIRL follow the steps.
1) Login to your User Workspace Management and select Subtypes from the menu.
2) Click the Import button located on the top right-hand side and paste in the following config.
Then click Import. This will ADD the new subtype to your existing list.
3) Now select Images from the menu and then click Add
Select the NS subtype and enter VPX for the Name/Version and enter 10.5 for the release, under Source select Local image file and click Browse and select your NSVPX-KVM-10.5-55.8_nc.qcow2 image file and click Create. After a few minutes you should see a message saying the Image has been created successfully.
4) Open VM Maestro and click File -> Preferences -> Node Subtypes and click the Fetch from Server button, then Apply and OK
6) Click on the NS node/object and make sure you have a VM Image assigned as below, your number will be different.
You should now see the image starting to bootup
The device boots up with a default ip address of 192.168.100.1 that we cannot use.
When the image has loaded you should be presented with a login prompt as below
login as nsroot
Now we need to assign a new management ip address, we are going to use the one that VIRL assigned at runtime.
At the NS command prompt type the following:
set ns config -ipaddress 172.16.1.233 -netmask 255.255.255.0 (requires a reboot)
save ns config
Answer Y to reload the device
The image can take 2 - 3 minutes to load maybe more so be patient. You shoud now see that the image is using the new ip address.
When the device has reloaded you should be able browse to your management ip address http://x.x.x.x
login as nsroot
Step 1 is now complete you now need to configure Step 2
Please refer to the Netscaler documentation for how to complete setup steps 2, 3 and 4
When all the steps are complete you can check your interafces are up and running under the configuration section.