Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am a complete newbie. i'm hosting VM on OS X using virtualbox. I'm trying to resize the virtual hard drive by using the following command in the terminal.

VBoxManage modifyhd "<absolute path ending in:>" ubuntu_vm-disk1.vmdk --resize 25480"

I used a disk size of 25480 (i'm not really sure how to pick the correct size. and I got the following error:

Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!

virtualbox version 4.1.18

I don't really even know what to ask. What am I doing wrong?


I removed all snapshots and put "" around the file path. Now I'm getting the following error:

VBoxManage: error: Failed to lock media when compacting '/Users/dwstein_old/VirtualBox VMs/Ubuntu_120723/ubuntu_vm-disk1.vmdk'
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Medium, interface IMedium, callee nsISupports
Context: "Resize(cbResize, progress.asOutParam())" at line 522 of file VBoxManageDisk.cpp
VBoxManage: error: Code VBOX_E_INVALID_OBJECT_STATE (0x80BB0007) - Current object state prohibits operation (extended info not available)
share|improve this question

migrated from serverfault.com Sep 19 '12 at 13:58

This question came from our site for professional system and network administrators.

Um. No. Not no newbies. dwstein, the comment was meant to ask you to improve your question and thereby improve your chances of getting a useful answer. The FAQ is quite helpful in that regard. @JohnGardeniers, however, could have improved his comment by being more specific about which areas of the FAQ would be helpful to you. Without being able to read his mind, I'm guessing he meant the introduction, which says "Server Fault is for Information Technology Professionals needing expert answers related to managing computer systems in a professional capacity," and if so, he should have said so. –  pjmorse Sep 19 '12 at 13:32
@pjmorse, I don't point people to specific areas of the FAQ because I want them to read all of it. As it only takes a few minutes to read the whole thing it's not asking much lot of people. In this instance other sections of the FAQ were also relevant. –  John Gardeniers Sep 19 '12 at 23:12

1 Answer 1

VBoxManage modifyhd cannot (yet) downsize disk images. Your .vmdk file is probably already larger than the 25480 MB you want to resize it to. Check the actual size of that file:

VBoxManage showhdinfo /PATH/TO/ubuntu_vm-disk1.vmdk
share|improve this answer
Thanks but the .vmdk 'logical size' is only 15719 MBytes (current size on disk : 6066 MBytes). –  dwstein Sep 6 '12 at 14:17
Upgrade to 4.1.20 and try again. –  Ansgar Wiechers Sep 6 '12 at 14:52
Thanks! I upgraded and got the same error. –  dwstein Sep 6 '12 at 15:08
what is the output of VBoxManage showhdinfo /PATH/TO/ubuntu_vm-disk1.vmdk? (you may obfuscate/omit UUID and location) –  Ansgar Wiechers Sep 6 '12 at 16:34
Accessible: yes Logical size: 15719 MBytes Current size on disk: 6066 MBytes Type: normal (base) Storage format: VMDK Format variant: dynamic default –  dwstein Sep 6 '12 at 17:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.