Hi All,
I would like to move around 75-100 vms from one host to another host and one data store to another data store.
So can you someone help for the activity using Vmotion and SVmotion scripting with examples. I am completely new in Command line.
Note : I would like to do the above mentioned activity using Vsphere PowerCLI.
Move VM to different Host using vMotion.
Prerequisites:
1.Verify that you are connected to a vCenter Server system.
2.The virtual machine must be stored on a datastore shared by the current and the destination host, and the
3.vMotion interfaces on the two hosts must be configured.
Procedure:
(Get the VM1 virtual machine and move it to a host named ESXHost2 )
Get-VM VM1 | Move-VM -Destination (Get-VMHost ESXHost2)
Move VM to different datastore using SV Motion
Prerequisites :
1.Verify that you are connected to a vCenter Server system.
2.The host on which the virtual machine is running must have access both to the datastore where the virtual
machine is located and to the destination datastore.
Procedure:
(Get the VM1 virtual machine and move it to a datastore named DS2)
Get-VM VM1 | Move-VM -Datastore DS2
Thanks
-if it helps , consider marking it as helpful !!
Google is your friend
Move-VM - vSphere PowerCLI Cmdlets Reference
Cheers,
Jon
Move VM to different Host using vMotion.
Prerequisites:
1.Verify that you are connected to a vCenter Server system.
2.The virtual machine must be stored on a datastore shared by the current and the destination host, and the
3.vMotion interfaces on the two hosts must be configured.
Procedure:
(Get the VM1 virtual machine and move it to a host named ESXHost2 )
Get-VM VM1 | Move-VM -Destination (Get-VMHost ESXHost2)
Move VM to different datastore using SV Motion
Prerequisites :
1.Verify that you are connected to a vCenter Server system.
2.The host on which the virtual machine is running must have access both to the datastore where the virtual
machine is located and to the destination datastore.
Procedure:
(Get the VM1 virtual machine and move it to a datastore named DS2)
Get-VM VM1 | Move-VM -Datastore DS2
Thanks
-if it helps , consider marking it as helpful !!