Voelker, Bernhard wrote:

> 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>:
> 
> 
...
> 
> 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?


yes, a clone of the VM did the trick (... as I wasn't interested in the
other snapshots anyway). After that, I removed the whole original VM.

Thank you & have a nice day,
Berny

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community

Reply via email to