How to protect against disappearing VMs

Discussions related to using VirtualBox on Windows hosts.
Post Reply
francob
Posts: 7
Joined: 11. Feb 2015, 16:59
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu Linux

How to protect against disappearing VMs

Post by francob »

I recently lost a VirtualBox 4.3.20 Linux VM that took me months to build - the \.VirtualBox and \VirtualBox VMs folders just suddenly disappeared. Fortunately I had a fairly fresh backup of the host (a Win 8.1 machine).
1. What could have caused this (I suspect something like Ccleaner)?
2. More importantly, is there any way to protect these folders so nothing can remove them?
Thanks.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: How to protect against disappearing VMs

Post by noteirak »

francob wrote:1. What could have caused this (I suspect something like Ccleaner)?
VirtualBox does not perform any deletion of that kind, so some third party software is. There is no way to know from a VirtualBox point of view.
francob wrote:2. More importantly, is there any way to protect these folders so nothing can remove them?
Well... Nothing in VirtualBox can :) these are just regular files, which can be access by the user owning them and the system. If any other process is running under these credentials, they are free to do what they please!

Bottom line: you should really double check what software installed on your machine is doing... Nothing we can do here I am afraid.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: How to protect against disappearing VMs

Post by loukingjr »

FWIW, CCleaner would not normally delete those folders unless it was used to uninstall VirtualBox. CCleaner is fairly good at finding ALL files associated with a program.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to protect against disappearing VMs

Post by mpack »

VirtualBox does allow you to delete VMs, but it has no function to delete the ".VirtualBox" and "VirtualBox VMs" folders.

Are you sure you didn't just log in as a different user? Have you been doing any fiddling with user accounts on that PC? Come to think of it, I have no idea what happens to user doc folders if you delete a user profile on Windows. I assume they remain behind, but accessible only if you have admin rights.
Post Reply