saumyasourav90
Contributor
Contributor

Vmotion and SV motion scripting

Jump to solution

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.

0 Kudos
1 Solution

Accepted Solutions
Arthos
Contributor
Contributor

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 !!

View solution in original post

0 Kudos
2 Replies
jrmunday
Commander
Commander

Google is your friend Smiley Happy

Move-VM - vSphere PowerCLI Cmdlets Reference

Cheers,

Jon

vExpert 2014 - 2018 | VCP6-DCV | http://www.jonmunday.net | @JonMunday77
0 Kudos
Arthos
Contributor
Contributor

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 !!

View solution in original post

0 Kudos