I just want to clone a LINUX vm with my specific CustomizationSpec,in powerCLI.
so I use command "New-VM -Name myClient01 -VM myTemplate1 -CustomizationSpec spc"
but the result is shown as following:
New-VM : 2017/12/24 16:34:53 New-VM
Required property hostName is missing from data object of type CustomizationLinuxPrep
while parsing serialized DataObject of type vim.vm.Customization.LinuxPrep
at line 1, column 623
while parsing property "identity" of static type Customization.IdentitySettings
while parsing serialized DataObject of type vim.vm.Customization..Specification
at line 1, column 560
while parsing property "Customization" of static type CustomizationSpec
while parsing serialized DataObject of type vim.vm.CloneSpec
at line 1, column 350
while parsing call information for method CloneVM_Task
at line 1, column 218
while parsing SOAP body
at line 1, column 207
while parsing SOAP enevlope
at line 1, column 38
while parsing HTTP request for method clone
on object or type vim.VirtualMachine
at line 1, column 0
Hopefully someone can help me out!
thanks in advance!