Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resizing VirtualBox disk



On 02/05/2011 10:58 AM, David Kramer wrote:
> The problem I'm having is when I run that command, I get the following
> confusing error message (indented for clarity):
>
> david at lexa:~/.VirtualBox/VDI$ VBoxManage createhd
>    --filename  WinXPBIG.vdi --size 20480
> 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
> Disk image created. UUID: 701d381e-0b13-4d8e-8b04-1ed2ff74983e
>
> david at lexa:~/.VirtualBox/VDI$ VBoxManage clonehd
>     --existing  WinXPPro.vdi WinXPBIG.vdi
> VBoxManage: error: Cannot register the hard disk
> '/media/extbara160/david/.VirtualBox/VDI/WinXPPro.vdi'
> {f92bed62-be92-4322-b278-adda513d3f4b} because a hard disk
> '/home/david/.VirtualBox/VDI/WinXPPro.vdi' with UUID
> {f92bed62-be92-4322-b278-adda513d3f4b} already exists
> VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057),
> component VirtualBox, interface IVirtualBox, callee nsISupports
> Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType,
> AccessMode_ReadWrite, pMedium.asOutParam())" at line 209 of file
> VBoxManageDisk.cpp
>
> Obviously WinXPPro.vdi is the old 8GB image and WinXPBIG.vdi is the new
> 20GB image.
>
> I have tried several variants on this command, and I can't figure out
> what the problem is.  I did verify that
> 'f92bed62-be92-4322-b278-adda513d3f4b' is the UUID of the existing disk
> by looking at the xml file for the VM.
>
> What am I doing wrong?

I've run into this before.  This is maddeningly stupid, I know, but if 
you give it full absolute paths to the .vdi files, then that error 
message goes away.  Moronic, but works.

HTH,

DR





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org