[Libguestfs] Script to read systemd journal of a guest to find its IP address

Richard W.M. Jones rjones at redhat.com
Sat Jun 14 13:25:59 UTC 2014


I've pushed a new tool called "virt-log" upstream, so you can now
just do:

  virt-log -d Guest

or:

  virt-log -a disk.img

It will automatically fetch the journal or traditional syslog file as
appropriate, and we can add Windows support in future.

Unfortunately the journal_* API calls are rather slow because they
have to fetch each single line from the journal.  So there's some work
to be done to make that fast.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html




More information about the Libguestfs mailing list