

In the above command, replace “C” with your Windows installation drive’s drive letter. Step 2: In the Command Prompt, type the following command and press enter key.

Alternatively, you can type CMD in Start menu search box (Windows 7/Vista) or in Start screen (Windows 8 and above) and press enter key to open Command Prompt. To do this, open Run dialog box by simultaneously pressing Windows logo and R keys, type CMD in the box, and then press Enter key. Boot into WindowsXP and it will run a few disk checks and then you’re off to the races.Step 1: Open Command Prompt. You should see the size of the disk drive in the VM summary now shows the new size. Got back to settings > storage and select the CD drive you added and click the - button to remove it. The bottom box which is the free space should say 0. There is a max size at the top and you’ll want to enter that number (MB) into the top box. You’ll be given several input boxes with the sizes of the two areas. Click the area on the left and double click expand. Then you’ll see a graphic with your disk on the left and the new unused space on the right. Follow the prompts and just accept the defaults (keep hitting enter). Instead of booting Windows it will boot Gparted. It should show up as the first thing in the order, which means it will boot from that first. When it asks if you have an existing disk browse to the Gparted.iso you just downloaded and select it. Click that and select to add a new CD drive. In the bottom left of the storages window there will be a green + sign. Simply select the WindowsXP virtual machine and click settings.

You don’t need to add another VM or anything. Once that is downloaded go to Virtualbox (don’t start any machines). Then go to and click the link to download the Gparted live CD.iso image. Instead we’ll use a sweet little utility called Gparted.įirst make sure your Windows XP virtual machine is turned off.

If you’re running Windows 7 or higher you can just use the disk management commands in Windows itself to expand the volume, but XP doesn’t have anything like that. Run that with the following command: /Applications/VirtualBox.app/Contents/MacOS/VBoxManage modifyhd DISKNAME.vdi -resize SIZE_in_MB Now we can simply use the command built into VB to resize the disk. On Mac’s this will usually get you there: cd ~/VirtualBox\ VMs/ The first thing to do is open Terminal and switch to the directory that holds you Virtualbox machines. It’s really very fast and easy, so let’s get this done. I found most of them to be very confusing. So there is all sorts of posts out there on how to resize a virtualbox disk when you start getting errors that Windows is running out of disk space.
