I accidentally deleted all files from .VirtualBox
I accidentally deleted all files from .VirtualBox
But still, have all the directories with the VMs in them. How do I relink these VMs back to Virtulbox.
Last edited by mpack on 24. Dec 2021, 13:06, edited 2 times in total.
Reason: Fix typos in topic title.
Reason: Fix typos in topic title.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: I acidently deleted all friles from .VirtualBox
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).
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
I figured that but how do I relink the VMs I managed to delete from the app.
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: I acidently deleted all friles from .VirtualBox
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.
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.
Bill
-
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: I acidently deleted all friles from .VirtualBox
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).
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
Wow thanks, that easy.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).
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: I accidentally deleted all files from .VirtualBox
Sorry about the confusion. I have no idea how .vbox became .xml !
Christmas greetings to you all from Australia.
Christmas greetings to you all from Australia.
Bill