ADC

Provision the Citrix ADC VPX instance by using the virsh program

Thevirshprogram is a command line tool for managing VM Guests. Its functionality is similar to that of Virtual Machine Manager. It enables you to change a VM Guest’s status (start, stop, pause, and so on), to set up new Guests and devices, and to edit existing configurations. Thevirshprogram is also useful for scripting VM Guest management operations.

To provision Citrix ADC VPX by using thevirshprogram, follow these steps:

  1. Use the tar command to untar the Citrix ADC VPX package. The NSVPX-KVM-*_nc.tgz package contains the following components:

    • The Domain XML file specifying VPX attributes [NSVPX-KVM-*_nc.xml]
    • Check sum of NS-VM Disk Image [Checksum.txt]
    • NS-VM Disk Image [NSVPX-KVM-*_nc.raw]

    Example:

    tar -xvzf NSVPX-KVM-10.1-117_nc.tgz NSVPX-KVM-10.1-117_nc.xml NSVPX-KVM-10.1-117_nc.raw checksum.txt 
  2. Copy the NSVPX-KVM-*_nc.xml XML file to a file named -NSVPX-KVM-*_nc.xml. The is also the name of the virtual machine. Example:

    cp NSVPX-KVM-10.1-117_nc.xml NetScaler-VPX-NSVPX-KVM-10.1-117_nc.xml 
  3. Edit the -NSVPX-KVM-*_nc.xml file to specify the following parameters:

    • name— Specify the name.
    • Mac— Specify the MAC address. Note: The domain name and the MAC address have to be unique.
    • source file— Specify the absolute disk-image source path. The file path has to be absolute. You can specify the path of the RAW image file or a QCOW2 image file.

      If you want to specify a RAW image file, specify the disk image source path as shown in the following example:

      Example:

      NetScaler-VPX   

      Specify the absolute QCOW2 disk-image source path and define the driver type asqcow2, as shown in the following example:

      Example:

      NetScaler-VPX   * 
  4. Edit the -NSVPX-KVM-*_nc.xml file to configure the networking details:

    • source dev— specify the interface.
    • mode— specify the mode. The default interface isMacvtap Bridge.

    Example: Mode: MacVTap Bridge Set target interface asethxand mode as bridge Model type asvirtio

          

    Here, eth0 is the physical interface attached to the VM.

  5. Define the VM attributes in the -NSVPX-KVM-*_nc.xml file by using the following command:virshdefine -NSVPX-KVM-*_nc.xml Example:

    virsh define NS-VPX-NSVPX-KVM-10.1-117_nc.xml 
  6. Start the VM by entering the following command:virshstart [ ] Example:
    virsh start NetScaler-VPX 
  7. Connect the Guest VM through the consolevirshconsole [ ] Example:
    virsh console NetScaler-VPX 

Add more interfaces to Citrix ADC VPX instance usingvirshprogram

After you have provisioned the Citrix ADC VPX on KVM, you can add additional interfaces.

To add more interfaces, follow these steps:

  1. Shut down the Citrix ADC VPX instance running on the KVM.
  2. Edit the -NSVPX-KVM-*_nc.xml file using the command:virshedit [ ]
  3. In the -NSVPX-KVM-*_nc.xml file, append the following parameters:

    1. For MacVTap

      • Interface type— Specify the interface type as ‘direct’.
      • MAC address— Specify the MAC address and make sure the MAC address is unique across the interfaces.
      • source dev— Specify the interface name.
      • mode— Specify the mode. The modes supported are - Bridge, VEPA, Private, and Pass-through
      • model type— Specify the model type asvirtio

      Example:

      Mode: MacVTap Pass-through

      Set target interface asethx, Mode as bridge, and model type asvirtio

           

      Here eth1 is the physical interface attached to the VM.

    2. For Bridge Mode

      Note: Make sure that you have configured a Linux bridge in the KVM host, bound the physical interface to the bridge, and put the bridge in the UP state.

      • Interface type— Specify the interface type as ‘bridge’.
      • MAC address— Specify the MAC address and make sure the MAC address is unique across the interfaces.
      • source bridge— Specify the bridge name.
      • model type— Specify the model type asvirtio

      Example: Bridge Mode

      <接口类型=“桥”> < = ' 52:54:00:2 mac地址d:43:a4'/>    
Provision the Citrix ADC VPX instance by using the virsh program