increasing disk size of the virtual machine

This is for discussing general topics about how to use VirtualBox.
Post Reply
LK1234
Posts: 2
Joined: 22. Oct 2012, 21:50

increasing disk size of the virtual machine

Post by LK1234 »

My computer is running windows OS. I have virtualbox installed on my C drive running an Ubuntu image. How do you increase harddisk size on the image, and have the additional HD size land on a non-C drive? I tried Run VirtualBox and go to File -> Disk Manager along with GPARTED, but the additional HD size landed on C drive. I also tried this command, but it doesn't really increase the actual HD size of the image. That is, when u print out how big your HD is, the new HD size shows, but when u try to use the HD, it still has the original (smaller) size.

VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB

Thanks
Zium
Posts: 69
Joined: 16. Oct 2009, 23:09
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Win98, WinXP, Win2003

Re: increasing disk size of the virtual machine

Post by Zium »

Create a new disk (store it or another drive) and attach it to your VM,
Or move your existing disk to another drive.

Which one do you prefer ?
LK1234
Posts: 2
Joined: 22. Oct 2012, 21:50

Re: increasing disk size of the virtual machine

Post by LK1234 »

may be the later
Zium
Posts: 69
Joined: 16. Oct 2009, 23:09
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Win98, WinXP, Win2003

Re: increasing disk size of the virtual machine

Post by Zium »

So dettach the disk from your VM, remove it from the virtual media manager (choose keep file to avoid deleting), move the corresponding file on your disks and attach it again to your VM.
Your could also consider moving your entire VM folder from one disk to another if you're using the 4.x folder structure.
Post Reply