I routinely use Sun VirtualBox? to run a windows guest OS under linux. My current setup is Ubuntu 10.04 64-bit host OS with Windows 7 as guest. This has worked fine for me so far.

HOWTO resize guest VDI disk image

This worked for me for VirtualBox? version 3.1.6_OSE r59338. I had an existing VDI which was variable size, but too small. Here is what I did to resize it:

  1. Create new HD of desired size (also variable-size)
  1. Clone the existing disk:
   VBoxManage clonehd --existing ExistingTooSmall.vdi NewMuchBigger.vdi

  1. Download GParted live CD
  1. Create a new virtual machine with the cloned VDI disk attached
  1. Attach the GParted ISO as a CD-image and boot from it (take defaults, let GUI for GParted boot)
  1. Select the large NTFS partition, and resize it to fill the disk
  1. Shutdown, reboot into Windows 7, let it do the disk check it will want to
Last modified 9 years ago Last modified on Nov 8, 2013, 10:17:53 AM