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 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
add comment

2 Answers

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
show 6 more comments

@phihag's solution should work just fine. Just in case you still need more guidance, there you go:

share|improve this answer
add comment

Your Answer

 
discard

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.