You can run svmotion in noninteractive mode if you do not use the --interactive option.

Important: When you run svmotion, --server must point to a vCenter Server system.

In noninteractive mode, the svmotion command uses the following syntax.

svmotion [standard vCLI 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, not datastores.

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 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 Determine the Path to the Virtual Machine Configuration File and Disk File.