Tuesday, 3 December 2019

virtual machine - Failure to resize a virtualbox volume


I want to increase the size of my virtual machine. Having read these


https://stackoverflow.com/questions/11659005/how-to-resize-a-virtualbox-vmdk-file


How to change fixed size VDI with modifyhd command in Windows?


I cloned the vmdk file into vdi. However, when using


VBoxManage.exe modifyhd cloned.vdi --resize 102400

I received the error message


VBoxManage.exe: error: Could not find file for the medium 'C:\Program Files\Oracle\VirtualBox\cloned.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp

How should I proceed?



Answer



You should do the following instead:


VBoxManage.exe modifyhd "%UserProfile%\VirtualBox VMs\\.vdi" --resize 102400


  • %UserProfile% is C:\Users\

  • Replace with the name of your virtual machine.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...