VMware Cloud Community
kurianlinu
Enthusiast
Enthusiast

ESXi6.5:VM unable to delete, shows lock

HI I am  unable to delete the  snapshot, consolidate the disks or even unable to delete the VM, Please help me to delete the vm properly,

kurianlinu_1-1620827944388.png

kurianlinu_2-1620828129190.png

 

If I delete the vm files from CLI ,will it free up the disks and vCPUs used for this VM?

 

Thanks,
Linu

Reply
0 Kudos
4 Replies
kenobi79
Enthusiast
Enthusiast

hi 

try this kb

kb.vmware.com/s/article/1002310

 

if don't work try:

- Log into the ESX host as root via the console or an SSH session

- Obtain the path to the configuration file for the virtual machine with the command:

# vmware-cmd -l

The output is  similar to/vmfs/volumes/UUID/VMNAME/VMNAME.vmx

 

- Check to see if the virtual machine has a snapshot with the command: # vmware-cmd /vmfs/volumes/UUID/VMNAME/VMNAME.vmx has snapshot

If the output displays a value of 1 , a snapshot is present. If the output displays a value of 0, there is no snapshot present

 

- Create a new snapshot on the virtual machine with the command: # vmware-cmd /vmfs/volumes/UUID/VMNAME/VMNAME.vmx createsnapshot namedescriptionquiescememory

For example, to take a snapshot called test without memory or quiescing the file system in the virtual machine: # vmware-cmd /vmfs/volumes/UUID/VMNAME/VMNAME.vmx createsnapshot "test" "" 0 0

 

- Remove the snapshot with the command: # vmware-cmd /vmfs/volumes/UUID/VMNAME/VMNAME.vmx removesnapshots

Bye - Riccardo Panzieri
https://www.i3piccioni.it
kurianlinu
Enthusiast
Enthusiast

Hi, Thanks for the response, Eventhough I am unable to delete. Unable to restore to a previous snapshot as well showing file is locked.Please help

kurianlinu_1-1621260724351.png

 

kurianlinu_0-1621260627018.png

 

Reply
0 Kudos
kenobi79
Enthusiast
Enthusiast

hi

see this kb

https://kb.vmware.com/s/article/2107795

 

Bye - Riccardo Panzieri
https://www.i3piccioni.it
Reply
0 Kudos