convert machine configuration from pre-4.0 to 4.0 format
Posted: 10. Aug 2011, 09:41
Hello,
I've noticed that (at least for the VirtualBox version supplied by Debian) the "new" format for storing machine descriptions, which was introduced with VirtualBox 4.0, seems to be much more robust.
For machines stored in the "old" format, VirtualBox sometimes crashes when I try to revert the machine state to some snapshot: On clicking the "revert" button, it creates a new differencing VDI file, updates some data in the configuration files (or the "parent" VDI? - no idea), so the machine knows that the freshly created VDI should store all the upcoming changes to the machine's hard drive contents, but then crashes before registrering the new VDI in the media registry which is found in the "global" configuration file. On the next start, VirtualBox then is unable to access the freshly created VDI (it is not found in the media registry, so VirtualBox does not know where it is stored), and so I can't use the machine. To get it working again, I usually manually modify the media registry - which is quite annoying and can also introduce bad errors into my machine configuration.
For machines stored in the "new" format, VirtualBox also crashes sometimes when reverting to a present snapshot - however, when I start VirtualBox again, I find the machine in the exactly same state it had before attempting to revert to the snapshot, and simply clicking the "recvert" button does the job.
I can live with these crashes, since they don't happen too often. However, I'd like to convert my pre-4.0 machines to the "new" 4.0 machine format, since for this format, a crash while reverting to a snapshot seems not to corrupt any configuration files, and I need no manual modifications to any config files to get the machine up and running again.
So my question is: Is there an easy way to do this conversion?
I've noticed that (at least for the VirtualBox version supplied by Debian) the "new" format for storing machine descriptions, which was introduced with VirtualBox 4.0, seems to be much more robust.
For machines stored in the "old" format, VirtualBox sometimes crashes when I try to revert the machine state to some snapshot: On clicking the "revert" button, it creates a new differencing VDI file, updates some data in the configuration files (or the "parent" VDI? - no idea), so the machine knows that the freshly created VDI should store all the upcoming changes to the machine's hard drive contents, but then crashes before registrering the new VDI in the media registry which is found in the "global" configuration file. On the next start, VirtualBox then is unable to access the freshly created VDI (it is not found in the media registry, so VirtualBox does not know where it is stored), and so I can't use the machine. To get it working again, I usually manually modify the media registry - which is quite annoying and can also introduce bad errors into my machine configuration.
For machines stored in the "new" format, VirtualBox also crashes sometimes when reverting to a present snapshot - however, when I start VirtualBox again, I find the machine in the exactly same state it had before attempting to revert to the snapshot, and simply clicking the "recvert" button does the job.
I can live with these crashes, since they don't happen too often. However, I'd like to convert my pre-4.0 machines to the "new" 4.0 machine format, since for this format, a crash while reverting to a snapshot seems not to corrupt any configuration files, and I need no manual modifications to any config files to get the machine up and running again.
So my question is: Is there an easy way to do this conversion?