[Libguestfs] How to get information about the guest filesystems by libguestfs

Charles Duffy charles at dyfis.net
Wed Aug 5 03:24:47 UTC 2009


I *think* newer libguestfs has support for this built-in -- but personally,
I use virt-inspector, which has had such functionality since its inception.

On Tue, Aug 4, 2009 at 9:50 PM, Zhang Qian <zhq527725 at gmail.com> wrote:

> Hi,
>
> I am using guestfish to write some files into guest file system of my
> KVM domain. As you know, I have to mount guest disk at a position in
> the filesystem before I write any files into it , e.g.:
> mount     /dev/VolGroup00/LogVol00     /
>
> But the problem is how I can get guest filesystem info without login
> guest. Now I have to power on the KVM domain, login the guest,
> remember which partition(/dev/VolGroup00/LogVol00) is mounted in root
> directory, then power off the domain, execute the above command in
> guestfish.
>
> Is there any libguestfs API or guestfish command which can be used to
> get information about the guest filesystems? E.g. which partition is
> mounted at which directory. It should be very helpful for me.
> Thanks!
>
>
> Regards,
> Qian
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs at redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20090804/7640cb56/attachment.htm>


More information about the Libguestfs mailing list