VMware Cloud Community
lsulax
Contributor
Contributor
Jump to solution

Best way to move a VM from local storage to iSCSI

Migrate? Clone? Export? Other options? No, we didn't have any iSCSI storage when we started.

0 Kudos
1 Solution

Accepted Solutions
Troy_Clavell
Immortal
Immortal
Jump to solution

what about sVMotion? this way you can do a live migration. If not, shutdown the guest and do a cold migration. Both of these suggestions are assuming your running vCenter.

View solution in original post

0 Kudos
8 Replies
Troy_Clavell
Immortal
Immortal
Jump to solution

what about sVMotion? this way you can do a live migration. If not, shutdown the guest and do a cold migration. Both of these suggestions are assuming your running vCenter.

0 Kudos
aguacero
Hot Shot
Hot Shot
Jump to solution

You can either perform a migration or use a utility like FastSCP to copy the files to the new datastore and register the VM from it's new location.

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
ThomasRott
Contributor
Contributor
Jump to solution

in my opion the best ways are:

1) vmotion if possible

2) use of vmkfstools -i /vmfs/volumes/local-xyz/whatever.vmx /vmfs/volumes/iscsi/whatever.vmdk

3) create an clone of the vm into the iscsi datastore

4) use of the VI client to copy the vm to the iscsi datastore

i do not prefer a CP command or use of winscp because this might change the metadata information an could also create a bigger *.vmdk file on the new datastore

DSTAVERT
Immortal
Immortal
Jump to solution

The Converter 4 tool is an a very useful tool. It can basically HOT clone the existing machine and when done shutdown the local one and startup the iSCSI one. That part doesn't work for every OS or situation but give it a look.

-- David -- VMware Communities Moderator
0 Kudos
Ken_Cline
Champion
Champion
Jump to solution

Be careful with hot cloning a system! A hot clone takes a "point in time" snapshot of the source VM at the time the clone is initiated - anything that happens to the source after that point in time does not get migrated to the new system. This may, or may not, be important - but it is something to be aware of...

Ken Cline

VMware vExpert 2009

VMware Communities User Moderator

Blogging at: http://KensVirtualReality.wordpress.com/

Ken Cline VMware vExpert 2009 VMware Communities User Moderator Blogging at: http://KensVirtualReality.wordpress.com/
0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

Just a clip from the Converter help file.

Synchronize the Source with the Destination Machine

You can synchronize source and destination after the conversion of a powered-on machine is complete.

When

cloning is finished, services are shut down and the source and

destination machines are synchronized. Synchronization is only

available for MS Windows XP or later source operating systems and

managed destinations. It is not available for OVF destinations.

Procedure |1.|On the View/Edit Options page, click Advanced conversion options.|

The list of advanced settings appears to the right.

2.

Select Synchronize changes that occur to the source during cloning.

3.

(Optional) VMware recommends that you select Power off source machine as well and specify the services to stop on the source during conversion.

4.

Select another option to edit or click Finish to add the conversion task to the task list.

-- David -- VMware Communities Moderator
0 Kudos
Troy_Clavell
Immortal
Immortal
Jump to solution

just remember that if you resize your volumes during the P2V, you cannot synchronize.

0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

You bet. Sometimes it just pays to RTFM.

-- David -- VMware Communities Moderator
0 Kudos