Solved

can't delete vmx file

Posted on 2014-01-05
8
1,060 Views
Last Modified: 2014-02-06
I can't delete vmx file which is unused
0
Comment
Question by:syshlan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PXE boot for ESXi on CENTOS 7 25 114
Ping to management is timing out. 6 56
NFS Share vs SysLog 8 62
Unable to browse to VMFS datastore ? 2 41
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

752 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