I am working on moving about 40 vms from one host to another one. There is a resource pool named "desktops" on both vmware host.
I can use this command to move the vm from one host to another. But I don't know how to move the vm to the resource pool on the destination host.
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-VM -Name LACT243 | Move-VM -Destination ca-vmhost11.lacare.org -RunAsync
Name State % Complete Start Time Finish Time
---- ----- ---------- ---------- -----------
RelocateVM_Task Running 0 02:14:47 PM
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>
Is there a way I can designate the resource pool on a host on PowerCLI 6.0. like ca-vmhost11.lacare.org:resourcepoolname?
I am new to powerCLI, please advise, thank you.
Name State % Complete Start Time Finish Time
---- ----- ---------- ---------- -----------
RelocateVM_Task Running 0 02:14:47 PM
PowerCLI C:\Program Files (x86)\VMware\Infrastructur
Move-VM : 4/1/2015 2:21:56 PM Move-VM The specified parameter 'Destination' expects a single value, but your name criteria 'Desktops' corresponds to multiple values.
At line:1 char:24
+ Get-VM -Name LACT246 | Move-VM -Destination Desktops
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (System.Collecti...dObject
+ FullyQualifiedErrorId : Core_ObnSelector_SelectObj
Move-VM : 4/1/2015 2:21:56 PM Move-VM VIContainer parameter: Could not find any of the objects specified by name.
At line:1 char:24
+ Get-VM -Name LACT246 | Move-VM -Destination Desktops
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (VMware.VimAutom...ner Destination:RuntimePropert
+ FullyQualifiedErrorId : Core_ObnSelector_SetNewPar
Move-VM : 4/1/2015 2:21:57 PM Move-VM Access to resource settings on the host is restricted to the server that is managing it: '10.50.240.9'.
At line:1 char:24
+ Get-VM -Name LACT246 | Move-VM -Destination Desktops
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Move-VM], HostAccessRestrictedToMana
+ FullyQualifiedErrorId : Client20_VMServiceImpl_Mov
PowerCLI C:\Program Files (x86)\VMware\Infrastructur