System Management
A KVM guest named app is running, and its disk is /var/lib/libvirt/images/app.qcow2. An administrator runs qemu-img info on the file and gets an error that it failed to get a shared 'write' lock because the image is in use. The administrator must read the format and virtual size without stopping the guest. Which command does this?
Show the answer
Correct answerC. qemu-img info -U /var/lib/libvirt/images/app.qcow2
The -U (--force-share) option opens the image in shared mode, so qemu-img info can read it while QEMU holds the lock. The check -r all command tries to repair the image, which can corrupt a disk that is in use and does not bypass the lock.