Deploying an OVF/OVA file to a remote ESXi server
- I am trying to deploy an OVF/OVA file to a remote ESXi server.
- I want to do this from the command line.
- I have written a simple batch file which deploys the ovf using ovftool.exe.
Here is my batch file:
@echo off
CLS
set OVF_COMMAND="C:\Program Files (x86)\VMware\VMwareWorkstation\OVFTool\ovftool.exe"
set OVF_DEPLOY_OFF=ovftool
IF NOT EXIST %OVF_COMMAND% (
@echo powershell does not exists at:
@echo %OVF_COMMAND%
pause
)
@echo START OF THE BATCH SCRIPT
@echo ###############**strong text**########################################################
%OVF_DEPLOY_OFF% --noSSLVerify --disableVerification --skipManifestGeneration C:\Newfolder\vAppTS2\vAppTS2.ovf vi://administrator:jim@141.192.91.124/nrtms-training/host/141.192.91.9/
@echo #######################################################################
This works fine, but it is too slow. The OVF file comprises of one vApp with one VM. When all will be done the vApp will contain about 9 VMs. It takes about 20 minutes to deploy the the current vApp which contains only one VM. I cannot imagine how long it will take to deploy a vApp with 9 VMs. Is it a way to make it faster? Cheers.