GridVids
Sign in with YouTube

KVM | Repairing Corrupt QEMU Image

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

Yogesh Mehta 8 years ago

In this exercise we will repair a corrupt qemu image file.

Let’s assume you are getting error related to disk image is corrupted and can not be opened for read/write.

Shutdown the Source VM , if running # virsh shutdown guest_vm

Install libguestfs-tools rpm on the system hosting the KVM virtual Machines # yum install libguestfs-tools

Perform the QEMU image filesystem repair using “guestfish” utility. # guestfish -a /kvmstore/kvmbox1.img

Note – Select the valid filesystem type whhen running fsck command. “fsck fstype lv/partition

Start the KVM Guest. # virsh start guest_vm