Increasing XP.vdi
Posted: 16. Jul 2013, 08:03
I am trying to increase the size of my VDI. I've read all the posts on this an keep getting a syntax error.
I've used various versions of the following:
VBoxManage modifyhd "/Users/[name]/VirtualBox VMs/XP/XP.vdi" --resize 40960
and get Syntax error: Invalid parameter 'VMs/XP/XP.vdi"'
Terminal doesn't seem to like the space between VirtualBox and VMs. I've also tried:
VBoxManage modifyhd /Users/[name]/VirtualBox VMs/XP/XP.vdi --resize 40960
VBoxManage modifyhd /Users/[name]/VirtualBox\ VMs/XP/XP.vdi --resize 40960
VBoxManage modifyhd "/Users/[name]/VirtualBox\ VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd "Users/[name]/VirtualBox\ VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd "Users/[name]/VirtualBox VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd /Users/[name]/VirtualBox\ VMs/XP/XP.vdi --resize 40960
and get the same syntax error message.
I've also tried using the UUID as follows:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443|XP.vdi --resize 40960
and got the following error message:
VBoxManage: error: Could not find file for the medium '/Users/lindacollett/02c93f83-2dfa-45cb-a01f-e6cdaf0e7443|XP.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
Here is my hd info:
UUID: 3ea5a80c-0955-4028-bfde-b0e786684944
Parent UUID: base
Format: VDI
Location: /Users/[name]/VirtualBox VMs/XP/XP.vdi
State: locked read
Type: normal
Usage: XP (UUID: 5f2d3271-9429-425c-8ef5-f1874de0eaea) [Snapshot 1 (UUID: d95e4d49-b450-4237-abd2-6a1110108f91)]
UUID: 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443
Parent UUID: 3ea5a80c-0955-4028-bfde-b0e786684944
Format: VDI
Location: /Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi
State: locked write
Type: normal
Usage: XP (UUID: 5f2d3271-9429-425c-8ef5-f1874de0eaea)
I've also tried:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443 --resize 40960
Error message received:
VBoxManage: error: Failed to lock media when compacting '/Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi'
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "Resize(cbResize, progress.asOutParam())" at line 539 of file VBoxManageDisk.cpp
I get the same error message when I try VBoxManage modifyhd 3ea5a80c-0955-4028-bfde-b0e786684944 --resize 40960 too.
I am a novice with this and any help would be greatly appreciated.
I've used various versions of the following:
VBoxManage modifyhd "/Users/[name]/VirtualBox VMs/XP/XP.vdi" --resize 40960
and get Syntax error: Invalid parameter 'VMs/XP/XP.vdi"'
Terminal doesn't seem to like the space between VirtualBox and VMs. I've also tried:
VBoxManage modifyhd /Users/[name]/VirtualBox VMs/XP/XP.vdi --resize 40960
VBoxManage modifyhd /Users/[name]/VirtualBox\ VMs/XP/XP.vdi --resize 40960
VBoxManage modifyhd "/Users/[name]/VirtualBox\ VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd "Users/[name]/VirtualBox\ VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd "Users/[name]/VirtualBox VMs/XP/XP.vdi" --resize 40960
VBoxManage modifyhd /Users/[name]/VirtualBox\ VMs/XP/XP.vdi --resize 40960
and get the same syntax error message.
I've also tried using the UUID as follows:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443|XP.vdi --resize 40960
and got the following error message:
VBoxManage: error: Could not find file for the medium '/Users/lindacollett/02c93f83-2dfa-45cb-a01f-e6cdaf0e7443|XP.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
Here is my hd info:
UUID: 3ea5a80c-0955-4028-bfde-b0e786684944
Parent UUID: base
Format: VDI
Location: /Users/[name]/VirtualBox VMs/XP/XP.vdi
State: locked read
Type: normal
Usage: XP (UUID: 5f2d3271-9429-425c-8ef5-f1874de0eaea) [Snapshot 1 (UUID: d95e4d49-b450-4237-abd2-6a1110108f91)]
UUID: 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443
Parent UUID: 3ea5a80c-0955-4028-bfde-b0e786684944
Format: VDI
Location: /Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi
State: locked write
Type: normal
Usage: XP (UUID: 5f2d3271-9429-425c-8ef5-f1874de0eaea)
I've also tried:
VBoxManage modifyhd 02c93f83-2dfa-45cb-a01f-e6cdaf0e7443 --resize 40960
Error message received:
VBoxManage: error: Failed to lock media when compacting '/Users/[name]/VirtualBox VMs/XP/Snapshots/{02c93f83-2dfa-45cb-a01f-e6cdaf0e7443}.vdi'
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "Resize(cbResize, progress.asOutParam())" at line 539 of file VBoxManageDisk.cpp
I get the same error message when I try VBoxManage modifyhd 3ea5a80c-0955-4028-bfde-b0e786684944 --resize 40960 too.
I am a novice with this and any help would be greatly appreciated.