Hacker News new | ask | show | jobs
by yesno 5654 days ago
Hi mitchellh. I haven't used vagrant yet but the tool looks great! It will probably be a superb addition to my day-to-day toolbox (I'm a new VirtualBox user). Thank you for creating the tool.

In a probably unrelated question to vagrant, would you happen to know if VirtualBox virtual hdd can be shrinked and expanded? And if VB can, does vagrant support that?

Use-case: one 8GB (only use 2GB total) vm instance to be moved from Windows Server to Ubuntu Linux. Or for cloning purposes. Copying 8GB probably would take a lot of time, compacting it to 2GB first then copying it to multiple machines probably would be a lot faster.

Thanks again for creating vagrant!

1 comments

VirtualBox does not support resizing disks. You can use other tools (qemu command line comes to mind) to do things like this, but it takes a LONG time and is generally not worth it. There is a lot of work that needs to be done in this space. "libguestfs" looks promising for the future, but I haven't evaluated if its useful for your purpose at the moment.
According to this: http://sparcv9.blogspot.com/2010/12/virtualbox-4-beta-on-sol... resizing disks is coming in version 4!