libvirt:libvirt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| libvirt:libvirt [2014/08/07 21:34] – [Restore] deva | libvirt:libvirt [2016/09/15 21:18] (current) – deva | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======Libvirt====== | ======Libvirt====== | ||
| + | =====Resize qcov2 image===== | ||
| + | < | ||
| + | # Shut down vm | ||
| + | |||
| + | # On host (to grow 8GB): | ||
| + | qemu-img resize / | ||
| + | |||
| + | # Start vm | ||
| + | # Assuming lvm logical volume inside extended partition... | ||
| + | # 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/sda5 # on lvm partition | ||
| + | |||
| + | # extend lvm | ||
| + | lvextend -l +100%FREE / | ||
| + | |||
| + | # finally resize file system | ||
| + | resize2fs / | ||
| + | </ | ||
| + | |||
| + | =====List VMs===== | ||
| + | < | ||
| + | virsh list --all | ||
| + | </ | ||
| =====Copy a VM===== | =====Copy a VM===== | ||
libvirt/libvirt.1407440052.txt.gz · Last modified: by deva
