You can run svmotion in interactive mode using the
--interactive option. The command prompts you for the information it needs to complete the storage migration.
When you use --interactive, all other options are ignored.
In noninteractive mode, the svmotion command uses the following syntax:
The - -vm option specifies the virtual machine and its destination. By default, all virtual disks are relocated to the same datastore as the virtual machine. This option requires the current virtual machine configuration file location. See
To determine the path to the virtual machine configuration file and disk file.
The - -disks option relocates individual virtual disks to different datastores. The
--disks option requires the current virtual disk datastore path as an option. See
To determine the path to the virtual machine configuration file and disk file.
This command relocates the virtual machine's configuration file to new_datastore, but leaves the two disks (
myvm_1.vmdk and
myvm_2.vmdk) in
old_datastore. The example is for Linux. Use double quotes on Windows. The square brackets surround the datastore name and do not indicate an optional element.