Hi Folks,
I'm trying to deploy OVA using Import-Vapp cmdlet, logged in to Vcenter. The OVA is located in a share point.
$ovapath = "\\192.168.101.109\Amp-Ovf\VCE-W2K12R2-STD-Template_1805.ova"
Import-VApp -Name testvm -VMHost 10.12.202.146 -Source $ovapath -Datastore "MGMT-DS-04" -DiskStorageFormat thin -Ovfconfiguration $ovaconfig -Force -RunAsync:$true
The command is executing without error. But when it comes to VC, the VM deploying steps are executing after some steps the VM is getting Destroy automatically. Snapshot of VC task is attached.
Im using Powercli 10.1 also have Powercli 6.5 Modules. Powershell version is 5.1.
Any help will be appreciated. TIA.
Try increasing the log-level to see what is happening.
See also Quick Tip – Useful ovftool debugging options
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I'm not very experienced with ovftool.exe, but the manual does state "However, if you are deploying with the ovftool command from an ESXi host, you have to ‘inject’ the parameters into the resulting VM, when it is powered on."
Not sure how that 'inject' is done though.
Perhaps the bypass in issue #20 for photon-controller can be used.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference