Create vApp VM

You can create a vApp VM using the following commands:

Single Network vApp Image

This command creates a vApp instance in single network mode with the network label WAN-Network. It uses the given perscode and automatically powers on. Once powered on, it gets personalized. You can see a progress percentage before it says Completed successfully. 
# ovftool --acceptAllEulas --name=Scanner-vapp --X:logFile=ovftool-log.txt --X:logLevel=verbose --powerOn -dm=thin --datastore=datastore1 --net:"LAN=LAN-Network" --net:"WAN=WAN-Network" --prop:Personalization_Code=12345678901234 qVSA-1.2.3-4.vApp.ova vi://[user[:pass]@]vCenter FQDN|IP/location/folder/host/ESXi1.qualys.com

Opening OVA source: qVSA-1.2.3-4.vApp.ova

The manifest validates
Opening VI target: vi://[user[:pass]@]vCenter FQDN|IP/location/folder/host/ESXi1.qualys.com
Deploying to VI: vi://[user[:pass]@]vCenter FQDN|IP/location/folder/host/ESXi1.qualys.com
Transfer Completed
Powering on VM: Scanner-vapp
Task Completed
Completed successfully
~]#

Split Network vApp Instance

This command creates a vApp instance in split network mode. It uses the given perscode and automatically powers on. Once powered on, it goes ahead and personalizes it right away. You can see a progress percentage before it says Completed successfully.
# ovftool --acceptAllEulas --name=Scanner-vApp_split --X:logFile=ovftool-log.txt --X:logLevel=verbose --powerOn -dm=thin --datastore=datastore1 --net:"LAN=LAN-Network" --net:"WAN=WAN-Network" --prop:Enable_WAN_Interface=True --prop:Personalization_Code=12345678901234 qVSA.1.2.3-4.vApp.ova vi://[user[:pass]@]vCenter FQDN|IP/location/folder/host/ESXi1.qualys.com
Opening OVA source: qVSA.1.2.3-4.vApp.ova

The manifest validates
Opening VI target: vi://[user[:pass]@]vCenter FQDN|IP/location/folder/host/ESXi1.qualys.com
Deploying to VI: vi://[user[:pass]@]vCenter FQDN|IP/location/folder/host/ESXi1.qualys.com
Transfer Completed
Powering on VM: Scanner-vApp_split
Task Completed
Completed successfully

IPv6-only Mode with Automatic IP Address

Use the following command in IPv6-only mode with automatic IP address:

ovftool --acceptAllEulas --overwrite \
--name=vscanner-auto-ipv6 \
--X:logFile=ovftool-log.txt \
--X:logLevel=verbose \
--powerOn \
-dm=thin \
--datastore=Datastore_Name\
--net:"LAN=LAN-Network" \
--net:"WAN=LAN-Network" \
--prop:IPV6_ONLY=True \
--prop:Personalization_Code=99999999999999 \
--prop:Enable_WAN_Interface=False \
--prop:HTTP_Proxy='user:pass@[b9bb:ac51:dee7:0c7c:5696:a6a4:edff:771a]:443' \
qVSA.1.2.3-4.vApp.ova \
vi://user:pass@vcenter-host/location/host/ESXi_host/

 

 --prop:HTTP_Proxy is optional

IPv6-only Mode with Static IPv6 Address 

Use the following command in IPv6-only mode with static IPv6 address:

ovftool --acceptAllEulas --overwrite \
--name=vscanner-ipv6-static \
--X:logFile=ovftool-log.txt \
--X:logLevel=verbose \
--powerOn \
-dm=thin \
--datastore=Datastore_Name \
--net:"LAN=LAN-Network" \
--net:"WAN=LAN-Network" \
--prop:IPV6_ONLY=True \
--prop:LAN_IP= 2001:a05e:62c3:50f7:edea:afa9:547a:2167 \
--prop:LAN_Gateway=fe80::250:56ff:feb3:a167 \
--prop:LAN_DNS_Servers="2001:df70:7aa7:77fc::49b3 2001:8dca:c0b2:44b6::30aa " \
--prop:Personalization_Code=99999999999999 \
--prop:Enable_WAN_Interface=False \
--prop:HTTP_Proxy='user:pass@[b9bb:ac51:dee7:0c7c:5696:a6a4:edff:771a]:443' \
qVSA.1.2.3-4.vApp.ova \
vi://user:pass@vcenter-host/location/host/ESXi_host/

 --prop:HTTP_Proxy is optional

Next Step

Create vApp Instance with User Data