![]() |
Increase size of KVM/QEMU .img virtual machine
Is there an easy way to increase the size of a KVM/QEMU .img virtual machine? VM host is CentOS 6.3 and virtual machine is Windows 8.
Thanks, Nick |
Found the answer myself, just putting it here for the benifit of others:
qemu-img resize myVM.img +5Gb Stop/restart Storage Pool - else virt-manager still recognises the old size, refreshing volumes does not show new size Boot VM and resize partition via Windows disk manager |
Thanks for the update.
I was going to suggest something more difficult that that. |
qemu-img is the basic way, however, virt-resize is the more modern and easy way to go
|
Quote:
|
Quote:
|
I recently used gparted live cd to resize partitions inside some of my vm's. It works just fine. Download the gparted iso cd image, add it to your vm, reboot your vm into the gparted cd and do the resizing. Once done, in case of an NTFS partition, the next time you boot into Windows it will run checkdisk on the drive because gparted flags the partition it touches for that, this is normal.
* Before you use gparted for resizing partitions inside a vm, you have to do the image file resizing either with qemu-img resize or virt-resize as was already suggested above. The gparted live cd only helps resizing the partitions inside you VM. |
| All times are GMT -5. The time now is 07:08 AM. |