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
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
Depends a bit on which vSphere version and which PowerCLI version you are using?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes its possible if you meet the following requirements
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
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
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