Reload existing machines?

This is for discussing general topics about how to use VirtualBox.
Post Reply
pszwarc
Posts: 1
Joined: 20. Nov 2009, 13:10
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Vista, 2003

Reload existing machines?

Post by pszwarc »

After a disk crash I had to do a full reinstall (Windows 7 64-bits). Fortunately, all my data files (including VBox's virtual machines and disks), but not my profile files, were on a different drive. Unfortunately, unlike MS's Virtual PC, I cannot easily add an existing virtual machine into the management console.

Is there a quicker – and less error-prone – way of doing it than creating new, blank machines, then editing the XML file to replace the paths and machine UIDs to point to the actual ones?

I would suggest that the "use existing machine" item be added as a choice in the new machine creation wizard.

Thanks!
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Reload existing machines?

Post by vbox4me2 »

Each VM has a VDI and a XML file, without the xml your left with some typing work.
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Reload existing machines?

Post by MarkCranness »

I think you're stuck with editing XML.

You can add an existing machine (that you have the xml for) using the command line. See section 8.3 of the user manual.
BUT the machine is not allowed to have any attached disk images attached, which still means editing the machine XML (to remove the attached disks) before they can be registered.
Possibly editing the machine xml to remove the hard disks then registering them then re-attaching the hard disks is easier than what you are doing (or not)?
Post Reply