If you have pre configured VirtualBox virtual machines on your computer as XML file, now its easy to import these virtual machines to VMs list in new VirtualBox 4. Earlier versions did not have this feature and we had to manually create the VM and point the existing hard disk files. In this small post let me show how to open or import XML file in VirtualBox.
You can check the new features in VirtualBox 4 here.
VirtualBox 4 supports to import pre configured VMs in XML and vbox file formats. This feature allows to add the VM (which moved from other partitions or computers) to list of Virtual machines very easily. So, you get the same VM with its snapshots in a minute.
For example, to import or open a XML pre configured VM to the following list,
1) Go to Machine and click Add.
2) Browse the XML or vbox file of virtual machine you want to import here.
3) This would add the particular virtual machine to VirtualBox’s VMs list.
That’s it, its very simple. If there was no option to import XML file like this, we may have to create a new virtual machine and select the existing base hard disk VDI file.
One important thing should be considered here, if the pre configured virtual machine’s XML and other files moved or copied from different partition or computer, then the imported virtual machine will not work properly. Because, the configuration file XML or vbox will be having the disk, snapshots, attached drives and log files location differently based on old host.
Either these files should be copied properly on the correct location in new host as per on XML file or, modify the XML file with correct new location.
Do share your issues on this.