Aumentar Disco KVM

De Slacam_Wiki
Ir para: navegação, pesquisa

METHOD #1: Partitions are ext2/ext3/ext4 based

The nuts of this method are as follows:

  1. 1. stop the VM
  2. 2. move the current image

mv mykvm.img mykvm.img.bak

  1. 3. create a new image

qemu-img create -f raw addon.raw 30G

  1. 4. concatenate the 2 images

cat mykvm.img.bak addon.raw >> mykvm.img

Now with the larger mykvm.img file in hand, boot gparted and extend the existing partition into the newly added disk space. This last step basically extends the OS partition so that it can make use of the extra space.