VMware Cloud Community
MasterYin
Contributor
Contributor

cannot remove `filename.vmdk': Device or resource busy

Can anyone help me with this issue?

cannot remove `filename.vmdk': Device or resource busy

This is what happened. I imported a machine using vmware converter, booted it up, and was installing some software on guest, during the installation progress all of a sudden the virtual machine just shut down and I cannot power it back on. So I decide to delete the files that are associated with it using virtual center. But when I check on the vmfs the files are still there and everytime I try to delete .swp and the .vmdk files using the command line I get the above error message.

0 Kudos
2 Replies
Funtoosh
Enthusiast
Enthusiast

Follow this link and your problem will be solved.

0 Kudos
Yattong
Expert
Expert

You are going to have to check what processes are still running against that particular vm.

Log onto the ESX server service console

Find the pid (process id) of the vm by using esxtop.

You can then use the kill -9 pid command.

Good Luck

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points ~y
0 Kudos