Solved

how to migrate a particular virtual disk ESXi v4.1 - no vmotion

Posted on 2014-03-03
4
391 Views
Last Modified: 2014-03-08
What's the easiest way to migrate a particular virtual disk to another datastore?  The source and target data stores are from local LUNs on the ESXi host.  I do not have vMotion.
0
Comment
Question by:gopher_49
4 Comments
 
LVL 4

Expert Comment

by:aa-denver
ID: 39901628
You will have to shut the VM down for this copy.  Using the VMware infrasturcture client, browse the storage drive on the first server.  Copy the directory containing all the VM files of the machine you want to move to your local PC.  Then browse the storage drive on the second server and copy the directory back up to the second server.  When the copy is done, use the browse storage window to drill down into the folder on the second server and double-click the vmx file.  VMware should then register the computer on the new vmware host.  Power on the new copy and make sure it works.  Then go back to the old server and either remove from inventory and/or delete from disk using the vmware menu tree on the left.  This will unregister the vm from the old host.

If you have NFS storage, you can connect both hosts to an NFS share and use that for copying.  Connect to the NFS share with the Infrastructure client.   If you have an unused Windows computer you can set up an NFS share on it.  W2008 or newer is easier to create NFS shares than older windows versions.
0
 

Author Comment

by:gopher_49
ID: 39901647
I'm only wanting to copy one virtual drive.  Not the others..  They are over 1TB.. Too big and can't waste that much time.  Can't I just copy the one virtual disk? The data is being copied within the same ESXi server.  I think the copy feature will show both the source and target folder since it's the same ESXi server.  I'll give it a shot.
0
 
LVL 13

Expert Comment

by:Abhilash
ID: 39902240
Yes. If its the same ESXi host you can copy the disk from one datastore to another.
0
 
LVL 29

Accepted Solution

by:
Michael W earned 500 total points
ID: 39903452
Rather than using the vSphere client, a faster approach would be to ssh into the ESXi 4.1 host, then use the "vmkfstools" command:

vmkfstools -i "/vmfs/volumes/Datastore/examplevm/examplevm.vmdk" "/vmfs/volumes/Datastore 2/newexamplevm/newexamplevm.vmdk" -d thin

If you need additional info on using the vmkfstools command, check here:

Cloning and converting virtual machine disks with vmkfstools (1028042)
http://bit.ly/1i3C4TP
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question