ADC

Apply Citrix ADC VPX configurations at the first boot of the Citrix ADC appliance on VMware ESX hypervisor

You can apply the Citrix ADC VPX configurations during the first boot of the Citrix ADC appliance on the VMware ESX hypervisor. Therefore in certain cases, a specific setup or VPX instance is brought up in much lesser time.

For more information on Preboot user data and its format, seeApply Citrix ADC VPX configurations at the first boot of the Citrix ADC appliance in cloud.

Note:

To bootstrap using preboot user data in ESX, default gateway config must be passed insection. For more information on the content of thetag, seeSample--section.

Samplesection:

  add route 0.0.0.0 0.0.0.0 10.102.38.1   YES YES   eth0   10.102.38.216   255.255.255.0     

How to provide preboot user data on ESX hypervisor

You can provide preboot user data on ESX hypervisor in the following two ways:

  • Using CD/DVD ISO
  • Using OVF Property

Provide user data using CD/DVD ISO

You can use VMware vSphere client to inject user data into the VM as an ISO image using the CD/DVD drive.

Follow these steps to provide user data using CD/DVD ISO:

  1. Create a file with file nameuserdatathat contains the preboot user data content. For more information on the content of thetag, see Samplesection.

    Note: File name must be strictly used asuserdata.

  2. Store theuserdatafile in a folder, and build an ISO image using the folder.

    You can build an ISO image withuserdatafile by the following two methods:

    • Using any image processing tool such as PowerISO.
    • Usingmkisofscommand in Linux.

    The following sample configuration shows how to generate an ISO image using themkisofscommand in Linux.

    root@ubuntu: ~ /赛/ 14 jul2021 #总4 drwxr-x ls - lr-x 2 root root 4096 Jul 14 12:32 esx_preboot_userdata root@ubuntu:~/sai/14jul2021# root@ubuntu:~/sai/14jul2021# ls -l esx_preboot_userdata/total 4 -rw-r--r-- 1 root root 3016 Jul 14 12:32 userdata root@ubuntu:~/sai/14jul2021# mkisofs -o esx_preboot_userdata.iso ./esx_preboot_userdata I: -input-charset not specified, using utf-8 (detected in locale settings) Total translation table size: 0 Total rockridge attributes bytes: 0 Total directory bytes: 112 Path table size(bytes): 10 Max brk space used 0 176 extents written (0 MB) root@ubuntu:~/sai/14jul2021# ls -lh total 356K drwxr-xr-x 2 root root 4.0K Jul 14 12:32 esx_preboot_userdata -rw-r--r-- 1 root root 352K Jul 14 12:34 esx_preboot_userdata.iso root@ubuntu:~/sai# ls preboot_userdata_155_193 userdata root@ubuntu:~/sai# mkisofs -o preboot_userdata_155_193.iso ./preboot_userdata_155_193 I: -input-charset not specified, using utf-8 (detected in locale settings) Total translation table size: 0 Total rockridge attributes bytes: 0 Total directory bytes: 112 Path table size(bytes): 10 Max brk space used 0 176 extents written (0 MB) 
  3. Provision the Citrix ADC VPX instance using standard deployment process to create the VM. But do not power on the VM automatically.

    Standard VM deployment

  4. After the VM is successfully created, attach the ISO file as CD/DVD drive to the VM.

    Attach CD DVD drive

  5. Navigate toNew CD/DVD Driveand chooseDatastore ISO filefrom the drop-down menu.

    Datastore ISO file

  6. Select a Datastore in the vSphere Client.

    Datastore in the vSphere Client

  7. Power on the VM.

Provide user data using OVF property

Follow these steps to provide user data using OVF property.

  1. Create a file with user data content.

    Preboot user data for ESX

  2. Encode the user data content with Base64 encoding. You can perform the Base64 encoding using the following two methods:

    • In Linux, use the following command:

      base64  >  

      Example:

      base64 esx_userdata.xml > esx_userdata_b64 

      Base64 encoded userdata

    • Use online tools to encode user data content, for example, Base64 Encode and Decode.

  3. Include aProductsection in the OVF template of a Citrix ADC VPX instance on ESX hypervisor.

    Sample Product section:

     Information about the installed software NSVPX-VSK Template Citrix m.giftsix.com  Preboot Userdata     Userdata for ESX VPX    
  4. Provide the base64 encoded user data as theovf:valueforguestinfo.userdataproperty in the Product section.

     Information about the installed software NSVPX-VSK Template Citrix m.giftsix.com  Preboot Userdata     Userdata for ESX VPX    
  5. Use the modified OVF template with Product section for the VM deployment.

    OVF template with Product section

Apply Citrix ADC VPX configurations at the first boot of the Citrix ADC appliance on VMware ESX hypervisor