VMware Cloud Community
jmdunlap
Contributor
Contributor

Import-VApp command hangs

I am trying to write a script that configures vSphere hosts before they are shipped out to remote sites.  One of the actions I am try to accomplish is importing and ovf file to the host. 

The problem I am having is the process jumps to 10% in powershell and hangs, if you look in the vSphere client it is at 0% and just sits there.

The code I am using is...

$ip_addr = "10.10.10.10"

$datastore_name = "host1:local"

$template_location = "C:\Scripts\W2K8R2SP1.40GB\W2K8R2SP1.40GB.ovf"

Import-VApp -Source $template_location -VMHost $ip_addr -Datastore $datastore_name

If I import the file manually through the client it works fine.  I am running powercli version 5.1 release 1 build 793510.

Thanks in advance for your help.

Jon

Reply
0 Kudos
2 Replies
jmdunlap
Contributor
Contributor

So a bit more information...

I let it hang for about an hour and it eventually finished.  But, the progress bar never started (unless it was after I got up around 30 minutes into it).

So, it is working.  Still odd that it will not show a progress.

Reply
0 Kudos
internetrush
Contributor
Contributor

This is indeed the case from what ive found as well.

Reply
0 Kudos