[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] ntfs-3g data deduplication support in guestmount for creating file based back-ups on visualization platform

On Thu, Feb 09, 2017 at 10:05:36PM +0100, Jelle de Jong wrote:
> Hi Richard,
> Is there a way I can access the /var/log/syslog of an running
> guestmount instance to get the grep ntfs-3g /var/log/syslog
> information?

Not of a running guestmount, no, however if you're using the
API then you can use the debug "back door" to read dmesg and
log files.  There is no documentation for it, but you can find
out what is available by browsing the sources:


Something like:

  const char *cmd[] = { "cat", "/var/log/syslog", NULL };
  guestfs_debug (g, "sh", (char**)cmd);

or the equivalent in other language bindings.


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]