Note: This requires libguestfs 1.5.x or the libguestfs 1.4.3 + backports that we are shipping in Fedora 13 updates testing.
Quick tip: list all the files in a VM:
$ guestfish --ro -a disk.img -i find0 / - | tr '\000' '\n' | sort | less
Explanation:
-
guestfish --ro -a disk.img -i
is the new style way to inspect a disk image using guestfish. For a libvirt domain, useguestfish --ro -d GuestName -i
instead. -
find0 / -
lists all the files to stdout. - The filenames are separated by ASCII NUL character,
tr '\000' '\n'
translates that to newlines. -
sort | less
sorts and pages the output.