Page 1 of 1
I accidentally deleted all files from .VirtualBox
Posted: 23. Dec 2021, 22:30
by ftwig
But still, have all the directories with the VMs in them. How do I relink these VMs back to Virtulbox.
Re: I acidently deleted all friles from .VirtualBox
Posted: 24. Dec 2021, 02:22
by scottgus1
When the .Virtualbox folder is deleted or moved, Virtualbox will make a new .Virtualbox folder with a new Virtualbox.xml configuration file.
You can use the main Virtualbox window's Machine menu, Add command, to browse to each VM folder then select the .vbox file. (Turn on all extensions if your host OS unhelpfully hides known extensions and you don't at first see the .vbox extension - web-search how to do this.)
Each VM you add will reappear in the VM list. (note that if you delved into fancier setups like linked clones, you'll have to add the base VM first before the clone).
Re: I acidently deleted all friles from .VirtualBox
Posted: 24. Dec 2021, 04:04
by ftwig
I figured that but how do I relink the VMs I managed to delete from the app.
Re: I acidently deleted all friles from .VirtualBox
Posted: 24. Dec 2021, 09:11
by BillG
If you had figured it out, they would already be there!
What did you do when you found the .xml file for the vm? The way you register a vm (i.e. add it back into the list) is to double-click the .xml file.
Re: I acidently deleted all friles from .VirtualBox
Posted: 24. Dec 2021, 11:47
by mpack
Just to avoid confusion, the file you need to double click has a ".vbox" extension (assuming you did as Scott instructed and enabled filename extensions in the Windows host).
VM control files have not had a ".xml" extension since VirtualBox 4.0.0 was released (in 2010).

Re: I acidently deleted all friles from .VirtualBox
Posted: 24. Dec 2021, 14:24
by ftwig
mpack wrote:Just to avoid confusion, the file you need to double click has a ".vbox" extension (assuming you did as Scott instructed and enabled filename extensions in the Windows host).
VM control files have not had a ".xml" extension since VirtualBox 4.0.0 was released (in 2010).

Wow thanks, that easy.
Re: I accidentally deleted all files from .VirtualBox
Posted: 25. Dec 2021, 00:33
by BillG
Sorry about the confusion. I have no idea how .vbox became .xml !
Christmas greetings to you all from Australia.