Member_2_7966454
asked on
Vmware Powercli import-vapp command fails with an "internal server error"
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_Imp ortVApp_Di skUploadEr ror,VMware .VimAutoma tion.ViCor e.Cmdlets. Commands.I mportVApp
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.
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_Imp
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.
Can you list the command you used?
What is the network adapter type ? if its e1000 please try this
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2041682
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2041682
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The OVF import worked.
Switching to the OVF format.
Switching to the OVF format.