• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1298
  • Last Modified:

can't delete vmx file

I can't delete vmx file which is unused
0
syshlan
Asked:
syshlan
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Are you certain it's not in use?

1. no backups running
2. no snapshots running
3. no other task running

check for locked files, using lsof

see here

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

Sometimes, files do get locked for no reason, and they cannot be moved or deleted, so just schedule them with the next patch/upgrade reboot, emergency maintenance, and restart the server.
0
 
syshlanAuthor Commented:
I thought  it was  locked by some process other than backup and snapshot
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
Hi, what filesystem is that vmx file on?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
syshlanAuthor Commented:
VMFS 5
0
 
vmwarun - ArunCommented:
If vCenter aka VirtualCenter is being used to manage the ESXi host, then select the VM in the inventory and then select the Tasks and Events tab of the VM to check for latest tasks and events which would help you to correlate the events that prevent you from deleting the VM.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If you have VMware vSphere vCenter Server

1. Restart the VMware vCenter Server service and try deleting the VMX file.

2. Restart the Network Management Agents on the affected ESXi host.

the above will not affect running VMs.

3. Upload a screenshot of your datastore.

4. Is the VM in the Inventory?

5. Final Fix - Restart or Reboot your host server.
0
 
compdigit44Commented:
How are you trying to delete the file? By any chance what the Vm for which you are trying to delete the VMX for being shared with another VM?
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now