vCenter

 View Only
Expand all | Collapse all

Invalid datastore path cloning a vm

  • 1.  Invalid datastore path cloning a vm

    Posted Dec 22, 2019 11:20 PM

    I'm using VMware vCenter Server Appliance 6.7.0.42000 Build number 15132721

    I get the error Invalid datastore path '[datastore.251] Server2/Server2.vmdk' when cloning a VM from a VMware ESXi 6.7.0 8169922 to a VMware ESXi, 6.7.0 14320388

    But I get the same error in other three cases with other vCenter and Esxi environments (also previous builds).

    The only common thing is that the cloned vm has more than one hard disk.

    Thanks



  • 2.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 06:27 AM

    You say you get the same error in three other cases. Do you always get the error when you try to create a clone? Could it be a permissions issue?



  • 3.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 07:56 AM

    Yes I always get the error when I try to create a clone in every esxi environment.

    I don't think it's a permissions issue...I have no problem with another cloning software and no problem with any vCenter operations (start, stop, snapshot, etc.).



  • 4.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 08:01 AM

    Actions on a VM like starting or stopping are different privileges than those needed for creating a clone. For this you would also need other privileges.

    You must have the following privileges to clone a virtual machine:

    • Virtual machine .Provisioning.Clone virtual machine on the virtual machine you are cloning.
    • Virtual machine .Inventory.Create from existing on the datacenter or virtual machine folder.
    • Virtual machine.Configuration.Add new disk on the datacenter or virtual machine folder.
    • Resource.Assign virtual machine to resource pool on the destination host, cluster, or resource pool.
    • Datastore.Allocate space on the destination datastore or datastore folder.
    • Network.Assign network on the network to which the virtual machine will be assigned.
    • Virtual machine .Provisioning.Customize on the virtual machine or virtual machine folder if you are customizing the guest operating system.
    • Virtual machine .Provisioning.Read customization specifications on the root vCenter Server if you are customizing the guest operating system.


  • 5.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 08:10 AM

    I added an hard disk succesfully...and the "Invalid datastore path" occurs during the cloning operation (it starts correctly).

    The cloning operation goes well if I exclude from the cloning the one of the 2 hard disks that causes the error.



  • 6.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 08:13 AM

    Then you would need to look at the properties of that second hard disk.



  • 7.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 08:28 AM

    The properties in the "edit settings"? They are the same of the disk I can clone. (see the attachment)

    The problem occurs after a specific build I cannot identify...before I was able to clone all the systems that now I cannot.



  • 8.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 08:38 AM

    Is it possible to perform a storage migration of the VM you would like to clone?



  • 9.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 09:01 AM

    The datastore is in the server raid of the os.

    I'm able to clone the vm to another esxi using a different clone utility...it goes well.

    Why?But I cannot think about something wrong with the storage, because I have the same problem with 2 other vmware systems.



  • 10.  RE: Invalid datastore path cloning a vm

    Posted Dec 23, 2019 09:07 AM

    I'm afraid I'm running out of things I could think of...



  • 11.  RE: Invalid datastore path cloning a vm

    Posted Dec 24, 2019 12:01 AM

    Thanks for your time.

    I'll try to create a new vmx adding the 2 hdd separately and trying to clone the vm.



  • 12.  RE: Invalid datastore path cloning a vm

    Broadcom Employee
    Posted Feb 20, 2020 01:23 PM

    Hi, were you able to get the solution for this? I am facing the same issue while I try to clone across the hosts which are registered to different vCenter instances. However, in my case the error is pointing to the disk as mentioned in the problem description which happens to be the multi-writer flag enabled which is also skipped during the clone process.



  • 13.  RE: Invalid datastore path cloning a vm

    Posted Mar 29, 2020 03:35 PM

    No I did not find a solution :-(



  • 14.  RE: Invalid datastore path cloning a vm

    Posted Sep 22, 2022 05:41 PM

    This is still a problem in vSphere 7.0 Update 3.  I almost always do cloning using other tools (Ansible usually), but was troubleshooting a different issue today and tried cross-vcenter cloning using the vCenter Ui.  Source VM has snapshots, and cloning it using vCenter to a linked vCenter fails with the same "invalid datastore" error.



  • 15.  RE: Invalid datastore path cloning a vm

    Posted Feb 07, 2024 04:08 PM

    I have the same issue - running 7.0.3o , where if I try and clone a VM (with active snapshots) but only if I try to use the cross site vCenter clone

    I also tried using the SSO Admin user in case it was permissions related - but no dice

    I can clone the vm locally on the same vCenter with active snapshots

    I can then clone that cloned VM cross site - so has to be snapshot related

     



  • 16.  RE: Invalid datastore path cloning a vm

    Posted May 14, 2020 11:57 AM

    I got the same problem.
    Just checked my snapshots and deleted all existing snapshots.
    After that, I was able to clone the server without problem.