fborges555
Enthusiast
Enthusiast

Move VMs

Jump to solution

Hi

I have the following structure :

DC

cluster A

      EXSi 1

                VM-test1   Datastore AA

                VM-test2   Datastore BB

     EXS  2

                VM   Datastore AA

                VM   Datastore BB

Cluster B

        ESXi 4      Datastore CC

Is it posible to Move vm-test1  from cluster A and datastore AA to cluster B and datastore CC, even though that the datastore are different in both cluster ? and if possible do I have to shutdown the vm?

Thanks

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

You are basically looking at an svMotion.

The Move-VM cmdlet has a Datastore parameter, that should be how you indicate the target datastore.

Something like

Get-VM -Name VM | Move-VM -Destination ESxi -Datastore cc

Note that there might be other Move-VM parameters that you need to provide.
Like for example the network.

To which portgroup(s) need the vNIC(s) be connected on the target ESXi node.


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

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership

Depends a bit on which vSphere version and which PowerCLI version you are using?


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

0 Kudos
IRIX201110141
Virtuoso
Virtuoso

Yes its possible if you meet the following requirements

  1. vSphere Std. or better licensing
  2. Clusters are using the same EVC level or ESX4 use an older CPU (depening on Spectre/Meltdown this can vary)

You have to select the VM, choose Migrate and select the 3rd. Option (Compute and Storage) to perform an enhanced Storage vMotion.

If not.... shutdown the VM and perform a Cold Migration.

Regards,
Joerg

0 Kudos
fborges555
Enthusiast
Enthusiast

L.

I am using Powercli 11

Vsphere. 6.0.0

I got this far

Get-VM -Name VM | Move-VM -Destination ESxi " is here where Datastore CC goes"

I am concern that datastore CC is not presented to the cluster A where the vms are housed

Thanks

0 Kudos
LucD
Leadership
Leadership

You are basically looking at an svMotion.

The Move-VM cmdlet has a Datastore parameter, that should be how you indicate the target datastore.

Something like

Get-VM -Name VM | Move-VM -Destination ESxi -Datastore cc

Note that there might be other Move-VM parameters that you need to provide.
Like for example the network.

To which portgroup(s) need the vNIC(s) be connected on the target ESXi node.


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

View solution in original post

0 Kudos