VMware Cloud Community
uday1kiran
Contributor
Contributor

New-VM command not working for cloning

I have installed a windows 10 machine in our esx server manually.

When I am trying to clone it, I am getting below error.

$myDatastore = Get-Datastore -Name DataStore01

$vmhost = Get-VMHost

PS C:\Windows\system32> New-VM -Name MyVM2 -VM $win10 -Datastore $myDatastore -VMHost $vmhost

New-VM : 25-11-2019 17:38:40    New-VM        The operation for the entity "win10build" failed with the following

message: "The operation is not supported on the object."

At line:1 char:1

+ New-VM -Name MyVM2 -VM $win10 -Datastore $myDatastore -VMHost $vmhost

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

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

    + FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation

   .ViCore.Cmdlets.Commands.NewVM

I tried with snapshot,without snapshot, with poweredon,without poweredon

All same output

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

Are you connected to a vCenter?

You can not clone VMs on free ESXI node.


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

Reply
0 Kudos
uday1kiran
Contributor
Contributor

It is a licensed one.

Reply
0 Kudos
LucD
Leadership
Leadership

Which PowerCLI version are you using?
Can you do

Get-Module -Name VMware* -ListAvailable


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

Reply
0 Kudos