User Tools

Site Tools


libvirt:libvirt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
libvirt:libvirt [2016/09/15 15:52] devalibvirt:libvirt [2016/09/15 19:03] deva
Line 2: Line 2:
 =====Resize qcov2 image===== =====Resize qcov2 image=====
 <code> <code>
 +# Shut down vm
 +
 # On host (to grow 8GB): # On host (to grow 8GB):
 qemu-img resize /images/myimage.qcow2 +8GB qemu-img resize /images/myimage.qcow2 +8GB
  
-reboot vm+Start vm
 # Assuming lvm logical volume inside extended partition... # Assuming lvm logical volume inside extended partition...
-# fdisk -l should now show the new size.+# fdisk -l should now show the new disk size. 
 +# run parted 
 +(parted) resizepart 2 
 +16GB 
 +(parted) resizepart 5 
 +16GB 
 +(parted) quit 
 + 
 +# resize volume group
 pvresize /dev/sda2 # on extended partition pvresize /dev/sda2 # on extended partition
 pvresize /dev/sda5 # on lvm partition pvresize /dev/sda5 # on lvm partition
libvirt/libvirt.txt · Last modified: 2016/09/15 21:18 by deva