Virtual Media Manager - Can't release

Discussions related to using VirtualBox on Linux hosts.

Virtual Media Manager - Can't release

Postby dvanzo » 24. Apr 2009, 22:33

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
dvanzo
 
Posts: 6
Joined: 24. Apr 2009, 22:26
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: WinXP

Re: Virtual Media Manager - Can' release

Postby Sasquatch » 24. Apr 2009, 22:37

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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Virtual Media Manager - Can't release

Postby dvanzo » 26. Apr 2009, 01:16

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
dvanzo
 
Posts: 6
Joined: 24. Apr 2009, 22:26
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: WinXP

Re: Virtual Media Manager - Can't release

Postby Sasquatch » 26. Apr 2009, 19:57

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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Virtual Media Manager - Can't release

Postby dvanzo » 27. Apr 2009, 02:05

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
dvanzo
 
Posts: 6
Joined: 24. Apr 2009, 22:26
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: WinXP

Re: Virtual Media Manager - Can't release

Postby Sasquatch » 27. Apr 2009, 12:18

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?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Virtual Media Manager - Can't release

Postby dvanzo » 27. Apr 2009, 15:51

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
dvanzo
 
Posts: 6
Joined: 24. Apr 2009, 22:26
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: WinXP

Re: Virtual Media Manager - Can't release

Postby Sasquatch » 27. Apr 2009, 15:54

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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Virtual Media Manager - Can't release

Postby dvanzo » 27. Apr 2009, 16:01

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
dvanzo
 
Posts: 6
Joined: 24. Apr 2009, 22:26
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: WinXP

Re: Virtual Media Manager - Can't release

Postby Sasquatch » 27. Apr 2009, 16:28

Command changed to clonehd. All formats are now supported. You should have checked the vboxmanage parameter help from either the terminal or manual.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Virtual Media Manager - Can't release

Postby dvanzo » 27. Apr 2009, 18:27

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
dvanzo
 
Posts: 6
Joined: 24. Apr 2009, 22:26
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: WinXP


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 17 guests