VMware Cloud Community
mhashemi
Contributor
Contributor

Trouble cloning VM

I'm trying to clone a VM and get an error that says, "Unable to access file <unspecified filename> since it is locked". What file is the error referring to?

Thanks.

Reply
0 Kudos
6 Replies
admin
Immortal
Immortal

Is it a powered on VM or powered off VM? Are you cloning in GUI or in command line?

Reply
0 Kudos
mhashemi
Contributor
Contributor

The VM is on and I'm using the fat-client to do the cloning. It is a Server 2003 server and I'm trying to increase the size of the C: drive, during the cloning. There is enough space on the target datastore.

Reply
0 Kudos
vThinkBeyondVM
VMware Employee
VMware Employee

whether there is any other operation being done on the same VM? can you check the VM file with .lck extension? if you can find such file, file name can give you idea on which VM it is referring to.


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

Reply
0 Kudos
King_Robert
Hot Shot
Hot Shot

it is happened due the VM files locked due to so many reasons:

for complete resolution see the below given URL:

VMware KB: Investigating virtual machine file locks on ESXi/ESX

Reply
0 Kudos
GMCON
Enthusiast
Enthusiast

Do you happen to have snapshots on that VM?  Don't just check the snapshot manager but also check in the Virtual machine folder to see if there seem to be snapshot VMDK files there.  This could be the issue.  If you are using a third party tool or even VDP then you might need to shut down the appliance do a snapshot of your vm then do a delete all to get rid of snapshots to release this. 

Reply
0 Kudos
mhashemi
Contributor
Contributor

I re-cloned the VM, but didn't modify the drive size, and it worked. Odd.

Also, there are no snapshots.

Reply
0 Kudos