VMware Cloud Community
prabhuguru21
Contributor
Contributor

Deploying VM using Import-Vapp - Gives Error

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.

0 Kudos
22 Replies
LucD
Leadership
Leadership

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

0 Kudos
prabhuguru21
Contributor
Contributor

Can you have a look on the log please.  The specified values are added into the importspec section. Still it is reflecting inside the VM

0 Kudos
LucD
Leadership
Leadership

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

0 Kudos