Last active
December 15, 2022 23:30
-
-
Save mortn/bdd6aa5f38169b953ace to your computer and use it in GitHub Desktop.
online resize qemu image
This file contains 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
F=/var/lib/libvirt/images/ubuntu.img | |
sudo qemu-img resize $F 50G | |
sudo virsh blockresize --path $F --size $(qemu-img info $F|sed -n '/virtual size/ s/^.*: //;s/(.*//p') <domain-id> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment