Okay, I started off my first VirtualBox with a Windows XP guest host install of a 2GB dynamic vdi image... now I've decided that's too small for all the apps I want to load up in it.
I really don't want to reinstall XP and all the apps I've loaded so far, can I get the VDI to change the maximum size it can expand too? or am I just screwed and have to start over?
I know I can create another VDI and add it to the VM as a second hard disk... but this is not ideal either... what would be great, what I want, is to increase the max size the VDI will dynamically expand to... but I'm not seeing how to do this in the menus.
VDI too small, oops! Please help!
-
stefan.becker
- Volunteer
- Posts: 7639
- Joined: 7. Jun 2007, 21:53
AH, CLONEZILLA
I hadn't heard of this yet, but a program called clonezilla looks like it will work.
What you do is create a new VDI hard disk, then set your virtual machine to boot to the clonezilla iso image which is a live CD and then use it to clone the old VDI hard disk to the new (larger) VDI image. Then remove the old VDI disk and make the new VDI your primary drive and boot to it. very nice... although it'd be nicer if the menu in virtualbox just gave an option to expand the size, but oh well, this is a viable solution.
http://ubuntuforums.org/archive/index.php/t-634880.html
What you do is create a new VDI hard disk, then set your virtual machine to boot to the clonezilla iso image which is a live CD and then use it to clone the old VDI hard disk to the new (larger) VDI image. Then remove the old VDI disk and make the new VDI your primary drive and boot to it. very nice... although it'd be nicer if the menu in virtualbox just gave an option to expand the size, but oh well, this is a viable solution.
http://ubuntuforums.org/archive/index.php/t-634880.html
-
stefan.becker
- Volunteer
- Posts: 7639
- Joined: 7. Jun 2007, 21:53
There is no direct option. You have to create a new disc and copy guest from first to second vdi. Translation:
1. create a new, greater vdi-File with VirtualBox, assign it to the VM
2. download gparted iso, assign it to the vm as cdrom and boot from this (boot order in vm-settins)!
now in the gparted command line:
3. dd if=/dev/hda bs=512 count=1 of=/XPmbr
4. dd if=/dev/hda of=/dev/hdb
5. dd if=/XPmbr of=/dev/hdb
6. Stop live-cd, boot again with xp in the guest, start "chkdsk D: /F" and then reboot xp 2 times (tip from gparted)
7. delete the small vdi from the VM
8. Again bbot the VM with gaprted
9. In Gparted make the partition size from hda1 greater
Download gparted: http://sourceforge.net/project/showfile ... _id=115843
1. create a new, greater vdi-File with VirtualBox, assign it to the VM
2. download gparted iso, assign it to the vm as cdrom and boot from this (boot order in vm-settins)!
now in the gparted command line:
3. dd if=/dev/hda bs=512 count=1 of=/XPmbr
4. dd if=/dev/hda of=/dev/hdb
5. dd if=/XPmbr of=/dev/hdb
6. Stop live-cd, boot again with xp in the guest, start "chkdsk D: /F" and then reboot xp 2 times (tip from gparted)
7. delete the small vdi from the VM
8. Again bbot the VM with gaprted
9. In Gparted make the partition size from hda1 greater
Download gparted: http://sourceforge.net/project/showfile ... _id=115843
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Please also see the Forum FAQ for how to clone your install to a larger vdi.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
With all due credit to stefan,stefan.becker wrote:There is no direct option. You have to create a new disc and copy guest from first to second vdi. Translation:
1. create a new, greater vdi-File with VirtualBox, assign it to the VM
2. download gparted iso, assign it to the vm as cdrom and boot from this (boot order in vm-settins)!
now in the gparted command line:
3. dd if=/dev/hda bs=512 count=1 of=/XPmbr
4. dd if=/dev/hda of=/dev/hdb
5. dd if=/XPmbr of=/dev/hdb
6. Stop live-cd, boot again with xp in the guest, start "chkdsk D: /F" and then reboot xp 2 times (tip from gparted)
7. delete the small vdi from the VM
8. Again bbot the VM with gaprted
9. In Gparted make the partition size from hda1 greater
Download gparted: http://sourceforge.net/project/showfile ... _id=115843
there's an easier way to do this.. for the "not so experienced"...
[by using the GUI version - not command line - of gparted]
Complete steps 1 and 2 above.
3. Boot to the GUI version of gparted.
4. Use the copy/paste feature to copy your old vdi partition contents to your newly sized vdi. See http://gparted.sourceforge.net/larry/move/move.htm for details on how to do this.
5. Once the copy is complete, select the new vdi partiton, right click on it and select "Manage Flags". If it's not checked, check the "Boot" flag.
This will make your new vdi partition boot-able. Click OK.
6. Shut down the VM, go into the Virtual Disk Manager and "release" the old vdi and "select" the new vdi to bind it to your VM.
7. Start up the VM.
Windows will go thru an automatic "CHKDSK /F" - due to the new size of the partition, then [automagically] restart once complete.
Windows logon should now come up and you should be all set...