VMware Cloud Community
MrSpock77
Enthusiast
Enthusiast

Best way to move a VM to another datastore?

Hi, everyone!

I have tried several ways to move a VM from one local datastore to another local datastore on the same host, but finally I reinstalled the VM from scratch. This is what I did:

1. I used the Move-VM cmdlet in VI Toolkit, but that didn't work without a VMotion license. The VM was powered off, so I supposed it should work without VMotion.

2. I copied the VM files with Veeam FastSCP, and that worked quite well, but then I read that copying vmdk's may degrade performance as fragmentation occurs when copying large files.

3. According to some posts I should use the Remote CLI command "vmkfstools.pl - i" to avoid fragmentation. Unfortunately, I didn't get that script working.

4. Finally I tried VMware Converter, and that did work although the process was painfully slow. When I powered on the VM from its new location, there were a few changes I didn't like. The NIC had changed and the MAC address too. There were a few other options available about changing states of services and removing restore points etc, but I didn't want to change anything. I did a binary comparison on the moved vmdk and the original original, and they were NOT identical. I have no idea of what changes got applied to the vmdk. I want full control and having Converter performing changes to my OS installation doesn't feel good. This isn't a conversion, it's just a move.

So... How can i move a VM without making changes to my guest OS? I want to keep my NIC and all other settings in the guest. What is the proper way of doing this?

Tags (2)
9 Replies
gary1012
Expert
Expert

NM... didn't read the full post.

Community Supported, Community Rewarded - Please consider marking questions answered and awarding points to the correct post. It helps us all.
0 Kudos
jayolsen
Expert
Expert

0 Kudos
MrSpock77
Enthusiast
Enthusiast

jayolsen,

Thanks for your reply! That looks like a good solution, but doesn't SVMotion require a VMWare Infrastructure license? SVMotion seems to be able to move a datastore while the VM is running, but I do not have that requirement. I can accept some downtime while moving the VM. Is there a way to do this without an Infrastructure license?

0 Kudos
s1xth
VMware Employee
VMware Employee

Two of the most popular ways...

1) VMware Converter 4. - Shutdown the running VM on the host, on your management machines/desktop, install Converter, connect to the ESXi server, select the vm, and follow through the prompts to move it to another ESXi server.

2) Use Veeam FastScp (free) - Install, connect to the ESxi host, browse the datastore, copy the datastore, and paste it into the new server's datastore, once transfer completes, re-register the VM in ESXi and fire it up.

I use both ways, very easy! Smiley Happy

http://www.virtualizationimpact.com http://www.handsonvirtualization.com Twitter: @jfranconi
dinnu
Enthusiast
Enthusiast

Hi

You can copy the VM using the Datastore Browser if you don't have Vcenter. In the VI client window, unregister (right click on the VM and select remove from inventory) the VM first, then use the datastore browser (in VI client--> click on summary and right-click on datastore) to move or copy the folder containing the VM to the other store. Then Create a VM with custom options. At 'select a disk' option select 'Use an existing virtual disk' --> browse and select the required .vmdk file and finish.

I guess this method helps you and this is good for moving VM locally.

MrSpock77
Enthusiast
Enthusiast

dinnu,

I would like to try that, but copying using the datastore browser is extremely slow. Seems to be a common problem, but I don't know the cause.

0 Kudos
MrSpock77
Enthusiast
Enthusiast

I was probably wrong about Veeam FastSCP and I could have saved a lot of time. FastSCP does indeed pre-allocate space before copying files, which will prevent fragmentation.

Read more here: http://forum.veeam.com/forums/viewtopic.php?f=4&t=181&p=723

0 Kudos
vMariaL
Enthusiast
Enthusiast

Hi MrSpock77, thank you for chosing Veeam!

Just a quick update: Veeam FastSCP is no longer available as a standalone product; it was built-in to another free tool called Veeam Backup Free Edition.

Veeam Backup Free provides all the functionality of FastSCP (including Quick Migration enabling you to migrate live VMs between hosts and datastores if even vMotion and vStorage Motion aren't available) plus many other nice features. For example, now you can backup live VMware VMs and store backups to disks, tapes, external USBs and so on. The minimum required VMware licensing is vSphere Essentials.

You can download Veeam Backup Free here: http://www.veeam.com/virtual-machine-backup-solution-free.html

Please let me know if you need any assistance.

----

Veeam Community Manager

---- Veeam Community Manager
0 Kudos
Josonic
Contributor
Contributor

When I used the Datastore method of moving a VM it ran out of disk space. This was because moving my thinly provisioned VM tried to create it Thick provisioned, and therefore many times bigger than the original.

(This comment is just to help anyone who reads it, I do not expect a reply.)

0 Kudos