ESXi: Moving VMs to another Datastore?

Discussion in 'VMware, VirtualBox, Citrix' started by Fahd, Nov 14, 2017.

  1. Fahd

    Fahd New Member

    Joined:
    Aug 3, 2017
    Messages:
    16
    Likes Received:
    3
    Hi again,

    I am on ESXi 6.5 FREE version and would like to move a VM from Datastore1 to Datastore2 on the same host machine. VMs can be powered off and doesn't need to be a live migration.

    How can I do this? I have googled but they all apply to the paid versions or refer to using a vsphere client that is no longer available.

    I am still within the evaluation period and understand I can do this by using vmotion. But I am completely at a loss as to where to download this or which vmware product suite this comes under.

    Thanks for any help!
     
    #1
  2. Marsh

    Marsh Moderator

    Joined:
    May 12, 2013
    Messages:
    2,025
    Likes Received:
    925
    Install vCenter , you would have 60days ( eval license ) to move the VM.
    Or
    do export to OVA then import to the new datastorage.

    If you copy the vm files, the vmdk files would turn into "thick provision".
     
    #2
  3. K D

    K D Well-Known Member

    Joined:
    Dec 24, 2016
    Messages:
    1,397
    Likes Received:
    294
    Like @Marsh mentioned you can install vcenter evaluation version and use it for a storage vmotion.

    Or an alternative is to install OVF tool in your desktop and use it to move the vms. Basically it is an easier way of doing the second option using the command line. See this post for usage example. I used it to move to a datastore on a different host.


    VMotion from Xeon D host to E3-1265 V2 host
     
    #3
  4. zedascuras

    zedascuras New Member

    Joined:
    Feb 15, 2015
    Messages:
    10
    Likes Received:
    1
    You can also use veeam backup and replication free to do this.
    Veeam Backup Free Edition for VMware and Hyper-V

    From the website above:
    "Migrate VMs without vMotion
    Migrate a live VMware VM to any host or datastore, even if there is no cluster or shared storage implemented in the infrastructure."

    Just install the software on a windows server, add the esxi server and move the machines. If not mistaken, you can move the machine powered on also, no need to shutdown the machine.
    Good luck.
     
    #4
    Last edited: Nov 15, 2017
  5. Fahd

    Fahd New Member

    Joined:
    Aug 3, 2017
    Messages:
    16
    Likes Received:
    3
    Would that be vCenter Server? Approx 2.4 GB download? Thanks!

    PS: Am I the only one that finds the VMWare product naming confusing?
     
    #5
  6. zedascuras

    zedascuras New Member

    Joined:
    Feb 15, 2015
    Messages:
    10
    Likes Received:
    1
    Yes, that's the one.
    Use the Appliance, it's simpler to deploy.
     
    #6
  7. Marsh

    Marsh Moderator

    Joined:
    May 12, 2013
    Messages:
    2,025
    Likes Received:
    925
    Be aware , veeam does not work with ESXi free license version. , but it would work with Esxi eval license.
    Veeam crippled their backup software when dealing with Esxi free license.
     
    #7
  8. cheezehead

    cheezehead Active Member

    Joined:
    Sep 23, 2012
    Messages:
    668
    Likes Received:
    155
    If going the eval route, could just add an eval vcsa and move it online.

    If offline there are a few methods

    #want to move to thin provisioning but not currently
    vmkfstools -i /vmfs/volume/olddatastore/myvm/myvm.vmdk -d thin /vmfs/volume/newdatastore/myvm/myvm.vmdk

    #copy data
    cp -R /vmfs/volume/olddatastore/myvm /vmfs/volume/newdatastore/myvm

    #move data
    mv /vmfs/volume/olddatastore/myvm /vmfs/volume/newdatastore/myvm

    If your doing thin provisioning currently i'm not sure if the cp or mv commands will preserve the thin provisioning....if not, you'll need vmkfstools.
     
    #8
Similar Threads: ESXi Moving
Forum Title Date
VMware, VirtualBox, Citrix Moving VM from ESXi to Workstation Jun 12, 2015
VMware, VirtualBox, Citrix Esxi moving vms from host to another Aug 15, 2013
VMware, VirtualBox, Citrix [BOUNTY] ESXi GPU Passthrough [ERROR 43] Yesterday at 4:44 AM
VMware, VirtualBox, Citrix Dell R710 Esxi 6.5 Sunday at 5:48 PM
VMware, VirtualBox, Citrix ESXi boot disk failover / fallback (clone)? Apr 23, 2019

Share This Page