Thursday, October 9, 2008

svmotion walkthrough

C:\>cd "\Program Files\VMware\VMware VI Remote CLI\bin"

C:\Program Files\VMware\VMware VI Remote CLI\bin>svmotion.pl --interactive

Entering interactive mode.  All other options and environment variables will be ignored.

Enter the VirtualCenter service url you wish to connect to (e.g. https://myvc.mycorp.com/sdk, or just myvc.mycorp.com): virtualcenter.somedomain.com
Enter your username: domainname\admin.credentials
Enter your password: XXXXXXXXXX

Connected to server.

Enter the name of the datacenter: DCname
Enter the datastore path of the virtual machine (e.g. [datastore1] myvm/myvm.vmx): [STORAGE-ARRAY1-LUN1] VMserver4/VMserver4.vmx
Enter the name of the destination datastore: STORAGE-ARRAY1-LUN2

You can also move disks independently of the virtual machine.  If you want the disks to stay with the virtual machine, then skip this step..
Would you like to individually place the disks (yes/no)? no

Performing Storage VMotion.
0% |----------------------------------------------------------------------------------------------------| 100%
    ##########################################################################################
Storage VMotion completed successfully.

Disconnecting.

C:\Program Files\VMware\VMware VI Remote CLI\bin>

No comments: