Page 1 of 1

How to convert a fixed-sized disk into a dynamic one?

Posted: 5. Mar 2009, 00:14
by pistacchio
Like in the subject. I'm Using Linux (Ubuntu) as Host and Windows XP as Guest. The current .vdi is 10 GB and I'd like to make it grow dynamically. Or alternatively change its size to a larger one.

Any help appreciated.
GdP

Re: How to convert a fixed-sized disk into a dynamic one?

Posted: 5. Mar 2009, 00:28
by vbox4me2
Create a new dynamic VDI and use the clonezilla liveCD iso version.

Re: How to convert a fixed-sized disk into a dynamic one?

Posted: 6. Mar 2009, 01:32
by Sasquatch
See the VirtualBox FAQ for changing the virtual drive size.

Re: How to convert a fixed-sized disk into a dynamic one?

Posted: 23. Mar 2009, 00:25
by compay
I've made it with VBoxManage like this:
"VBoxManage clonehd -format RAW <fixed-size VDI> <clone hard disk in format RAW>"
and then:
"VBoxManage convertfromraw <clone hard disk in format RAW> <dynamic VDI>"
If you defrag your HDD in the guest and write zeros to freespace, as explained in the tutorial, you will end up with a compacted VDI as well.
The reverse:
"VBoxManage clonehd -format RAW <dynamic VDI> <clone hard disk in format RAW>"
does not seem to function - why? - I do not know till now, and still get no explanation in this forum.

Re: How to convert a fixed-sized disk into a dynamic one?

Posted: 19. Nov 2009, 22:33
by sgornick