Skip to content

Commit

Permalink
README: add documentation for virtlogd configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelColledge committed Nov 9, 2020
1 parent 409d500 commit 283145d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,19 @@ this:
This allows all users in the group libvirt to run the `dhcp_release` utility
without being prompted for a password.

### Console logs

The `--console` argument to `virter vm run` causes serial output from the VM to
be saved to a file. This file is created with the current user as the owner.
However, it is written to by libvirt, so it needs to located on a filesystem to
which libvirt can write. NFS mounts generally cannot be used due to
`root_squash`.

In addition, when the VM generates a lot of output, this can trigger `virtlogd`
to roll the log file over, which creates a file owned by root (assuming
`virtlogd` is running as root). To prevent this, increase `max_size` in
`/etc/libvirt/virtlogd.conf`.

## Usage

For usage just run `virter help`.
Expand Down

0 comments on commit 283145d

Please sign in to comment.