Created
November 19, 2020 12:43
-
-
Save atilaromero/48140d43fd90cb786e4d3b992ddcb945 to your computer and use it in GitHub Desktop.
Hot extend libvirt qcow2 disk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://serverfault.com/a/743106/536603 | |
virsh qemu-monitor-command ${vm_name?} block_resize drive-${alias?} 200G --hmp | |
alias: something like 'virtio-disk0'. It comes from: | |
<disk type="file" device="disk"> | |
<driver name="qemu" type="qcow2" /> | |
<source file="/data/test.img" /> | |
<backingStore /> | |
<target dev="vda" bus="virtio" /> | |
<alias name="virtio-disk0" /> | |
<address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0" /> | |
</disk> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment