How to add Citrix NetScaler VPX Platinum to VIRL

    Summary:
    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

    Networking Requirements
    NetScaler VPX supports only virtIO para-virtualized network interfaces and requires a minimum of 2 vcpus and 4Gb of ram.

    Solution:
    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.

    {
    "dynamic-subtypes": [
    {
      "hw_vcpus": 2,
      "plugin_base": "generic",
      "baseline_flavor": "",
      "interface_first": 1,
      "config_file": "",
      "interface_range": 4,
      "interface_management": "0/1",
      "hw_vm_extra": "",
      "hw_ram": 4096,
      "plugin_desc": "Netscaler",
      "cli_serial": 1,
      "plugin_name": "NS",
      "gui_visible": true,
      "interface_pattern": "1/{0}",
      "baseline_image": "",
      "hw_vif_model": "virtio",
      "config_iso_level": 4
    }
    ]
    }

    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

    5) Open a new topology and drag the NS node from the Palette.

    6) Click on the NS node/object and make sure you have a VM Image assigned as below, your number will be different.