Specifications
4 Select the datastore location where you want to store the virtual machine files.
Option Action
Store all virtual machine files in the
same location on a datastore.
Select a datastore and click Next.
Store all virtual machine files in the
same Storage DRS cluster.
a Select a Storage DRS cluster.
b (Optional) If you do not want to use Storage DRS with this virtual
machine, select Disable Storage DRS for this virtual machine and select
a datastore within the Storage DRS cluster.
c Click Next.
Store virtual machine configuration
files and disks in separate locations.
a Click Advanced.
b For the virtual machine configuration file and for each virtual disk, click
the datastore name, select Browse, and select a datastore or Storage DRS
cluster.
c (Optional) If you selected a Storage DRS cluster and do not want to use
Storage DRS with this virtual machine, select Disable Storage DRS for
this virtual machine and select a datastore within the Storage DRS
cluster.
d Click Next.
5 Review the page and click Finish.
Storage vMotion Command-Line Syntax
In addition to using the Migration wizard, you can initiate migrations with Storage vMotion from the
vSphere Command-Line Interface (vSphere CLI) using the svmotion command.
For more information about installing and using the vSphere CLI, see vSphere Command-Line Interface Installation
and Scripting Guide and vSphere Command-Line Interface Reference.
You can run the svmotion command in either interactive or noninteractive mode.
n
To use the command in interactive mode, type svmotion --interactive. You are prompted for all the
information necessary to complete the storage migration. When the command is invoked in interactive
mode, all other parameters given are ignored.
n
In noninteractive mode, the svmotion command uses the following syntax:
svmotion [Standard CLI options] --datacenter=
datacenter_name
--vm
‘
VM_config_datastore_path
:
new_datastore
’ [--disks
‘
virtual_disk_datastore_path
:
new_datastore
,
virtual_disk_datastore path
:
new_datastore
]’
Square brackets indicate optional elements.
On Windows systems, use double quotes instead of single quotes around the values specified for the --vm and
--disks options.
For more information on the standard CLI options, see the vSphere Command-Line Interface Installation and
Scripting Guide and vSphere Command-Line Interface Reference.
Table 12-2 describes the parameters for the svmotion command.
Table 12-2. svmotion Command Parameters
Parameter Description
datacenter
The datacenter that contains the virtual machine to be migrated. You
must quote the name if it contains white space or other special
characters.
VM_config_datastore path
The datastore path to the virtual machine’s configuration file. If the
path contains white space or other special characters, you must
quote it.
vCenter Server and Host Management
132 VMware, Inc.