System Management
A running KVM guest named app01 uses a qcow2 virtual disk attached as vda, currently 40 GiB. The disk must grow to 100 GiB without shutting the guest down. Which command BEST accomplishes this?
Show the answer
Correct answerC. virsh blockresize app01 vda 100G
The blockresize command asks QEMU to enlarge the attached disk of a running guest, after which the partition and filesystem inside the guest can be grown. Running qemu-img on an image in use risks corruption and does not notify the running guest.