User Tools

Site Tools


myhelp:kvm_qemu

Differences

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

Link to this comparison view

Next revision
Previous revision
myhelp:kvm_qemu [2023/07/27 08:25] – created ulrichmyhelp:kvm_qemu [2023/07/27 08:27] (current) ulrich
Line 1: Line 1:
-How to extend a disk with the CLI+====== How to extend a disk with the CLI ====== 
 +Login to your host and do the following:
   - List the qcow2 files from your VM <code>virsh domblklist myVM</code>   - List the qcow2 files from your VM <code>virsh domblklist myVM</code>
   - Check the current size from the file <code>qemu-img info /var/lib/libvirt/images/myVM.qcow2</code>   - Check the current size from the file <code>qemu-img info /var/lib/libvirt/images/myVM.qcow2</code>
   - Resize the the disk file <code>qemu-img resize /var/lib/libvirt/images/myVM.qcow2 +16G</code>   - Resize the the disk file <code>qemu-img resize /var/lib/libvirt/images/myVM.qcow2 +16G</code>
 +It is not required to check the current disk size, but it is good to know. You can take a look afterwards if the resize worked. 
myhelp/kvm_qemu.1690446320.txt.gz · Last modified: by ulrich