Solved

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

Posted on 2014-03-03
4
399 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Worsham 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
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.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

717 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