VirtualBox is a cross platform full virtualizer for x86 hardware. It runs on Windows, Linux, Macintosh and OpenSolaris hosts and supports a large number of guest operating systems such as Windows, Linux and OpenBSD. In a previous guide I have shown you How to install Ubuntu Linux on Windows using VirtualBox . The procedure is the same if you want to install Windows on Linux. The guest operating system is installed on a virtual disk created by VirtualBox which is nothing more than a single .vdi file. When you first create the virtual machine you must set a certain size for this disk. However after playing with VirtualBox you might realize you need more space because your virtual disk is full So, in this tutorial I will explain how to enlarge an existing virtual disk or in other words how to resize your virtualbox vdi. I have a Windows XP installation running on Linux and specifically Archlinux and I am going to create a larger disk for Windows XP.**Note: The same procedure works for Windows Vista also. The only difference is that you have to use your original Vista installation CD for Bootmgr repair the first time the system is started after the GPARTED steps have been followed. (Thanks to Andrew)
Run VirtualBox and go to File -> Disk Manager.

Here as you can see I have a .vdi disk with a size of 10GB (1) which is almost full. So press the New button (2) to create a new virtual disk.

Click next to go to the next page of the New Virtual Disk Wizard.

Select Dynamically expanding image as Image type and click next.

Select a name for the new image (1), this should be different than the existing one, and also set the size of the new disk (2). Here I've set it to 20GB.

Press Finish to end the wizard.

Now you should have 2 .vdi images in the Virtual Disk Manager. Click Ok to close the wizard.
Here we are gonna need GParted to copy the data of our old disk to the new one. GParted is the Gnome Partition Editor application for creating, destroying, resizing, moving, checking and copying partitions, and the file systems on them. It has a LiveCD which you must download from here . You don't have to burn it on a cd, just store the .iso somewhere in you hard disk.
Now select the existin Windows XP installation (1) and click on the Settings button (2).

In the General -> Advanced tab set CD/DVD Rom as the first boot device.

In the Hard Disks settings double click below your IDE Primary Master and set IDE Primary Slave and the new Virtual Hard Disk image.

In the CD/DVD-ROM settings click on Mount CD/DVD Drive (1), choose ISO Image File (2) and use the folder button to browse to the location you have saved the gparted live cd (3).

Now click the Ok button and start the Windows XP Virtual Machine. Press Enter to boot GParted Live with Default Settings.

Don't touch keymap should be fine. Again press Enter.

Select the Language you prefer. Press Enter for English. And again press Enter for the default video card settings.

GParted will automatically scan your virtual disks. /dev/hda should be the old one and /dev/hdb the new one. Right click on your first disk and select Copy.

Next select /dev/hdb from the drop down menu (1), right click on the unallocated space and select Paste (2).

Drag the right edge (1) like you see in the screenshot so as not to leave any unallocated space in the new disk. Next click the Paste button.

Now press Apply to apply the changes.

When all listed operations are applied click the Close button. Again right click on the new partition /dev/hdb and click Manage flags. Here you should tick the boot flag.

Gparted will scan all devices once more. When it's done close the program and shutdown the live cd from the exit button. It will prompt you to press Enter. Now return to the VirtualBox application, select the Windows XP virtual machine and click the settings button. In the General -> Advanced tab select Hard Disk as the first boot device.

In the Hard Disk settings use the delete button (1) to remove the IDE Primary Slave, leave just IDE Primary Master (2), and select the new .vdi (3).

In the CD/DVD-ROM settings tick the Host CD/DVD Drive.

Press the Ok button and start your Windows XP virtual machine. Windows might ask to check their filesystem. Just let them do it.

After they automatically reboot you will log into your new resized virtualbox disk without having lost any of your data. You can now just delete the old .vdi. Enjoy!

