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.

About these ads

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s