Skip to content

Commit

Permalink
docs: Explain how to enable agent debug
Browse files Browse the repository at this point in the history
Add details on how to enable debug for the agent process.

Fixes clearcontainers#1076.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Mar 16, 2018
1 parent 8856b59 commit 6c01fa1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,25 @@ options in the [configuration file](#Configuration). All of these debug
options are disabled by default. See the comments in the installed
configuration file for further details.

If you want to enable debug for all components, assuming a standard configuration file path, run:
If you want to enable debug for all host-side components, assuming a standard configuration file path, run:

```bash
$ sudo sed -i -e 's/^#\(enable_debug\).*=.*$/\1 = true/g' /usr/share/defaults/clear-containers/configuration.toml
```

The agent (`cc-agent`) that runs inside each virtual machine is slightly different. To enable its debug, set a
special guest kernel command-line parameter (`agent.log`) to `debug`. This agent looks for this special option when it starts:

```bash
$ sudo sed -i -e 's/^kernel_params = ""/kernel_params = "agent.log=debug"/g' /usr/share/defaults/clear-containers/configuration.toml
```

Note:

The previous command will only set the option if you have a default configuration
file. If you have modified the original value of `kernel_params` you will need
to add the `agent.log` value yourself.

See the [agent debug document](docs/debug-agent.md) and the [kernel debug document](docs/debug-kernel.md) for further details.

## Limitations
Expand Down

0 comments on commit 6c01fa1

Please sign in to comment.