ADC

Provision the Citrix ADC VPX instance by using the virsh program

The virsh program 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. The virsh program is also useful for scripting VM Guest management operations.

To provision Citrix ADC VPX by using the virsh program, follow these steps:

  1. Use the tar command to untar the the Citrix ADC VPX package. The NSVPX-KVM-*_nc.tgz package contains 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.
    • sourcefile— 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 < /名称> < mac地址= ' 52:54:00:29:74:b3’/>

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

    Example:<名称> NetScaler-VPX < /名称> < mac地址= ' 52:54:00:29:74:b3’/>

  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 as ethx and mode as bridge Model type as virtio

          

    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: virsh define -NSVPX-KVM-*_nc.xml Example:

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

Add additional interfaces to Citrix ADC VPX instance using virsh program

在你提供的Citrix ADC VPX KVM, you can add additional interfaces.

To add additional 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: virsh edit [ ]
  3. 在<域名> -NSVPX-KVM - * _nc.xml文件,动作d 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 as virtio

      Example:

      Mode: MacVTap Pass-through

      Set target interface as ethx, Mode as bridge, and model type as virtio

           

      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 as virtio

      Example: Bridge Mode

           
Provision the Citrix ADC VPX instance by using the virsh program