Page 1 of 1
[Solved] extend vmdk from 22GB to 60GB
Posted: 21. Dec 2011, 18:08
by Rpera
Hello all,
First of all thank you for this wonderful forum, and of course this wonderful tool also!
I will try to explain my problem...I already look for it but unfortunately I didn't find exactly my problem in a previous tread.
So my setup is:
- HOST: CENTOS5.5
- GUEST:REDHAT 4.7
I have a guest machine with 22Gb but unfortunately I'm almost running out of disk space. In the machine I don't have a disc a *.vdi file. My whole guest machine was exported as a *.ora file and now the disc is a *.vmdk.
From the beginning:
I first create a dynamic disk with the max size of 22GB. Later on I did a "export application" to run this guest in another Host (CENTOS5.5) and when import the application I have a *.vdmk disc.
So how can I resize this let's say to 60GB ?
Can I use this command?
VBoxmanagehd modifyhd redhadt4.7.vdmk --resize 60000
If so I must umount the disc from the guest? Basically I don't know how to do this.
So your help will be very appreciated.
Thank you in advance.
Best Regards,
R&P
Re: extend vmdk from 22GB to 60GB
Posted: 21. Dec 2011, 19:14
by Perryg
The resize feature only works for VDI & VHD and must be a dynamic drive.
You can convert the VMDK to VDI and it should work.
I suggest you make a clone of the guest and format it to VDI and see if you can extend the partition on the clone.
Re: extend vmdk from 22GB to 60GB
Posted: 21. Dec 2011, 19:18
by Rpera
So what are my options here?
Is out there any process that could change my vmdk into a vdi file? and after that apply the resize option?
Thank you.
Best Regards,
R&P
Re: extend vmdk from 22GB to 60GB
Posted: 21. Dec 2011, 19:29
by Perryg
VBoxManage will do this for you.
See Chapter 8.23 VBoxManage clonehd & then 8.22 VBoxManage modifyhd
You can also try
CloneVDI Tool but this requires Wine in the host since it is a Windows program.
Remember this only increases the storage unit. The partitions will not be changed and you will need to do that yourself.
Re: extend vmdk from 22GB to 60GB
Posted: 21. Dec 2011, 20:01
by Rpera
Thanks for your fast support.
I will create a test machine and replicate all of the steps on that one first.
I will need help on the last step but let's go on baby steps.
I will post more news soon.
Thank you once again.
Cheers,
R&P
Re: extend vmdk from 22GB to 60GB
Posted: 29. Dec 2011, 18:27
by Rpera
Hello,
Finally I've got a little time to move forward with this.
I convert the disc from vmdk to vdi with success. The problem is when i try to resize the file.
Here is my output:
C:\Users\myuser\VirtualBox VMs\MQA-Db>VboxManage modifyhd MQA-Db-disk1.vdi --resize 50000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!
I'm I doing something wrong?
Could someone point me in the right direction please?
Thanks in advance!
Cheers,
R&P
Re: extend vmdk from 22GB to 60GB
Posted: 29. Dec 2011, 18:57
by frank
Resizing is currently only supported for .vdi files. We will eventually implement this for .vmdk files but no ETA, sorry.
Re: extend vmdk from 22GB to 60GB
Posted: 29. Dec 2011, 19:04
by Rpera
Thank you for your reply.
I'm trying to resize the *.vdi file not the *.vmdk file.
I first convert the *.vdmk to a *.vdi file. And then I tried to resize the *.vdi file it give me that error.
What are my options here?
Thanks!
Cheers,
R&P
[Solved]Re: extend vmdk from 22GB to 60GB
Posted: 30. Dec 2011, 16:36
by Rpera
Hello,
I just want to share with you the way that I found to overcome my problem.
first:
C:\Windows\system32> VboxManage clonehd "C:\Users\dummyuser\VirtualBox
VMs\MQA-Db\MQA-Db-disk1.vmdk" "C:\Users\dummyuser\VirtualBox VMs\MQADb\
mqadb1.vdi" --format vdi
Next:
C:\Windows\system32>VboxManage modifyhd "C:\Users\dummyuser\VirtualBox
VMs\MQA-Db\mqadb1.vdi" --resize 100000
and finally:
You need to resize your discs partitions in your VM. I did it with Gparted. (
http://gparted.sourceforge.net/download.php).
Its easy just boot your VM with the GParted live CD and allocate the new space to the partition that you want.
Cheers!
and Greetings from Portugal.
Re: [Solved] extend vmdk from 22GB to 60GB
Posted: 4. Jul 2012, 22:01
by josri
Hi,
I am running Ubuntu 12.04 on VirtualBox 4.1.18. I want to increase the disk space on the VM. "VBoxManage.exe modifyhd ubuntu12.04.vid --resize 16128" gives the foll error.
Progress state: VBOX_E_NOT_SUPPORTED
VBOXManage.exe: error: Resize hard disk operation for this format is not implemented yet!
Please hlep!
Jo
Re: [Solved] extend vmdk from 22GB to 60GB
Posted: 4. Jul 2012, 22:13
by Perryg
What is the size of the virtual drive now?
Have you tried using absolute path including file name and extension?
Re: [Solved] extend vmdk from 22GB to 60GB
Posted: 5. Jul 2012, 11:44
by Rpera
josri wrote:Hi,
I am running Ubuntu 12.04 on VirtualBox 4.1.18. I want to increase the disk space on the VM. "VBoxManage.exe modifyhd ubuntu12.04.vid --resize 16128" gives the foll error.
Progress state: VBOX_E_NOT_SUPPORTED
VBOXManage.exe: error: Resize hard disk operation for this format is not implemented yet!
Please hlep!
Jo
Hello,
Please notice that your file name ended in a non virtual box file.
You correct command should be "VBoxManage.exe modifyhd
ubuntu12.04.vdi --resize 16128"
And to give this command as it is you must be in the folder of your VM file.
After this Follow my steps in my last post and you will succeed.
Cheers,
R&P
Re: [Solved] extend vmdk from 22GB to 60GB
Posted: 5. Jul 2012, 12:16
by mpack
Rpera wrote:Please notice that your file name ended in a non virtual box file.
I expect that was a typo on these forums, not on the actual command. If he actually typed that command he would get "file not found" rather than "not supported".
I expect that the real cause of this problem is the usual one of not reading the manual, and hence not knowing that the size to enter is absolute, not additive - i.e. you can't enter a size that is smaller than the current size.