Page 1 of 1

resizing the VM on XP

Posted: 21. Nov 2011, 14:41
by denisbarbarossa
Hello I try to resize the VM from 10 to 20 Mb because it's already full with XP SP3
in the terminal I put :
VBoxManage modifyhd "/Users/denisbarbarossa/VirtualBox VMs/WinXP" --resize 20000

and get the answer...
VBoxManage: error: The medium '/Users/denisbarbarossa/VirtualBox VMs/WinXP' can't be used as the requested device type
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Medium, interface IMedium, callee nsISupports
Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp

I tried many path
I tried with clonehd, no much luck

some ideas ??

Re: resizing the VM on XP

Posted: 21. Nov 2011, 16:35
by Perryg
VBoxManage modifyhd "/Users/denisbarbarossa/VirtualBox VMs/WinXP" --resize 20000
You need the absolute path including the file name and extension.
Probably the following but you need to make sure

Code: Select all

VBoxManage modifyhd "/Users/denisbarbarossa/VirtualBox VMs/WinXP/WinXP.vdi" --resize 20000
Or you can just run the command while in the appropriate folder.

Code: Select all

VBoxManage modifyhd WinXP.vdi" --resize 20000