Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Powercli migrate VM host to host with Fault Tolerance activated

$
0
0

Hi.

 

I have a vm with FT activated. With PowerCli I want to make a script for migrate the vm host to host. The primary VM no problem, but the second returns error.

 

Example:

 

VM= test3

 

PowerCLI C:\> Get-VM test3 | ft -Property ID -AutoSize

 

Id

--

VirtualMachine-vm-368 (primary)

VirtualMachine-vm-331 (secondary)

 

Primary runs on esxi1. I execute this command:

 

get-vm -ID VirtualMachine-vm-368 | move-vm -destination esxi1.test.local

 

The VM migrate without problem.

 

Secondary runs on esxi2. I execute this command:

 

get-vm -ID VirtualMachine-vm-331 | move-vm -destination esxi3.test.local

 

The task gets this error:

 

move-vm : XXXXXXXXXXXXX   Move-VM The operation is not supported on the object.

In line: 1 Charachter: 36

+ ... t-vm -ID VirtualMachine-vm-368 | move-vm -destination esxi4.isc.local

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

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

    + FullyQualifiedErrorId : Client20_VMServiceImpl_RelocateVM_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.MoveVM

 

Any ideas??

 

Best regards


Viewing all articles
Browse latest Browse all 175326

Trending Articles



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