Page 1 of 1

[SOLVED] Increasing Disk Size.

Posted: 9. Apr 2013, 20:06
by tomt
Hi
I've created an 8GB VDI file, but now have run out of disk space.
Is there any way to increase this to 20GB ?

I have tried creating a new VDI and then running that and the existing on on a GParted VM.
The using dd I copied from the 8GB -> the 20GB

On boot I get lots of UUID errors.. can that be fixed or is there another way to increase the disk size. ?

Thanks

Re: Increasing Disk Size.

Posted: 9. Apr 2013, 20:27
by Perryg

Re: Increasing Disk Size.

Posted: 9. Apr 2013, 21:04
by tomt
Many thanks..

How about if the disk was created as a fixed disk and has snapshots?

Anything I can do?

Thanks

Re: Increasing Disk Size.

Posted: 9. Apr 2013, 21:18
by Perryg
Then you would need to clone the guest to get rid of the snapshots, or revert them one at a time.
But you would still need to deal with the fixed size problem. CloneVDI Tool will do this for you but you would need to run it using wine since it is a windows application.

Re: Increasing Disk Size.

Posted: 9. Apr 2013, 21:31
by tomt
Thanks again :)

Can you point me in the right direction for cloning the disk?
Are there any docs?

Could I copy the vdi to my windows PC to run the clonevdi tool?

Thanks again

Re: Increasing Disk Size.

Posted: 9. Apr 2013, 22:16
by Perryg
It explains everything in the CloneVDI docs.

Re: Increasing Disk Size.

Posted: 10. Apr 2013, 12:15
by mpack
tomt wrote:How about if the disk was created as a fixed disk and has snapshots?
The worst of both worlds! What would be the point of that?

Re: Increasing Disk Size.

Posted: 10. Apr 2013, 14:26
by tomt
Lack of understanding when creating it :oops:

I'm now stuck with an 8GB disk, that really needs to be 20GB and I'm struggling to get it to change :(

Re: Increasing Disk Size.

Posted: 10. Apr 2013, 14:44
by mpack
Well, as Perry said, CloneVDI should make a quick job of it.

What you need to do is clone the snapshot file, you can do enlargement (and compaction too I would suggest) at the same time.

Yes you could copy the VM folder to a Windows host to run CloneVDI (you wouldn't need to install VirtualBox there), but IMHO it's probably just as quick to download and install the Wine applet for the Mac - and possibly more useful for the future, because being able run CloneVDI again if you need to should be handy.

Re: Increasing Disk Size.

Posted: 10. Apr 2013, 18:51
by ChipMcK
mpack wrote:it's probably just as quick to download and install the Wine applet for the Mac.
WinOnX from Mac App Store http://itunes.apple.com/us/app/winonx/id421346233?mt=12. is the a newer Wine 'packager'. It does cost $4.99, but its process is the easiest I have used

Re: Increasing Disk Size.

Posted: 10. Apr 2013, 19:32
by tomt
mpack wrote:Well, as Perry said, CloneVDI should make a quick job of it.

What you need to do is clone the snapshot file, you can do enlargement (and compaction too I would suggest) at the same time.

Yes you could copy the VM folder to a Windows host to run CloneVDI (you wouldn't need to install VirtualBox there), but IMHO it's probably just as quick to download and install the Wine applet for the Mac - and possibly more useful for the future, because being able run CloneVDI again if you need to should be handy.
Thanks.
Last night I copied the VDI to my PC and ran it through CloneVDI.. The resulting file was the same size it didn't increase even though I'd selected the option and entered 20GB.

Should I have copied the entire VM folder across and run CloneVDi on the main VDI or the last snapshot ?

Thanks :)

Re: Increasing Disk Size.

Posted: 11. Apr 2013, 00:22
by tomt
Got it to clone and increase in size.

VirtualBox reports this VDI as 20GB via the VBManager

But when I boot in to openSuse I get :

Filesystem Size Used Avail Use% Mounted on
rootfs 5.0G 4.6G 133M 98% /
devtmpfs 495M 32K 495M 1% /dev
tmpfs 501M 0 501M 0% /dev/shm
tmpfs 501M 668K 501M 1% /run
/dev/sda2 5.0G 4.6G 133M 98% /
tmpfs 501M 0 501M 0% /sys/fs/cgroup
tmpfs 501M 0 501M 0% /media
tmpfs 501M 668K 501M 1% /var/run
tmpfs 501M 668K 501M 1% /var/lock
/dev/sda3 2.3G 504M 1.7G 24% /home

I was hoping to increase /
How do I do that ?

Thanks :)

Re: Increasing Disk Size.

Posted: 11. Apr 2013, 08:20
by noteirak
Increase the partition size inside the guest

Re: Increasing Disk Size.

Posted: 11. Apr 2013, 10:46
by tomt
Thanks sorted :)