Unable to delete files from a VM in Exsi 7.0 Update
Hello,
I deleted a virtual machine (VM) in VMWare Exsi 7.0 Update 3 via the browser. Unfortunately, some files were not deleted (a flat.vmdk file and .log files)
1. When I try to delete them via the datastore, I get the message "
Failure - Error caused by the file /vmfs/volumes/66eb2433-d4fd7918-c89d-d4f5ef61ecd4/SERVEUR_... 2. In SSH, using the command
rm -rf filename
I get the message
rm: can't remove 'vmware-222.log': Bad address Thank you for your assistance (these files are taking up a lot of space)
Thank you
1 answer
-
Hello,
From your message, I think there is some confusion between the host system (let's say Windows) and the files on your guest system (your virtual machine).
From its name, the file vmware-222.log seems to be a file created by VMWare on your host system. You should be able to find and delete it via your Windows file explorer (see here). Therefore, there is no reason to use ssh.
If your host system refuses to delete it, it means the file is in use. In that case, turn off your virtual machine (or even VMWare), delete the log file, and then restart your virtual machine.
Finally, regarding your last error message, ssh is waiting for you to provide a machine name or its IP address, and an optional port if the targeted ssh server is not listening on the default ssh port (22). Once connected via ssh (for example to your virtual machine), you can then delete a file hosted on your virtual machine. But as I mentioned earlier, I doubt the file you are trying to delete is hosted on your virtual machine, and if it is, you can forget about ssh.
Good luck