[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

Unable to Delete VM Folder from ESXi host

Hello Experts,

I have deleted a VM from my ESXi host, I'm prevented from deleting the file from my datastore, see image.

asa
Can someone help?

Cheers
0
cpatte7372
Asked:
cpatte7372
1 Solution
 
bbaoIT ConsultantCommented:
have you already checked this official KB against the issue? please do follow the steps and check the logs first.

Cloning or migrating virtual machine files fail with the error: Error caused by file
(2009097)
http://kb.vmware.com/selfservice/microsite
s/search.do?language=en_US&cmd=displayKC&externalId=2009097
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If there is a SWAP (VSWP) file present, which is shown in your screenshot, it's possible the VM is still running, or the process is still running?

You can try and check what process is running and kill it, but often it's easier to restart the HOST, and try deleting the files and folder again.

this is the VMware KB

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10051

often, you can spend ages and waste time trying this, but I've listed it here for training and educational purposes, just in case you want to have a dabble, and then you'll restart the host! (it's quicker!)

(restarting will shutdown all running processes)
0
 
Uni KittyCommented:
Totally agree, it's most likely a running process still accessing the files.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
bbaoIT ConsultantCommented:
restarting the virtual host should work but i am wondering if this could be okay for a crticial business relying on virtualisation.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
@bbao - it's a lab server, used for training!
0
 
bbaoIT ConsultantCommented:
@andrew where can i see it is a lab server used for training please?

BTW, just repost the URL as the link was broken in my first comment posted from mobile phone.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2009097
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
@bbao in the Askers history of questions!
0
 
cpatte7372Author Commented:
Cheers
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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