I recently needed to resize my CentOS VDI using the following command:
"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd "c:\CentOS\CentOS.vdi" --resize 20480
Unfortunately it kept failing with this error message:
VBoxManage.exe: error: Failed to create the VirtualBox object! VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available) VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.
After pulling my hair for almost an hour I finally tried running the command from a NON-elevated command prompt. Yes, that’s right, this command apparently MUST NOT be run with administrator privileges. Weird.
Also, this is CentOS with an LVM partition which can’t be resized with GParted. To resize an LVM partition follow these steps.