Howto increase hard disk size after installing a guest OS
-
- Posts: 2
- Joined: 9. Feb 2009, 06:29
I had chosen the dynamically expanding disk format because I was running out of space on my old hard disk, and would eventually move the vdi file to a new external disk. As such, setting the vdi to 2TB which is the maximum allowed by Virtualbox is simply advanced planning. The physical size is much smaller ie 9GB, so it is not a problem
As for why I had originally chosen a maximum size of 10GB, it was a mistake. My fresh installation is already 6+ GB before I start adding other utilities and files.
And while I thank you for your response, even if I had set the maximum for the dynamically expanding vdi file to a smaller number like 100GB (which I have the physical storage space on my main system), I can't seem to get the partition information synchronised with the disk information via HDClone or Easeus.
All my other Guest OS were installed in dynamically expanding hard disks with limits set at 2TB. I prefer to keep them on the master hard disk of the host machine. But once their size grows too big, I move the vdi files to external locations with more storage space.
As for why I had originally chosen a maximum size of 10GB, it was a mistake. My fresh installation is already 6+ GB before I start adding other utilities and files.
And while I thank you for your response, even if I had set the maximum for the dynamically expanding vdi file to a smaller number like 100GB (which I have the physical storage space on my main system), I can't seem to get the partition information synchronised with the disk information via HDClone or Easeus.
All my other Guest OS were installed in dynamically expanding hard disks with limits set at 2TB. I prefer to keep them on the master hard disk of the host machine. But once their size grows too big, I move the vdi files to external locations with more storage space.
-
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
See my tutorial All about VDIs for a discussion on why having unnecessarily huge VDIs is a bad idea.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
-
- Posts: 9
- Joined: 12. Mar 2009, 21:00
Re: Howto increase hard disk size after installing a guest OS
hi all
i tried to use gparted to copy linux partition to a new vm
after copying i booted the new vm , and the screen was blank, i installed grub through supergrubdisc, then i got error 2, and at the end i got error 13 and stopped trying
i guess gparted fail if the guest os was a linux os??
i will try clonezilla
i tried to use gparted to copy linux partition to a new vm
after copying i booted the new vm , and the screen was blank, i installed grub through supergrubdisc, then i got error 2, and at the end i got error 13 and stopped trying
i guess gparted fail if the guest os was a linux os??
i will try clonezilla
-
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: Howto increase hard disk size after installing a guest OS
When I clone / compress Linux system, I just put
Once this has been done, the old system image can be removed from the VM and the new one is bootable.
- hd1 = old system
hd0 = new system
Once this has been done, the old system image can be removed from the VM and the new one is bootable.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
-
- Posts: 9
- Joined: 12. Mar 2009, 21:00
Re: Howto increase hard disk size after installing a guest OS
hi all
I tried again with gparted and succeeded. What I have done wrong in the first time is that after setting the disk label, I format the new vdi into ext3 (i should just click paste and not format then resize), then i restored grub and mbr using supergrubdisc (to overcome that black screen). I did not use dd comand to copy mbr since it did not succeed and damage old vdi
thanks all
I tried again with gparted and succeeded. What I have done wrong in the first time is that after setting the disk label, I format the new vdi into ext3 (i should just click paste and not format then resize), then i restored grub and mbr using supergrubdisc (to overcome that black screen). I did not use dd comand to copy mbr since it did not succeed and damage old vdi
thanks all
-
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: Howto increase hard disk size after installing a guest OS
Sounds to me as if you got your dd parameters wrong. If opens the input file read-only and therefore can't damage it. Glad to help, anywayhaytham2000 wrote:I did not use dd comand to copy mbr since it did not succeed and damage old vdi
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
-
- Posts: 5
- Joined: 20. May 2009, 10:05
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: TBA
Re:
Frankly the excuse that it is like a real hard drive and that can't be increased is rubbish. Imagine if virtual memory had such constraints! Solaris has always been able to change its swap space and any other partition.klaus wrote:No. Just like a real hard disk cannot be extended easily just because it's full. Eventually we'll implement increasing (and decreasing) the size of a disk image, but that's quite some (tedious) work and currently has no particularly high priority. Help is always welcome.
I have just wasted an entire evening. Frustrated with vmware after a ubuntu upgrade on the host machine, I decided to try out VirtuaBox.
Everything was bliss! Until this inexplicably stupid, stupid constraint. It has wasted a lot of my time, after spending an evening getting a few windows installs exactly the way I need them, using modest test sizes for HDD. It's a sound assumption for anyone working in IT that a virtual setting as basic as disk space can be changed.
The least you can do is manage customer expectations properly and CHANGE THE INTERFACE to make it vividly clear that this cannot be changed after the guest OS is loaded. Using the actual words "This cannot be changed later". The fact that the gui says maximum is not adequate as this is open to interpretation in the subject of virtualisation.
From searching the forums, many people share this irritation. Personally, my estimation of this software went from near perfection to hated once it wasted my time. Yes I can fix it, but "Workarounds" is a Micros*ft concept. Getting it right the first time is a principle for Sun. What happened here?
-
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: Howto increase hard disk size after installing a guest OS
Pulling out a quote from 2007 makes it a little difficult to track your point
If you run out of space you have a very simple option which is to add a second drive and split some of your more volatile and growing directories onto it. You have mount points in both *nix and Windows to make thus transparent if you need to (though in Windows you need to download a Sysinternals tool to do so).
Alternatively you can copy the contents of your drive as discussed in this post and my tutorial All about VDIs to a larger drive. Even if VBox could support growing virtual drive, you would still need to use a partition manager tool to resize them.
If you run out of space you have a very simple option which is to add a second drive and split some of your more volatile and growing directories onto it. You have mount points in both *nix and Windows to make thus transparent if you need to (though in Windows you need to download a Sysinternals tool to do so).
Alternatively you can copy the contents of your drive as discussed in this post and my tutorial All about VDIs to a larger drive. Even if VBox could support growing virtual drive, you would still need to use a partition manager tool to resize them.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
-
- Posts: 5
- Joined: 20. May 2009, 10:05
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: TBA
Re: Howto increase hard disk size after installing a guest OS
Did you read my post properly? Especially the quote:TerryE wrote:Pulling out a quote from 2007 makes it a little difficult to track your point
I found this via search. and the point is why is this still wasting people's time two years on? Sun have owned this since Feb 2008.klaus wrote:Eventually we'll implement increasing (and decreasing) the size of a disk image, but that's quite some (tedious) work
That's a workaround. I know how to fix it, the point is I shouldn't have to.TerryE wrote:If you run out of space you have a very simple option which is to add a second drive and split some of your more volatile and growing directories onto it.
Even if it can't, the interface could so easily provide adequate warning so that new users do not waste their time. This is the main point.TerryE wrote: Even if VBox could support growing virtual drive...............
I am sure some will enjoy the challenge and see it as collecting another 'geek badge', as once learnt it is never forgotten. But that is not the way to commercial success. The knowledge has more value for when people need to increase their original planned size, which was arrived at with adequate info.
Not properly advising people that there are hard limits in this virtual scenario is stupid. Every new customer of this software is faced with going through the pain of this. A simple instruction in the GUI would stop this dead.
-
- Posts: 4
- Joined: 28. Jul 2009, 23:17
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: MS Windows Server 2003, MS Windows 7, Ubuntu
Re: Howto increase hard disk size after installing a guest OS
I'm very interested to find out an Admin / Moderator responce to this valid argument. The Gparted solution did not work for me, I actualy made a copy of the vdi and had another analysts attempt it and the end result is the same, Windows blue screens and both Vdi's end up corrupted. But when we restore the original vdi, everything is fine.
We happen to be running Sharepoint on a virtualized server and I ran out of space. Its very hard to move the content database without causing damage to the sharepoint site. I then tried tried a PXE boot to Ghost and copied partition to a VMWare virtual desktop and ran Repair on the MS Windows Server 2003 platform and I was back up and running.
If there is any development on changing size on virtual drives, I recommend putting that at the top as it appears to be in high demand.
Thanks,
We happen to be running Sharepoint on a virtualized server and I ran out of space. Its very hard to move the content database without causing damage to the sharepoint site. I then tried tried a PXE boot to Ghost and copied partition to a VMWare virtual desktop and ran Repair on the MS Windows Server 2003 platform and I was back up and running.
If there is any development on changing size on virtual drives, I recommend putting that at the top as it appears to be in high demand.
Thanks,
Chuck Skeen, MCSE
Desktop Anaylsts
Desktop Anaylsts
Re: Howto increase hard disk size after installing a guest OS
How diffecult can this be, clonezilla, gparted, done eat cake and such.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
- Posts: 4
- Joined: 28. Jul 2009, 23:17
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: MS Windows Server 2003, MS Windows 7, Ubuntu
Re: Howto increase hard disk size after installing a guest OS
vbox4me2 wrote:How diffecult can this be, clonezilla, gparted, done eat cake and such.
Good Job
Chuck Skeen, MCSE
Desktop Anaylsts
Desktop Anaylsts
-
- Posts: 4
- Joined: 28. Jul 2009, 23:17
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: MS Windows Server 2003, MS Windows 7, Ubuntu
Re: Howto increase hard disk size after installing a guest OS
When using Clonezilla Live iso I get from vbox (FATAL: Could not read from the boot medium! System halted. each version. Gparted actualy looks like it works until you boot up vbox.
Chuck Skeen, MCSE
Desktop Anaylsts
Desktop Anaylsts
-
- Posts: 4
- Joined: 28. Jul 2009, 23:17
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: MS Windows Server 2003, MS Windows 7, Ubuntu
Re: Howto increase hard disk size after installing a guest OS
Ah Success, Prob a bit more difficult and you need a Partition Magic Lic.
I ran a virtual windows xp box. Installed Partition magic, mounted my small vdi and my new large vdi. Ran Part magic and was able to clone over the data. Restarted vbox using my new vdi and Loaded up just fine.
I ran a virtual windows xp box. Installed Partition magic, mounted my small vdi and my new large vdi. Ran Part magic and was able to clone over the data. Restarted vbox using my new vdi and Loaded up just fine.
Chuck Skeen, MCSE
Desktop Anaylsts
Desktop Anaylsts
-
- Volunteer
- Posts: 119
- Joined: 13. Sep 2007, 00:33
- Primary OS: Debian Lenny
- VBox Version: OSE self-compiled
- Guest OSses: Many...
Re: Howto increase hard disk size after installing a guest OS
Dunno if this has been mentioned elsewhere, but since 3.0.2 added the "--existing" argument to VBoxManage clonevdi, you can now clone one VDI to another.
Note: the original VDI needs to be larger than 4GB (if it's less than 4GB, then the target VDI needs to be less than 8 GB)
~JW
Note: the original VDI needs to be larger than 4GB (if it's less than 4GB, then the target VDI needs to be less than 8 GB)
~JW
Join us in the VirtualBox IRC channel: #vbox on FreeNode
http://www.virtualbox.org/wiki/IRC
http://www.virtualbox.org/wiki/IRC