More than one .vbox-prev backup

This is for discussing general topics about how to use VirtualBox.
Post Reply
norminul
Posts: 4
Joined: 18. Feb 2016, 22:01

More than one .vbox-prev backup

Post by norminul »

Is there any setting which instructs virtualbox to store more than one backwards version of .vbox file when changes are made? I'm using Linux so if this is not-in-plan functionality I will go with some inotify based home made solution but that seems so stupid... i.e. logs are being preserved without eviction.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: More than one .vbox-prev backup

Post by socratis »

norminul wrote:Is there any setting which instructs virtualbox to store more than one backwards version of .vbox file when changes are made?
Not one that I know of.

The most important question is, why? How many times are you planning on changing your (virtual) hardware? And in ways that you don't remember what changes you've made? And without being able to note these changes, for example in the description, if not in a text file?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
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: More than one .vbox-prev backup

Post by scottgus1 »

The .vbox file is the "recipe" for the guest's hardware. It is not a log. However...

On my guests I see only one vmname.vbox file and one vmname.vbox-prev file per guest. However I do see one or more "versioned" .vbox's on some guests, which I guess are made by Virtualbox if the guest existed during a Virtualbox upgrade.

Some of my guests were from a Windows 7 host running VB 4.2.16. The I upgraded to Windows 10 and 5.0.something. then I upgraded to 10 Anniversary Edition and 5.1.6.

On many of my guests dating back to the Windows 7 host, I have both a "vmname.vbox" and a "vmname-1.12-windows.vbox". On a couple guests I also have a "vmname-1.13-windows.vbox".

I suspect these "versioned" .vbox's come from the upgrades in major version number in Virtualbox (4.2 to 5.0, 5.0 to 5.1). Maybe it's something new that version 5 does.

The best backup is a simple folder-copy after the guest is shut down. See this tutorial Moving a VM and re-interpret it as "Backing Up a VM".
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: More than one .vbox-prev backup

Post by socratis »

scottgus1 wrote:I suspect these "versioned" .vbox's come from the upgrades in major version number in Virtualbox (4.2 to 5.0, 5.0 to 5.1). Maybe it's something new that version 5 does.
No, these are the XML versions of the VBox file and in fact the 1st line declaration. Example:
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.15-macosx">
Whenever there is a need to modify the VBOX file, VirtualBox backs up the previous one with the XML version in its name. Note that I said "modify", not read. You can read old files, but if a modification you make to the recipe requires a change that didn't exist in the previous versions of VirtualBox, you'll get that effect...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
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: More than one .vbox-prev backup

Post by scottgus1 »

You may be right there, Socratis, but these "version-named" .vbox files that I have don't show under normal operation of Virtualbox. Guests that I have made since the last major update to Virtualbox (5.0 to 5.1) have only the .vbox and the .vbox-prev files. Guests pre-dating the 5.0 to 5.1 or 4.2 to 5.0 (I haven't paid attention so I can't say for certain, thus the "guess" and "suspect") have the 1.12-windows-named.vbox. And at least one guest has a 1.13-windows-named .vbox:
versioned vbox files.PNG
versioned vbox files.PNG (18.68 KiB) Viewed 2273 times
I didn't see such a thing back when I went from 3.2 to 4.0 or 4.0 to 4.2,althoguh I wasn't looking for it either.
Post Reply