Solved

can't delete vmx file

Posted on 2014-01-05
8
1,022 Views
Last Modified: 2014-02-06
I can't delete vmx file which is unused
0
Comment
Question by:syshlan
8 Comments
 
LVL 120
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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 120

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 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrate VMs to AWS EC2 17 179
VMWare environment audit 8 106
Unable to remove vmdk file from local storage.. 5 68
Exchange Server DAG mailbox server VMware network configuration 7 77
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Teach the user how to install ESXi 5.5 and configure the management network System Requirements: ESXi Installation:  Management Network Configuration: Management Network Testing:
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

761 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