Please do not use the comment function to ask for help! If you need help, please use our guides forum .
Add this page to your favorite Social Bookmarking websites
Set as favorite
Email this
Hits: 68966
Trackback(0)
TrackBack URI for this entryComments (131)
Subscribe to this comment's feedrecommendation
I fell in 2 problems:
1. BSOD: due to improper IDE Controller Type ( in Advanced Setup). I don´t know why it changed.
2. not correct NTFS Journal in source system disk.
I recommend to use ntfsfix /dev/sdxx as the first step in the procedure.
Hope it helps
1. BSOD: due to improper IDE Controller Type ( in Advanced Setup). I don´t know why it changed.
2. not correct NTFS Journal in source system disk.
I recommend to use ntfsfix /dev/sdxx as the first step in the procedure.
Hope it helps
...
Thank you, thank you and thank you! I started to use virtualbox last week and as everything was finally working, I got a nice message
as I was running out of space
. I was looking for an answer. Not only you gave the answer I was looking for, but it was so clear and well explained that I could not go wrong. Thank's again for your wisdom. You are a genius.
Have a great day!
I don't have a place to rate my vote, but you got 11 out of 10!
as I was running out of space
. I was looking for an answer. Not only you gave the answer I was looking for, but it was so clear and well explained that I could not go wrong. Thank's again for your wisdom. You are a genius. Have a great day!
I don't have a place to rate my vote, but you got 11 out of 10!
Doesn't work for me....
I'm using VirtualBox on Windows with Fedora 10 as the guest OS.
I have a .vdi file for my virtual machine that is 8gb in size and I want to make it 40gb so I create another vdi file and attach it. I then boot up in gparted live cd and I can see both hda and hdb.
In the Fedora guest OS, if I do fdisk -l /dev/hda I see that I have /dev/hda1 LINUX and /dev/hda2 LINUX LVM partitions. I didn't specifically create it this way, this is the way it came out from the standard Fedora 10 install.
After I copy hda to hdab I end up with /dev/hdb1 and /dev/hdb2. hdb1 is ext3 format boot partition and hdb2 is unknown to gparted. The resize button is greyed out for hdb2 so you cannot resize it no matter what you do. I can resize the /dev/hdb1 partition if I want, but that is the boot partition and I need to resize /dev/hdb2 and it will not. Is this because it is a linux lvm?
Any ideas?
...
Yes, this must be because of the LVM (logical Volume Manager) that Fedora uses by default to manage disk drives.
No ideas for now. I will take a look though and get back if I find something.
No ideas for now. I will take a look though and get back if I find something.
Cheers
Just used the above procedure to resize a win 2003 server machine. Your solution worked ok for me, however i did have to use the ntfsfix to get it to grow the disk (resize) correctly.
Beautiful!
I installed a virtual vista machine on my Ubuntu host and originally set the vista drive too big and not dynamic. I created a dynamic drive, copied everything over and rebooted vista with the second drive. Vista was not happy about it, and demanded that I insert my install disk. After a few hoops and reboots I was back in business! Thanks so much.
Just was i was looking for
Just wanna say thanks. One of the best explained and most detailed responses I have seen. Its in my favorites
...
Axel,
your tutorial is amazing ! Thank you very much.
I did the above for a Windows 7 installation. When I booted from the new partition, I got:
Bootmgr missing
Press Ctrl-Alt-Del to reboot
I then restarted from the Windows 7 install ISO and choose
repair. I got a repair message, no options, choosed it.
Still by booting I got the Bootmgr missing message again.
So I rebboted from the install ISO, choose repair and
this time got several repair options.
Choosed 'repair startup'.
And then it worked !
Hope it helps
your tutorial is amazing ! Thank you very much.
I did the above for a Windows 7 installation. When I booted from the new partition, I got:
Bootmgr missing
Press Ctrl-Alt-Del to reboot
I then restarted from the Windows 7 install ISO and choose
repair. I got a repair message, no options, choosed it.
Still by booting I got the Bootmgr missing message again.
So I rebboted from the install ISO, choose repair and
this time got several repair options.
Choosed 'repair startup'.
And then it worked !
Hope it helps
...
Thanks for the info Mektub!
In Windows XP I didn't face any problem with the boot process. But as I can see Windows Server 2003, Windows Vista and Windows 7 have a few problems that can be easily fixed with the repair from their installation cds. Thanks everyone!
In Windows XP I didn't face any problem with the boot process. But as I can see Windows Server 2003, Windows Vista and Windows 7 have a few problems that can be easily fixed with the repair from their installation cds. Thanks everyone!
...
I am having the problem that despite seemingly following the tutorial closely, the Virtual Machine boots right into Windows rather than opening up gparted. Any ideas about what I might be doing wrong?
Thanks, Annette
Thanks, Annette
...
Hey Annette,
In Settings -> General tab you haven't selected CD/DVD to be the first boot device.
In Settings -> General tab you haven't selected CD/DVD to be the first boot device.
final success
Axel was of course right. I'd done something stupid. But then I ran into another problem. Thought I'd share the solution here, in case others encounter something similar. The resized VDI would not boot (don't have the specific error handy). I found Tha-Dogg's helpful solution here: http://forums.virtualbox.org/viewtopic.php?t=6627, which involves a small change to the boot configuration. Now all is peachy. (Just be sure to follow instructions carefully -- attach the new vdi as "primary slave" to the old functioning vdi ("primary master") before doing anything else. Hope this saves someone some extra googling!
...
This was extremely helpful, worked like a charm using VirtualBox 2.1.4 and gparted-live-0.4.1-2.iso. Thanks!!!
Best Walkthrough on this subject anywhere!
So of course I went to the virtualbox site first, yea not alot of help, then I googled it for a few links, and found this one. Hands down the BEST walkthrough on this subject, and I just finished following it and it worked a treat! Windows didn't even ask me to check the disk.
I need my virtualbox to run photoshop in and without it I'd be lost as I do alot of web graphics for clients and well, I ran out of room!
Many Thanks!
XtCrAvE - twistedpair.mobi
I need my virtualbox to run photoshop in and without it I'd be lost as I do alot of web graphics for clients and well, I ran out of room!
Many Thanks!
XtCrAvE - twistedpair.mobi
...
Hehe! You are very welcome XtCrAvE! I was also searching for a way to resize my virtualbox disk but couldn't find something good. So I thought why not writing down my own.
Brilliant
Like others i was delighted i got my Virtualbox up and running but then saw i was running out of space! All other suggestions were not good (starting another partition) untill i cam across this guide! Fantastic mate! Really really appreciate the hard work and effort you put in to helping others! It was so easy to follow your step by step guide and hopefully soon, when it finishes operations, i will have more space on my XP to install Football Manager 2009 lol! Thanks once again mate!!
Thank you!
Great guide--I ran it almost completely without a hitch. The only problem was that my mouse wouldn't work inside the guest gparted, but using alt-key combinations took care of that. Thank you again for your work--it was very helpful!
Close disk space
It seens to be a problem for gparted to copy when the 2 disks have similar capacities. Haven't test this to the limit, but maybe someone will have the same problem and i thought of warn.
Btw, ty for the very good guide.
Btw, ty for the very good guide.
Thank You
Thank you this solved my problem with my fixed drive running out of space. Other methods were rather complex and this was easy and logical to follow.
Vista Addition Section
You may want to put an asterisk for Vista users - they will have to use their original Vista install CD for Bootmgr repair the first time the system is started after the GPARTED steps have been followed.
Otherwise - a great guide and easy to follow. THanks.
Otherwise - a great guide and easy to follow. THanks.
Restore GRUB
Hi, I have Ubuntu as my guest system on a Mac. This tip helped to restore the boot menu back to normal:
http://www.sorgonet.com/linux/grubrestore/
(Read section "HOWTO Restore GRUB")
http://www.sorgonet.com/linux/grubrestore/
(Read section "HOWTO Restore GRUB")
...
Thanks for the link Zettt. You are right. If you have a Linux guest system you must restore grub afterwards.
Great guide, helpful comments
Thanks a lot for this perfect howto!
Only one problem occured: When booting from the new vdi, I got an error message like "hard disk read error, press ctrl+alt+del to reboot". But this could be fixed with Anettes tip from February 19, 2009 and the link to http://forums.virtualbox.org/viewtopic.php?t=6627
Again: thanks a lot!
Only one problem occured: When booting from the new vdi, I got an error message like "hard disk read error, press ctrl+alt+del to reboot". But this could be fixed with Anettes tip from February 19, 2009 and the link to http://forums.virtualbox.org/viewtopic.php?t=6627
Again: thanks a lot!
xp host with ubuntu guest
I would like to see a similar step-by-step with the host/guest reversed. I too am at the mercy of computationally intensive Windows-only applications.
xp host with ubuntu guest
Nevermind. I pieced together this recipe from a VirtualBox forum and it worked great and only took a few minutes. I went from an 8GB ubuntu guest on a XP host to a new 16GB ubuntu vdi guest. Here's what I did (adapted from http://forums.virtualbox.org/v...4&start=30):
1. Create 2nd larger size .vdi hard drive image.
2. Set as slave in specified Virtualbox.
3. Download and mount ISO for Clonezilla.
4. Make sure boot order is set to Cd-Rom before hard drive. Boot Virtualbox.
5. Follow Clonezilla prompts to copy old hard drive (/dev/sda) to new hard drive (/dev/sdb).
Disk-to-disk, local-to-local, expert mode -r, -k1.
6. When done, set new hard drive image as master in Virtualbox.
8. Format, and set as slave or delete 1st hard drive image.
1. Create 2nd larger size .vdi hard drive image.
2. Set as slave in specified Virtualbox.
3. Download and mount ISO for Clonezilla.
4. Make sure boot order is set to Cd-Rom before hard drive. Boot Virtualbox.
5. Follow Clonezilla prompts to copy old hard drive (/dev/sda) to new hard drive (/dev/sdb).
Disk-to-disk, local-to-local, expert mode -r, -k1.
6. When done, set new hard drive image as master in Virtualbox.
8. Format, and set as slave or delete 1st hard drive image.
...
Nice rsz! You found the solution before I even read your first comment.
Thank you Doug. You are welcome!
Thank you Doug. You are welcome!
gparted live cd
From where i get the gparted live cd
i download it from a site but i dont know how it install or use ?
i dont see any iso file in the downloaded folder
please help
sareeshmnair@gmail.com
i download it from a site but i dont know how it install or use ?
i dont see any iso file in the downloaded folder
please help
sareeshmnair@gmail.com
...
Jiak I believe you will find the answer you are looking for in the comments above.
sareesh here is a link to download an iso file. http://sourceforge.net/projects/gparted/files/
sareesh here is a link to download an iso file. http://sourceforge.net/projects/gparted/files/
Works great!
Thanks much! Works as detailed, no missed steps. Great My-Guide-ster. Delivered as promised. A++++++++.
great!
Axel, thanks for this information. It acknowledges that the Linux-community is a reliable one and (almost) every problem is solvable.
...
Nice guide & comments. For me, the new vdi didn't boot correctly. It hung at the login screen before showing the user accounts. I finally got it to work with the following modifications to axel's guide (VirtualBox version 2.2.4, gparted version 0.4.6):
1) In gparted, copy old vdi partition and paste to new *without resizing* (leaving unallocated space on the new vdi).
2) Boot the new vdi (as IDE Master) to verify that it works.
3) Use gparted to grow the partition to fill the new vdi.
4) Boot the new vdi. XP will do a CHKDSK during the boot process (as described in the guide).
One mystery that may not be a general occurrence: XP "installed new hardware" after booting the new vdi (at both steps 2 and 4).
1) In gparted, copy old vdi partition and paste to new *without resizing* (leaving unallocated space on the new vdi).
2) Boot the new vdi (as IDE Master) to verify that it works.
3) Use gparted to grow the partition to fill the new vdi.
4) Boot the new vdi. XP will do a CHKDSK during the boot process (as described in the guide).
One mystery that may not be a general occurrence: XP "installed new hardware" after booting the new vdi (at both steps 2 and 4).
...
Thank you very much for the info and the additions pnf.
At some time I have to recheck this guide to make sure it works with the latest Virtualbox and gparted.
I am glad this guide has helped so many people!
At some time I have to recheck this guide to make sure it works with the latest Virtualbox and gparted.
I am glad this guide has helped so many people!
...
Hi I just followed this guide to resize my virtualbox and everything now works fine, except I don't seem to have network connections. Do I just need to configure my ip address once again or should it have worked regardless? Sorry if this is a very basic question..
thanks,
thanks,
A disk read error occurred [next line] Press Ctrl+Alt+Del to restart
I've attempted this process numerous times and every time the boot to XP renders the following message on a black screen...
A disk read error occurred
Press Ctrl+Alt+Del to restart
I also noticed that the gparted process ends with errors. It appears to be fixable by running "ntfsfix /dev/" from a the term window. The "check" action says all is good, but XP still does not boot. Yes, it's flagged with "boot".
Oh well, it'd be faster to just load the OS onto a bigger VDI at this point. What a waste of time. Sadly, you'd thing resizing a disk would be an option in VirtualBox. Once again, nothing's free. Just marketing to get me to put down for the real features. heh.
~ Adam
A disk read error occurred
Press Ctrl+Alt+Del to restart
I also noticed that the gparted process ends with errors. It appears to be fixable by running "ntfsfix /dev/" from a the term window. The "check" action says all is good, but XP still does not boot. Yes, it's flagged with "boot".
Oh well, it'd be faster to just load the OS onto a bigger VDI at this point. What a waste of time. Sadly, you'd thing resizing a disk would be an option in VirtualBox. Once again, nothing's free. Just marketing to get me to put down for the real features. heh.
~ Adam
...
rjen,
yes you have to configure virtualbox settings for your network again.
Adam,
I'm sorry it didn't work for you.
Thank you guys for your comments. I am glad it is working for you.
I also expect Virtualbox to add some autoresize feature though.
yes you have to configure virtualbox settings for your network again.
Adam,
I'm sorry it didn't work for you.
Thank you guys for your comments. I am glad it is working for you.
I also expect Virtualbox to add some autoresize feature though.
Yepp!
It worked like a champ
- Windows 2003 Server virtual instance.
- Created a new vmdk disk with vmware-vdiskmanager -c -s 20Gb -a ide -t 0 'System.vmdk'. Attached via LSILogic driver.
- Used sysrescuecd instead, since Gparted live thought my disk (vmdk format) was 8 Tb when it was only 20 Gb. (sysrescuecd is better on recon scsi maybe?)
- After closing down Gparted, ran ntfsfix /dev/sd[x][n].
- Restarted machine with the newly created hard disk, watched chkdsk run automagically while
- Took a sandwich in the kitchen, and went to bed with a smile!
Thank You!
- Windows 2003 Server virtual instance.
- Created a new vmdk disk with vmware-vdiskmanager -c -s 20Gb -a ide -t 0 'System.vmdk'. Attached via LSILogic driver.
- Used sysrescuecd instead, since Gparted live thought my disk (vmdk format) was 8 Tb when it was only 20 Gb. (sysrescuecd is better on recon scsi maybe?)
- After closing down Gparted, ran ntfsfix /dev/sd[x][n].
- Restarted machine with the newly created hard disk, watched chkdsk run automagically while
- Took a sandwich in the kitchen, and went to bed with a smile!
Thank You!
Thanks
Just want to say thanks as the tutorial together with user remarks made me grow my disk just fine!
...
I also want to thank all users for posting here their experience on resizing a VirtualBox disk. Thank you guys!
Windows XP Disk Fixed and Now Booting
Annette's tip worked for me as well with a Windows XP SP3 disk. Thanks for saving me a huge headache!!!
Windows is not recognizing the increased space, it still thinks the drive is the original size. What now?
I had to use the Ubuntu LiveDVD for Gparted b/c the Gparted CD wouldn't work. After resizing the disk size in Ubuntu, Windows doesn't recognise the new size. It thinks it's still 10GB, not 50. Any suggestions?
...
Have you made the necessary changes in the Hard Disk Settings of VirtualBox as I mention in the guide?
...
The disk I'm resizing doesn't have an operating system on it (yet) so I can't boot it up, and the the interface in my version of Virtualbox is different; but excepting for those discrepancies I tried to follow your instructions as closely as possible.
Nice Job!
You did a really nice job of documenting a 'scary' process. It worked perfectly. Well done.
mounting an extra hard disk (ubuntu running on windows virtual box)
The steps are pretty much the same up to creating a new vdi hard-disk and clicking on the settings of the VM you want to run to add this new hard-disk. Then log into ubuntu VM and install gparted
> sudo aptitude install gparted
then using gparted, format the new hard disk, close gparted and then mount the new hard disk
> mount /dev/sdb1 /media/disk
and you have more space!
> sudo aptitude install gparted
then using gparted, format the new hard disk, close gparted and then mount the new hard disk
> mount /dev/sdb1 /media/disk
and you have more space!
resizing ubuntu on vista64 host
Thank you very much for this incredibly detailed guide
I used it to resize a virtual hard disk with Ubuntu installed, and VirtualBox running on a Vista-64bit machine.
NOTE: After the steps above, when first running the virtualized Ubuntu, i had to reinstall grub (boot manager) by using the Ubuntu Live CD:
- boot the virtual hard disk with the Ubuntu Live CD
- check (for example with the gparted GUI) the name of the partition which will contain the grub
- reinstall grub on the right partition
- reboot from hard disk
Hope will help
I used it to resize a virtual hard disk with Ubuntu installed, and VirtualBox running on a Vista-64bit machine.
NOTE: After the steps above, when first running the virtualized Ubuntu, i had to reinstall grub (boot manager) by using the Ubuntu Live CD:
- boot the virtual hard disk with the Ubuntu Live CD
- check (for example with the gparted GUI) the name of the partition which will contain the grub
- reinstall grub on the right partition
- reboot from hard disk
Hope will help
...
Thanks for your comment s3agull. It will help for sure anyone trying to resize the virtualbox partition of its Linux distribution!
...
Thanks for this guide! I encountered a few snags while growing a Windows XP machine, but ultimately got things to work:
At the end of the copy and resize, gparted complained that it couldn't resize the partition, since the filesystem was unclean. But after its display refreshed, it showed the new size anyway (but, as I later found out, this wasn't correct). I think this was because I had used VirtualBox's "Power off the machine" option instead of doing a proper ACPI shutdown.
I tried booting the new drive, but I got the same error as Robert Seetzen ("hard disk read error, press ctrl+alt+del to reboot"). I used Annette's link (February 19, 2009), which let me boot the drive successfully.
Once I had booted the new drive, it still showed the old size, despite gparted's claim to have resized it. This was, of course, because of the "filesystem unclean" error. So I started gparted again and resized the partition to the same size. And Windows finally saw the extra space.
Hope this helps someone else
At the end of the copy and resize, gparted complained that it couldn't resize the partition, since the filesystem was unclean. But after its display refreshed, it showed the new size anyway (but, as I later found out, this wasn't correct). I think this was because I had used VirtualBox's "Power off the machine" option instead of doing a proper ACPI shutdown.
I tried booting the new drive, but I got the same error as Robert Seetzen ("hard disk read error, press ctrl+alt+del to reboot"). I used Annette's link (February 19, 2009), which let me boot the drive successfully.
Once I had booted the new drive, it still showed the old size, despite gparted's claim to have resized it. This was, of course, because of the "filesystem unclean" error. So I started gparted again and resized the partition to the same size. And Windows finally saw the extra space.
Hope this helps someone else
...
Thank you for sharing this Dave.
I also believe you faced this problem because of the Power off you did. But since you managed to successfully resize the partition everything is ok!
I also believe you faced this problem because of the Power off you did. But since you managed to successfully resize the partition everything is ok! One step is missing wit latest Gparted (0.4.8-6)
Hi, thanks a lot for the wonderful and complete setup, it worked like a charm!
One step is missing before copying the content, one has to define a partition type to the new vdi, and then you can paste it. Little correction, but just in case someone would be troubled :-)
cheers !
One step is missing before copying the content, one has to define a partition type to the new vdi, and then you can paste it. Little correction, but just in case someone would be troubled :-)
cheers !
Resizing an Ubuntu Guest VDI
rsv's post on July 14, 2009 worked perfectly for me. I used it to resize the VDI for an Ubuntu guest running on a Windows XP host. I doubled the size of the VDI, and the really sweet part is that the utilization of my root file system dropped from 95% to just 59%!
Thanks, rsv!
Thanks, rsv!
WanderingTheWorld.com
Just like most of those commenting, a big thank you. Pictures tell a lot.
Enlarged a Windows XP guest from 10G to 20G on an OSX Snow Leopard host.
Enlarged a Windows XP guest from 10G to 20G on an OSX Snow Leopard host.
Thanks!
Thank you - worked a treat after a while of trying to achieve this.
A minor thing which might be worth mentioning for others. I don't know if it is always the case, but while carrying out the copy procedure in GParted, I nearly reset the machine thinking it had failed as there was no progress indication - just the bar moving back and forth but nothing else to indicate it was copying my 10GB of HDD...
A minor thing which might be worth mentioning for others. I don't know if it is always the case, but while carrying out the copy procedure in GParted, I nearly reset the machine thinking it had failed as there was no progress indication - just the bar moving back and forth but nothing else to indicate it was copying my 10GB of HDD...
...
Thanks so much for your guide, minor differneces (new version of Virtualbox), but no head-scratchers! I didn't think of booting my VM with a liveCD...I should think of it as an actual computer sometimes, that may help
Again, Thanks!
Again, Thanks! Gparted only detected old HDD
I stuck at
Next select /dev/hdb from the drop down menu (1), right click on the unallocated space and select Paste (2).
My gparted just detected old vdi which the 10GB.
I am using
- gparted-live-0.5.2-8.iso
- virtual box 3.1.6
Next select /dev/hdb from the drop down menu (1), right click on the unallocated space and select Paste (2).
My gparted just detected old vdi which the 10GB.
I am using
- gparted-live-0.5.2-8.iso
- virtual box 3.1.6
Gparted only detected old HDD (FIXED)
In virtualbox 3.1.6 it will not display all the .vdi need to click the + button.
and click it to add your new .vdi
FIXED
and click it to add your new .vdi
FIXED
...
Thank all of you for you comments guys! I'm glad you've managed to resize your VirutalBox disks!
Had to use ntfsresize --size 10G /dev/sda1 to get WindowsXP Pro guest on Ubuntu 9.10 ...
Had to use ntfsresize --size 10G /dev/sda1 to get WindowsXP Pro guest on Ubuntu 9.10 to get WindowsXP guest to see new disk size. Everything was the same in the procedure though.
Resize Fixed Hard drive on Virtualbox
Video tutorial:
http://www.youtube.com/watch?v=JGLZ9K1IjOQ
A nice vid stands for 10K words and 1K screenshots
Share this link
http://www.youtube.com/watch?v=JGLZ9K1IjOQ
A nice vid stands for 10K words and 1K screenshots
Share this link
Mr.
I can't thank you enough. Worked like a charm!
I would rather a static step-by-step tutorial like this than a youtube video.
I would rather a static step-by-step tutorial like this than a youtube video.
windows vista as host, Fedora 12 as guest, used the same procedure but stuck with "no partition table found"
Thnaks for this detailed how-to.
I used it on a windows vista host, with fedora core 12 as guest and followed the procedure.but when the Gparted shows my harddisks, there is a !sign next to the new hard disk and when i try to paste from the old hard disk to newer one,it sais that "no partition table was found on the new hard disk and asks me to go to Device->create Partition Table.on that menu the default table type is ms-dos and there are some others. I don't know which one to choose.
and since the "rsz july 14 2009 comment" is not for a newbie like me, i can't follow it.
I used it on a windows vista host, with fedora core 12 as guest and followed the procedure.but when the Gparted shows my harddisks, there is a !sign next to the new hard disk and when i try to paste from the old hard disk to newer one,it sais that "no partition table was found on the new hard disk and asks me to go to Device->create Partition Table.on that menu the default table type is ms-dos and there are some others. I don't know which one to choose.
and since the "rsz july 14 2009 comment" is not for a newbie like me, i can't follow it.
Very helpful tutorial
It's very complete and accurate...I followed it and worked perfectly on mi mac with VBox Windows XP.
Cheers,
ATA
Cheers,
ATA
Excellent
Your process is certainly quicker and easier than creating a new Windows VM and installing everything from scratch. I will also note that I used slightly different versions of Virtualbox and Linux than your screen shots show...and even with 'interpretations' for the new versions, it still worked. Last, I will note that I just gave you $5 American. Thanks!
Mac/Snow Leopard host, Windows 7 Prof guest?
Axel/All:
Well these instructions work with a Mac/Snow Leopard host and Windows 7 Prof guest? I'm using VB 3.2.4.r62467.
Do any of the instructions need changing for this configuration? Any additions or deletions of instructions?
Thought I'd check before I really mess things up....
Thanks everyone!
Well these instructions work with a Mac/Snow Leopard host and Windows 7 Prof guest? I'm using VB 3.2.4.r62467.
Do any of the instructions need changing for this configuration? Any additions or deletions of instructions?
Thought I'd check before I really mess things up....
Thanks everyone!
...
Thanks all of you for comments! I'm glad this guide still helps many people! Of course donations are always welcome. Thank you very much.
Eric, read this comment "Alexis , June 14, 2010". Although I don't have a Mac to test it on my own I believe you shouldn't have any problem.
Eric, read this comment "Alexis , June 14, 2010". Although I don't have a Mac to test it on my own I believe you shouldn't have any problem.
Ubuntu guides
Great post. Thanks a lot for the useful guides.
Beach Holiday Guide
***********
Alyssa
Beach Holiday Guide
***********
Alyssa
It works on Windows 7
The only difference is that instead of running a chkdsk directly when you reboot from your new Windows 7 disk, you will need to repair it using the windows 7 CD.
To do so, mount the Windows 7 CD and repair the installation. All it does is running a ChkDsk.
if you have got windows 7 on an iso image or alike, mount the image as a CD and make it bootable.
This procedure has been tested by myself on a iMac with Snow Leopard and VBOX release 3.2.6
Best regards for all.
To do so, mount the Windows 7 CD and repair the installation. All it does is running a ChkDsk.
if you have got windows 7 on an iso image or alike, mount the image as a CD and make it bootable.
This procedure has been tested by myself on a iMac with Snow Leopard and VBOX release 3.2.6
Best regards for all.
Windows 7 recovery CD
Hello,
Thank you very much for this post. It really saved my life!
Just a little tip:
I was facing the "Bootmgr missing" problem on Windows 7 but I don't have the Windows 7 CD, so I found out that there is a recovery CD, which can be downloaded on this link:
http://neosmart.net/blog/2009/windows-7-system-repair-discs/
I hope it can save other people's time.
Thanks again!
Thank you very much for this post. It really saved my life!
Just a little tip:
I was facing the "Bootmgr missing" problem on Windows 7 but I don't have the Windows 7 CD, so I found out that there is a recovery CD, which can be downloaded on this link:
http://neosmart.net/blog/2009/windows-7-system-repair-discs/
I hope it can save other people's time.
Thanks again!
Seems fine with Mac 10.6.4--moved 10GB XP Pro to 20GB XP Pro
Seems to work fine. A few things were different. Boot CD worked fine (I was a little worried) and it did ask me to partition the new HD within the partitioning software. Copying took about 10 mins or so.
Seems to have booted up fine. I had to repoint shared folders to the Mac side. Networking seems fine with no changes. I hope Windows and Office 2007 reactivation won't be needed (since hardware will have changed, I think, from XP perspective. We will see).
Thanks a lot
Seems to have booted up fine. I had to repoint shared folders to the Mac side. Networking seems fine with no changes. I hope Windows and Office 2007 reactivation won't be needed (since hardware will have changed, I think, from XP perspective. We will see).
Thanks a lot
Gracias, Thanks
Muchas Gracias por tu aporte, de verdad tu guía me saco de un apuro muy grande.
Thank you very much for your input, your guide really helped me a lot of very big trouble.
Thank you very much for your input, your guide really helped me a lot of very big trouble. resize a VirtualBox disk partition
Useful resource. This is the first feeling after read your article.
I found something useful information related recently about resize partition. And I am looking forward to your helpful guide.
I found something useful information related recently about resize partition. And I am looking forward to your helpful guide.
Replacing partition
Thank you for this guide it was surely a time saver and after I booted my system with my Vista disk and did a boot repair I was up and running! =)
Don't forget the manage flag step like I did
I went through the whole process but somehow missed the one step on manage flag, checking the box next to boot.
Took me a while to figure out what I had missed. Redid it and it worked the second time.
Took me a while to figure out what I had missed. Redid it and it worked the second time.
Too complicated (for me)
I've just resized my Windows Server 2008 R2 C: partition. Host is VirtualBox 3.2.8 on FreeBSD 8.1-RELEASE.
1. Use VirtualBox to create the new hard disk (vdi) with the bigger size.
2. Shutdown your guest (Powered off).
3. Use the command line, cd to your HardDisk folder (~/.VirtualBox/HardDisks in my case) and run "VBoxManage clonehd --existing oldhd.vdi newhd.vid".
You'll see something like this:
Oracle VM VirtualBox Command Line Management Interface Version 3.2.8_OSE
(C) 2005-2010 Oracle Corporation
All rights reserved.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID:
4. Use VirtualBox to change the settings of your guest to use the new hard disk instead of the old one ("Storage").
5. You can boot your guest now. It will see the hard disk in the new size, but the filesystem will remain the same size as before as expected. At least in W2k8 it is possible to expand with the on board "Disk Management".
Mission completed.
1. Use VirtualBox to create the new hard disk (vdi) with the bigger size.
2. Shutdown your guest (Powered off).
3. Use the command line, cd to your HardDisk folder (~/.VirtualBox/HardDisks in my case) and run "VBoxManage clonehd --existing oldhd.vdi newhd.vid".
You'll see something like this:
Oracle VM VirtualBox Command Line Management Interface Version 3.2.8_OSE
(C) 2005-2010 Oracle Corporation
All rights reserved.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID:
4. Use VirtualBox to change the settings of your guest to use the new hard disk instead of the old one ("Storage").
5. You can boot your guest now. It will see the hard disk in the new size, but the filesystem will remain the same size as before as expected. At least in W2k8 it is possible to expand with the on board "Disk Management".
Mission completed.
Great Howto
However I haven't gotten a working copy of my XP guest yet. The first time I tried I got an error message: NTLDR is missing
I started studying the my original VDI file and it contained a small partition with MBR and lba. I tried adding a small partition to my sda2 using the method you have suggested but I quickly get an error message. Something about the file system. Any ideas how I can create the MBR?
I started studying the my original VDI file and it contained a small partition with MBR and lba. I tried adding a small partition to my sda2 using the method you have suggested but I quickly get an error message. Something about the file system. Any ideas how I can create the MBR?
...
Hi Tim, boot with a Windows XP cd and choose to repair the installation. It will recreate NTLDR.
Write comment