Solved

can't delete vmx file

Posted on 2014-01-05
8
952 Views
Last Modified: 2014-02-06
I can't delete vmx file which is unused
0
Comment
Question by:syshlan
8 Comments
 
LVL 119
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 37

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 39757711
Hi, what filesystem is that vmx file on?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 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 19

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

773 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