Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178257

New-VM and ContentLibraryItem not working (Could not convert field 'error' of structure 'com.vmware.vcenter.ovf.library_item.deployment_result' error.)

$
0
0

Hi,

 

I'm writing a script that should deploy VM's from our content libraries. But so far my tests fail. I always get an Could not convert field 'error' of structure 'com.vmware.vcenter.ovf.library_item.deployment_result'  error.

 

 

 

New release: PowerCLI 6.3 R1–Download it today! - VMware PowerCLI Blog - VMware Blogs

vSphere 6.0 Documentation Center

 

Example from above:

 

 

Get-ContentLibraryItem -Name TTYLinux | New-VM -Datastore datastore1 -VMHost 10.160.74.38

 

 

Adjusted to my environment:

 

PS C:\Users\de2rfg> Get-ContentLibraryItem -Name RHEL6 | New-VM -Datastore C23_Tiering_LUN034 -VMHost sdev2310.xxxx.xx

New-VM : 11.08.2016 08:39:57    New-VM        Could not convert field 'error' of structure 'com.vmware.vcenter.ovf.library_item.deployment_result'  

At line:1 char:38

+ Get-ContentLibraryItem -Name RHEL6 | New-VM -Datastore C23_Tiering_LUN034 -VMHos ...

+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [New-VM], ViError

    + FullyQualifiedErrorId : VICore_VMServiceImpl_DeployFromLibraryItem_Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

 

I though this would be because of the missing name of the new VM, but it's not working either

 

PS C:\Users\de2rfg> Get-ContentLibraryItem -Name RHEL6 | New-VM -Name TestCL -Datastore C23_Tiering_LUN034 -VMHost sdev2310.xxxx.xx

New-VM : 11.08.2016 08:42:20    New-VM        Could not convert field 'error' of structure 'com.vmware.vcenter.ovf.library_item.deployment_result'  

At line:1 char:38

+ Get-ContentLibraryItem -Name RHEL6 | New-VM -Name TestCL -Datastore C23_Tiering_ ...

+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [New-VM], ViError

    + FullyQualifiedErrorId : VICore_VMServiceImpl_DeployFromLibraryItem_Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

 

 

get-datastore C23_Tiering_LUN034

Name                               FreeSpaceGB      CapacityGB

----                               -----------      ----------

C23_Tiering_LUN034                   1.448,211       4.095,750

 

 

Get-ContentLibraryItem -Name RHEL6

Name                           ContentLibrary                 ItemType                       SizeGB       

----                           --------------                 --------                       ------       

RHEL6                          Global                         ovf                            0,000  

 

 

PowerCLI Version

----------------

   VMware vSphere PowerCLI 6.3 Release 1 build 3737840

---------------

Component Versions

---------------

   VMware Cloud Infrastructure Suite PowerCLI Component 6.3 build 3709081

   VMWare AutoDeploy PowerCLI Component 6.0 build 3736841

   VMWare ImageBuilder PowerCLI Component 6.0 build 3736841

   VMware vSphere PowerCLI Component 6.3 build 3709081

   VMware vSphere Update Manager PowerCLI 6.0 build 2503190

   VMware VDS PowerCLI Component 6.3 build 3709081


Viewing all articles
Browse latest Browse all 178257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>