id summary reporter owner description type status component version resolution keywords cc guest host 3351 Normalise or repair the XML data models Terry Ellison "Currently the VBox metadata models are denormalised in that data elements are duplicated between the central ''!VirtualBox.xml'' registry and the various machine.xml files. The VBox application does not enforce proper transactional integrity between these various definition files and so various program errors can cause them to get out of sync. A result of this is that VBox will then refuse to load the VM and the users are unable to recover the contents of any snapshotted HDs with understanding the XML schemas and manually patching up the XML files — not something that the average use is capable of doing. Hence certain classes of VBox error can result in major data loss for most users. There is sufficient volume of posts on the forum related to this issue to support the conclusion that this is a real problem. As far as I can see there are three possible approaches to remove this product vulnerability: * '''Renormalise the data models'''. For example the '''' tree would only contain HDs that are not allocated to VMs. The complete set of '''' could be obtained by enumerating this tree plus the '''' in each attached machine. (This node would replace the existing '''' node). Such an approach would also mean that a VM is now a self-contained entity that can be exported or imported (a frequent user request). Yes this would require addition integrity checks to walk the VMs XML files when adding or removing HDs, but this is hardly a frequent occurrence. This is my recommended option. * '''Provide a repair too'''. This would walk the various XML files, identify inconsistencies and have a set of rules for when to recommend recovery and when to ask the user for a choice. * '''Move the meta data to a proper DB'''. The obvious one to use here is SQLlite: simple, free, and able to handle the transactional issues. Under this scenario the Machine schema would only be used for importing and exporting machines. This metadata is critical to the protecting the user content maintained within the various VMs, yet there are no transactional, journalling or recovery mechanisms provided to ensure the integrity of this metadata. This is unacceptable in product of VBox's maturity." enhancement new VM control VirtualBox 2.1.2 other Windows