Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

can't delete vmx file

Posted on 2014-01-05
8
Medium Priority
?
1,254 Views
Last Modified: 2014-02-06
I can't delete vmx file which is unused
0
Comment
Question by:syshlan
8 Comments
 
LVL 124
ID: 39757678
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
 

Author Comment

by:syshlan
ID: 39757693
I thought  it was  locked by some process other than backup and snapshot
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 39757711
Hi, what filesystem is that vmx file on?
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 

Author Comment

by:syshlan
ID: 39757763
VMFS 5
0
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 39757900
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
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 39757929
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
 
LVL 20

Expert Comment

by:compdigit44
ID: 39763762
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question