VMware Cloud Community
bard_zhang
Contributor
Contributor

在使用powercli创建虚拟机制定“-DiskStorageFormat Thin” 提示一下错误,我的esxi和vcenter都是5.5版本

New-VM : 2017/9/20 9:16:15 New-VM

Required property datastore is missing from data object of type VirtualMachineRelocateSpecDiskLocator

while parsing serialized DataObject of type vim.vm.RelocateSpec.DiskLocator

at line 1, column 1082

while parsing property "disk" of static type ArrayOfVirtualMachineRelocateSpecDiskLocator

while parsing serialized DataObject of type vim.vm.RelocateSpec

at line 1, column 1025

while parsing property "location" of static type VirtualMachineRelocateSpec

while parsing serialized DataObject of type vim.vm.CloneSpec

at line 1, column 1014

while parsing property "cloneSpec" of static type VirtualMachineCloneSpec

while parsing serialized DataObject of type vim.storageDrs.StoragePlacementSpec

at line 1, column 324

while parsing call information for method RecommendDatastores

at line 1, column 218

while parsing SOAP body

at line 1, column 207

while parsing SOAP envelope

at line 1, column 38

while parsing HTTP request for method recommendDatastores

on object of type vim.StorageResourceManager

at line 1, column 0

所在位置 行:17 字符: 12

+            New-VM -Name $vm.name -OSCustomizationSpec $custSysprep  - ...

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

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

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

Tags (2)
0 Kudos
1 Reply
LucD
Leadership
Leadership

Can you post the code you are using?

The error message only shows part of the failing line.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos