Page 1 of 1

Virtual Media Manager - Can't release

Posted: 24. Apr 2009, 22:33
by dvanzo
Hello!!

I'm a very happy user of VirtualBox (2.1.4). The host it's Ubuntu 9.0.4.

Trying to clone the XP image I use, the option to do this in the VMM it's grayed out.

The XP image have one snapshot. I'm not sure if it's a requisite to discard it before.

Any help?

TIA!!!

Regards,

Daniel

Re: Virtual Media Manager - Can' release

Posted: 24. Apr 2009, 22:37
by Sasquatch
Cloning is done through the command line. See the manual for how to do that.

As for the snapshot, if you want to have those changes added to the clone, you need to discard it. Be careful with that, as the icon with two arrows will not merge the snapshot with the VDI. Use the other one, with only one arrow. The description can be misleading, as a lot of users have pointed out.

Re: Virtual Media Manager - Can't release

Posted: 26. Apr 2009, 01:16
by dvanzo
Yes, I know that cloning it's done via command line. What I need (I wasn't clear enough) was to release the image after to try to clone it, and the release buttons was the grayed out...

Regards!!!

Daniel

Re: Virtual Media Manager - Can't release

Posted: 26. Apr 2009, 19:57
by Sasquatch
Was the VM running at that time? And a clone can be tested by just creating a new VM. Releasing a VDI with a snapshot is not recommended, and probably disabled as you noticed.

Re: Virtual Media Manager - Can't release

Posted: 27. Apr 2009, 02:05
by dvanzo
Sasquatch wrote:Was the VM running at that time? And a clone can be tested by just creating a new VM. Releasing a VDI with a snapshot is not recommended, and probably disabled as you noticed.
Nop, the VM wasn't running. What I'm trying to do it's to clone the current VM and not create a new one and install XP again...

Regards,

Daniel

Re: Virtual Media Manager - Can't release

Posted: 27. Apr 2009, 12:18
by Sasquatch
There is a howto here somewhere that describes that. The first step is to clone the VDI file. With a snapshot, you need to merge it with the VDI for those changes to be in the clone, like I said before here.

Now, you want to test this cloned drive. You do this by creating a new VM, and point it to use the cloned drive. How hard can it be?

Re: Virtual Media Manager - Can't release

Posted: 27. Apr 2009, 15:51
by dvanzo
Well, clone the vdi it's the problem. I tried to release it previously to avoid the error:

dvanzo@VOSTRO-DV:~/ImagenXP$ sudo VBoxManage clonevdi ./WinXP.vdi ./WinXP2.vdi
[sudo] password for dvanzo:
VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

[!] FAILED calling a->virtualBox->OpenHardDisk2(src, srcDisk.asOutParam()) at line 369!
[!] Primary RC = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error
[!] Full error info present: true , basic error info present: true
[!] Result Code = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error
[!] Text = Could not get the storage format of the hard disk '/root/.VirtualBox/WinXP.vdi' (VERR_FILE_NOT_FOUND)
[!] Component = HardDisk2, Interface: IHardDisk2, {ed6e2525-c2fd-42a4-917a-7a9045ac9e15}
[!] Callee = IVirtualBox, {339abca2-f47a-4302-87f5-7bc324e6bbde}


I thought that not releasing the vdi it's the cause of this error.

Regards,

Daniel

Re: Virtual Media Manager - Can't release

Posted: 27. Apr 2009, 15:54
by Sasquatch
You log in as user dvanzo, so all your VMs are registered for that user. Do you think that root has the same setup? No, so running the clone as root, using sudo, will give you a file not found error. Clone as normal user.

Re: Virtual Media Manager - Can't release

Posted: 27. Apr 2009, 16:01
by dvanzo
What a fast reply!!! Really appreciate your help!!

I did what you suggest:

dvanzo@VOSTRO-DV:~/ImagenXP$ VBoxManage clonevdi ./WinXP.vdi ./WinXP2.vdi
VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

[!] FAILED calling a->virtualBox->OpenHardDisk2(src, srcDisk.asOutParam()) at line 369!
[!] Primary RC = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error
[!] Full error info present: true , basic error info present: true
[!] Result Code = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error
[!] Text = Could not get the storage format of the hard disk '/home/dvanzo/.VirtualBox/WinXP.vdi' (VERR_FILE_NOT_FOUND)
[!] Component = HardDisk2, Interface: IHardDisk2, {ed6e2525-c2fd-42a4-917a-7a9045ac9e15}
[!] Callee = IVirtualBox, {339abca2-f47a-4302-87f5-7bc324e6bbde}


Regards,

Daniel

Re: Virtual Media Manager - Can't release

Posted: 27. Apr 2009, 16:28
by Sasquatch
Command changed to clonehd. All formats are now supported. You should have checked the vboxmanage parameter help from either the terminal or manual.

Re: Virtual Media Manager - Can't release

Posted: 27. Apr 2009, 18:27
by dvanzo
Yes, the solution was to use clonehd instead of clonevid.

The correct command:

VBoxManage clonehd /home/dvanzo/ImagenXP/WinXP.vdi /home/dvanzo/ImagenXP/WinXP2.vdi -format VDI

VERY important it's to give the full path of the vdi file (not relative ej: ./WinXP.vdi).

In regards to the can't release issue, only images without snapshots can be released.

Thank so much!!!

Regards,

Daniel