Create vApp Instance with User Data

You can use the USER_DATA option to customize your scanner configuration. When you launch an instance, you can store parameters such as  PERSCODE or PROXY_URL in a text file. Each parameter in the file must be on a separate line. 

Here is an example of a user_data.txt file: 
PERSCODE=2034567890123
PROXY_URL=proxy_user:proxy_pass@10.15.20.30:8080

  • The PREFER_USERDATA option in the following command should be set to 'True' if you do not want changes done via the scanner console to override the initial scanner's configuration passed as user data.
  • To encode the user-data file to base64, use the 'openssl base64 -A' option.

Command for encoding the user-data file:
ovftool --acceptAllEulas --name=qualys-scanner --X:logFile=qualys-scanner-log.txt --X:logLevel=verbose --powerOn -dm=thin --datastore=Datastore_Name --net:"LAN=LAN-Network" --net:"WAN=WAN-Network" --prop:USER_DATA=$(<user_data.txt openssl base64 -A) --prop:PREFER_USERDATA=True qVSA-1.2.3-4.vApp.ova vi://[user[:pass]@]vCenter FQDN|IP/location/folder/host/ESXi1.qualys.com 

 

Related Topic

Use VMware OVF Tool for vApp