| 1 | 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. |
| 2 | |
| 3 | == HOWTO resize guest VDI disk image == |
| 4 | |
| 5 | 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: |
| 6 | |
| 7 | 1. Create new HD of desired size (also variable-size) |
| 8 | |
| 9 | 2. Clone the existing disk: |
| 10 | |
| 11 | {{{ |
| 12 | VBoxManage clonehd --existing ExistingTooSmall.vdi NewMuchBigger.vdi |
| 13 | |
| 14 | }}} |
| 15 | 3. Download [http://gparted.sourceforge.net/livecd.php GParted live CD] |
| 16 | |
| 17 | 4. Create a new virtual machine with the cloned VDI disk attached |
| 18 | |
| 19 | 5. Attach the GParted ISO as a CD-image and boot from it (take defaults, let GUI for GParted boot) |
| 20 | |
| 21 | 6. Select the large NTFS partition, and resize it to fill the disk |
| 22 | |
| 23 | 7. Shutdown, reboot into Windows 7, let it do the disk check it will want to |
| 24 | |
| 25 | |