Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Vmware Powercli import-vapp command fails with an "internal server error"

Posted on 2016-07-19
5
Medium Priority
?
173 Views
Last Modified: 2016-07-31
Hi.

I exported my 3 templates from my Vcenter server to my local disk using the OVA format (one single file).

Using the Vcenter client, I can re-import my 3 templates.

However , when i use the powercli command "import-vapp" to re-import my "windows" template again, it fails with the following error:

Import-vApp : 19-7-2016 14:15:20    Import-VApp        Error while uploading virtual disks. (InternalServerError: Internal Server Error)
+ Import-vApp -Source  "<template path>"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Import-VApp], ViError
    + FullyQualifiedErrorId : ViCore_VappServiceImpl_ImportVApp_DiskUploadError,VMware.VimAutomation.ViCore.Cmdlets.Commands.ImportVApp

The windows template uses 2 disks.
- One system disk of 40Gb. (C:\)
- One data disk of 10 GB. (D:\)

As a test I deleted the "system" (C:\) disk from the template, exported again and re-tried the import.
I was able to import successfully re-import the "windows" template after deleting the "system" (C:\) disk

The 2 other "Centos" templates are imported successfully using the "import-vapp" powercli command.

In the end, i'm trying to sync all my Vmware templates accross several Vcenter environments.

Hope someone can help me.
Thanks.
0
Comment
Question by:Member_2_7966454
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 41719164
Can you list the command you used?
0
 

Expert Comment

by:VMBourne
ID: 41719193
0
 

Author Comment

by:Member_2_7966454
ID: 41719233
Hi. Thanks for your reply.

The command I use is:

Import-vApp -Source  "<path\filename.OVA>" -VMHost <fqdn esx name> -Name "<new template name>" -RunAsync:$False -confirm:$false -Datastore "<datastore to deploy to>"

The template is configured with an VMXnet3 adapter.

We run ESX 5.1.
Also powercli is version 5.1
I exported the template as an OVF now, and the import is (still) running now.
0
 

Accepted Solution

by:
Member_2_7966454 earned 0 total points
ID: 41719331
Hi .

The OVF import worked.
Switching to the OVF format.

Thanks
0
 

Author Closing Comment

by:Member_2_7966454
ID: 41736363
The OVF import worked.
Switching to the OVF format.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

August and September have been big months for VMware—from VMworld last month to our new Course of the Month in VMware Professional - Data Center Virtualization. We reached out to Andrew Hancock, resident VMware vExpert, to have a more in-depth discu…
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question