ESXi

 View Only
  • 1.  Vmotion and SV motion scripting

    Posted Oct 04, 2016 07:42 AM

    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.



  • 2.  RE: Vmotion and SV motion scripting

    Posted Oct 10, 2016 05:29 PM

    Google is your friend :smileyhappy:

    Move-VM - vSphere PowerCLI Cmdlets Reference

    Cheers,

    Jon



  • 3.  RE: Vmotion and SV motion scripting
    Best Answer

    Posted Oct 12, 2016 06:49 AM

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