New in libguestfs: virt-log

In libguestfs ≥ 1.27.17, there’s a new tool called virt-log for displaying the log files from a disk image or virtual machine:

$ virt-log -a disk.img | less

Previously you could write:

$ virt-cat -a disk.img /var/log/messages

That worked for some Linux guests, but several things happened:

Virt-log is designed to do the right thing automatically (although at the moment Windows support is not finished). In particular it will automatically decode and display the systemd journal, and it knows the different locations that some Linux distros store their plain text log files.

4 Comments

Filed under Uncategorized

4 responses to “New in libguestfs: virt-log

  1. Pingback: F21 on Track, FESCo Membership Change, More DNF vs. Yum, Reading VM Logs, and Wiki Infoboxes (5tFTW 2014-06-17) | Fedora Magazine

  2. Pingback: virt-log now supports the Windows Event Log | Richard WM Jones

  3. Pingback: Pět věcí ve Fedoře za poslední týden (17. 6. 2014) | Fedora.cz

  4. Pingback: libguestfs 1.28 released | Richard WM Jones

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.