-
-
Save denji/39db363bb4809c995b5aa3dfd9914ce2 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