[SOLVED] Increasing Disk Size.

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
tomt
Posts: 25
Joined: 11. Dec 2008, 18:18

[SOLVED] Increasing Disk Size.

Post 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
Last edited by tomt on 11. Apr 2013, 10:47, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Increasing Disk Size.

Post by Perryg »

tomt
Posts: 25
Joined: 11. Dec 2008, 18:18

Re: Increasing Disk Size.

Post by tomt »

Many thanks..

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

Anything I can do?

Thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Increasing Disk Size.

Post 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.
tomt
Posts: 25
Joined: 11. Dec 2008, 18:18

Re: Increasing Disk Size.

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Increasing Disk Size.

Post by Perryg »

It explains everything in the CloneVDI docs.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Increasing Disk Size.

Post 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?
tomt
Posts: 25
Joined: 11. Dec 2008, 18:18

Re: Increasing Disk Size.

Post 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 :(
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Increasing Disk Size.

Post 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.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Increasing Disk Size.

Post 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
tomt
Posts: 25
Joined: 11. Dec 2008, 18:18

Re: Increasing Disk Size.

Post 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 :)
tomt
Posts: 25
Joined: 11. Dec 2008, 18:18

Re: Increasing Disk Size.

Post 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 :)
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Increasing Disk Size.

Post by noteirak »

Increase the partition size inside the guest
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
tomt
Posts: 25
Joined: 11. Dec 2008, 18:18

Re: Increasing Disk Size.

Post by tomt »

Thanks sorted :)
Post Reply