Specifications

Basic System Administration
248 VMware, Inc.
Storage VMotion Examples
Theexamplesinthissectionareformattedonmultiplelinesforreadability.The
commandshouldbeissuedonasingleline.
Anexampleofrelocatingallofavirtualmachine’sdiskstoadatastorenamed
new_datastore:
svmotion --url=https://myvc.mycorp.com/sdk
--username=me
--password=secret
--datacenter=DC1
--vm='[old_datastore] myvm/myvm.vmx: new_datastore'
Anexampleofrelocatingavirtualmachinetonew_datastore,whileleavingthedisks,
myvm_1.vmdkandmyvm_2.vmdkonold_datastore:
svmotion --datacenter='My DC'
--vm='[old_datastore] myvm/myvm.vmx:
new_datastore'
--disks='[old_datastore] myvm/myvm_1.vmdk:
old_datastore,
[old_datastore] myvm/myvm_2.vmdk:
old_datastore'
--disks Ifyoudonotspecifythisparameter,allvirtualdisksassociatedwith
avirtualmachinearerelocatedtothesamedatastoreasthevirtual
machineconfigurationfile.Byspecifyingthisparameter,youcan
choosetolocateindividualvirtualdiskstodifferentdatastores.
Ifyouwouldliketokeep
avirtualdiskonitscurrentdatastore,use
the--disksoptionforthatdiskwithitscurrentdatastoreasthe
<new datastore>.
<virtual disk
datastore path>
Thedatastorepathtothevirtualdiskfile.
Todeterminethepathtoavirtualdiskfile:
1IntheVIClientinventory,selectthevirtualmachinetowhichthe
virtualdiskbelongs,andclicktheSummarytab.
2 ClickEditSettingstodisplaytheVirtualMachineProperties
dialogbox.
3 Clickthe
Hardwaretab,andselectthevirtualdiskfromthelist
ofdevices.
ThepathtothevirtualdiskfileisdisplayedintheDiskFiletext
box.
Table 15-2. svmotion command parameters (Continued)
Parameter Description