Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It's said that VirtualBox's VBoxManage modifyhd --resize command can only be used on either VDI or VHD files. Sadly, I have a VirtualBox image that is in VMDK format, and I don't know how to convert it to those other two formats.

share|improve this question
Is clonehd not an option for you? – rozcietrzewiacz Aug 15 '11 at 11:31
If it converts to VDI, it is. – Tshepang Aug 15 '11 at 11:32
up vote 14 down vote accepted

You can use a two-step procedure then - first, use the clonehd command to create a VDI image:

VBoxManage clonehd aaaa.vmdk --format VDI aaaa.vdi

(Have a look also at other options to clonehd, like --variant. To read the help, just run VBoxManage | less).

Once you have the .vdi file, you can proceed with your modifications.

share|improve this answer
This even works if the VMDK file points to (parts of) a raw disk image (as created by VBoxManage internalcommands createrawvmdk). – krlmlr Oct 23 '14 at 15:59

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.