Resize raw image VM

Print

qemu-img resize goddard.img 42G

- Download gparted live CD

- Create a temp new VM, use the ISO from gparted live as the "installer"

- Add the existing VM image as the storage target.

- Kick off the temp VM.

You should be able to run GParted and have it resize the disk.

If swap space had to be deleted, these are some basics to try:

- mkswap /dev/hdb2

To enable the swap partition immediately, type the following command:swapon /dev/hdb2

- To enable it at boot time, edit /etc/fstab to include:/dev/hdb2 swap swap defaults 0 0

use free -m to see if its active