Error migrating virtual machines with snapshots
Posted: 2. Nov 2009, 04:04
Hi,
I have been having a little bit of trouble migrating my virtual machines (not virtual hard disks) with snapshots over to a different partition. I originally created 2 virtual machines with the default location in C:\Document and Settings\<user>\.VirtualBox\Machines.
However, I wanted to migrate it to another partition and found the following post in the forums that appeared to be exactly what I was looking for:
http://forums.virtualbox.org/viewtopic.php?p=34609
This worked great for the first virtual machine I migrated over with a couple of minor edits.
The post recommends modifying the virtualmachine.xml file to remove all entries with the <HardDiskAttachments> tag. I didn't find this tag in my virtualmachine.xml file, but I did notice the tags <AttachedDevice> and when I removed those entries as instructed in the forum post, I was able to migrate and re-register the VM successfully.
However, when I tried to migrate my second VM, I received some UI errors when viewing the snapshots through the Virtual Media Manager. I did delete the VM from VBox, then copy the Machines directory to the new location and then successfuly register the virtual machine back with VBox. The difference between the 1st and the 2nd VM is that the 2nd one (the one that I encountered errors) had 2 snapshots associated with it. The 1st (the one that worked successfully) had no snapshots.
The error that I get from the Virtual Media Manager when I hover the cursor over the snapshot entry within the virtual hard disk (.vdi) is the following:
Could not open the hard disk "C:\Documents and Settings\<user>\.VirtualBox\Machines\<Name of VM>\Snapshots\<UUID>.vdi"
VD: error opening image file "C:\Documents and Settings\<user>\.VirtualBox\Machines\<Name of VM>\Snapshots\<UUID>.vdi" (VERR_PATH_NOT_FOUND)
I checked the virtualmachine.xml file for any direct paths but they all look to be relative paths. Yet, the Virtual Media Manager will still list the snapshot location back to the C:\Documents and Setting directory.
Here's my setup:
VBox version: 3.0.6
Host OS: MS WindowsXP SP3
Any help or advice is greatly appreciated.
I have been having a little bit of trouble migrating my virtual machines (not virtual hard disks) with snapshots over to a different partition. I originally created 2 virtual machines with the default location in C:\Document and Settings\<user>\.VirtualBox\Machines.
However, I wanted to migrate it to another partition and found the following post in the forums that appeared to be exactly what I was looking for:
http://forums.virtualbox.org/viewtopic.php?p=34609
This worked great for the first virtual machine I migrated over with a couple of minor edits.
The post recommends modifying the virtualmachine.xml file to remove all entries with the <HardDiskAttachments> tag. I didn't find this tag in my virtualmachine.xml file, but I did notice the tags <AttachedDevice> and when I removed those entries as instructed in the forum post, I was able to migrate and re-register the VM successfully.
However, when I tried to migrate my second VM, I received some UI errors when viewing the snapshots through the Virtual Media Manager. I did delete the VM from VBox, then copy the Machines directory to the new location and then successfuly register the virtual machine back with VBox. The difference between the 1st and the 2nd VM is that the 2nd one (the one that I encountered errors) had 2 snapshots associated with it. The 1st (the one that worked successfully) had no snapshots.
The error that I get from the Virtual Media Manager when I hover the cursor over the snapshot entry within the virtual hard disk (.vdi) is the following:
Could not open the hard disk "C:\Documents and Settings\<user>\.VirtualBox\Machines\<Name of VM>\Snapshots\<UUID>.vdi"
VD: error opening image file "C:\Documents and Settings\<user>\.VirtualBox\Machines\<Name of VM>\Snapshots\<UUID>.vdi" (VERR_PATH_NOT_FOUND)
I checked the virtualmachine.xml file for any direct paths but they all look to be relative paths. Yet, the Virtual Media Manager will still list the snapshot location back to the C:\Documents and Setting directory.
Here's my setup:
VBox version: 3.0.6
Host OS: MS WindowsXP SP3
Any help or advice is greatly appreciated.