Mark Cranness wrote:
> On 1 November 2011 00:26, Voelker, Bernhard wrote:
> > I have a VM with 3 consecutive snapshots, but there's an inaccessible
> > VDI attached to the oldest snapshot. Actually, I removed that file
> > after attaching a clone of it to the VM ... bad idea. :-(
>
> Close down all running VMs, and the VBox UI, and make sure no
> instances of VirtualBox.exe or VBoxSvc.exe are running, then...
>
> Manually edit the VirtualBox.xml and <VM>.xml files to patch up the
> snapshots and remove the inaccessible VDI.
>
> BACKUP beforehand.
>
> AFAIK, for VB 3.x, you will need to edit the VirtualBox.xml AND
> <VMName>.xml files.
> For VB 4.x, you will only need to edit the <VMName>.vbox file.
Thanks for the suggestion, however, it didn't work.
I removed the <HardDisk> from the <MediaRegistry>, and the corresponding
<AttachedDevice> from the <StorageController> of the <Snapshot>:
<VirtualBox ...>
<Machine ...>
...
<MediaRegistry>
<HardDisks>
<HardDisk uuid="{216377c7-1bc3-4047-bba9-a00fff877f9b}"
location="ecside.vdi" format="VDI" type="Normal">
<HardDisk uuid="{af9ffb1a-3ce4-419c-ab45-1129ddb5c9b7}"
location="Snapshots/{af9ffb1a-3ce4-419c-ab45-1129ddb5c9b7}.vdi" format="VDI">
<HardDisk uuid="{6ce508d3-d535-4238-aaf0-db1018a3d243}"
location="Snapshots/{6ce508d3-d535-4238-aaf0-db1018a3d243}.vdi" format="VDI"/>
</HardDisk>
</HardDisk>
...
</HardDisks>
</MediaRegistry>
<Snapshot...>
...
<StorageControllers>
<StorageController name="IDE Controller" type="PIIX4" PortCount="2"
useHostIOCache="true" Bootable="true">
<AttachedDevice type="HardDisk" port="0" device="0">
<Image uuid="{216377c7-1bc3-4047-bba9-a00fff877f9b}"/>
</AttachedDevice>
... other devices ...
</StorageController>
</StorageControllers>
</Snapshot>
</Machine>
</VirtualBox>
But after that, VBox came up with this message:
Failed to open virtual machine located in D:/ECSIDEVM/ecsidevm/ecside.vbox.
Medium 'D:\ECSIDEVM\ecsidevm\ecsidevm-disk3.vdi' cannot be closed because it
is still attached to 1 virtual machines.
Result Code: VBOX_E_OBJECT_IN_USE (0x80BB000C)
Component: Medium
Interface: IMedium {53f9cc0c-e0fd-40a5-a404-a7a5272082cd}
Callee: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}
Callee RC: E_FAIL (0x80004005)
This is irritating, because that is not the VDI I removed but another one.
Do you think I could have more luck with a clone of the VM?
Thank you & have a nice day,
Berny
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community