Super User is a question and answer site for computer enthusiasts and power users. 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

I have a vm of windows server 2003 that someone created but they made it way to small and I ran already out of space.

How can I re size it?

I have virtual box 4.1 and the file type of the vm is .vmdk

I am running the vm on a windows 7 machine.

Edit

I get the following error when I try to resize hard disk.

Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize hard disk operation for this format is not impleme
nted yet!



UUID:        e6ab2a89-7db9-4445-a3f0-5d59cc5aee6b
Parent UUID: base
Format:      VMDK
Location:    C:\SomePath\MyVm.vmdk
State:       created
Type:        normal
Usage:       Rezolution - RezRez (UUID: b3cede23-71a7-40a3-a88e-1c49da60da4c)


C:\Program Files\Oracle\VirtualBox>VBoxManage modifyvdi --resize 42000 e6ab2a89-
7db9-4445-a3f0-5d59cc5aee6b
share|improve this question

First, shut down the machine and use either VBoxManage list hdds or VBoxManage showvminfo "your vm name" | grep UUID to find the UUID/filename of the disk:

$ VBoxManage list hdds
UUID:        1234aa6e-77e9-4997-b703-f0db02f95678 # <--
Parent UUID: base
Format:      VMDK
Location:    /home/chobo2/VirtualBox VMs/your-vm/your-vm.vdi
State:       created
Type:        normal
Usage:       your-vm (UUID: 4d38b281-bea8-43ba-9e00-aaab9e2e16da)

or

$ VBoxManage showvminfo "Ubuntu" | grep UUID
UUID:            4d38b281-bea8-43ba-9e00-aaab9e2e16da
Hardware UUID:   4d38b281-bea8-43ba-9e00-aaab9e2e16da
SATA Controller (0, 0): /home/chobo2/VirtualBox VMs/your-vm/your-vm.vdi
    (UUID: 1234aa6e-77e9-4997-b703-f0db02f95678)  # <--

Then, simply use VBoxManage modifyvdi --resize, where 42000 is the desired new size in MB:

$ VBoxManage modifyvdi --resize 42000 1234aa6e-77e9-4997-b703-f0db02f95678
share|improve this answer
    
I am running it on a windows 7 machine will this work? – chobo2 Aug 9 '12 at 22:48
    
Sure, virtually all of the VirtualBox tools are available on all hosts. If you don't have cygwin, grep won't work. You can either search manually or use FindStr. – phihag Aug 9 '12 at 22:58
    
Hey, I been quite busy and did not want to try this till I was finished using the vm. I tried the steps but I get this error:Progress state: VBOX_E_NOT_SUPPORTED VBoxManage.exe: error: Resize hard disk operation for this format is not impleme nted yet! – chobo2 Aug 20 '12 at 19:52
    
It looks like your disk is in vmdk format. Either use VMWare to resize the disk, or convert it to vdi with VBoxManage clonehd C:\SomePath\MyVm.vmdk --format vdi C:\SomePath\MyVm.vdi and then resize it. – phihag Aug 20 '12 at 20:00
    
Which VmWare product do I need? Is it free? – chobo2 Aug 20 '12 at 20:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .