Skip to content

Commit

Permalink
Update debug logging flags in firecracker/README (#8318)
Browse files Browse the repository at this point in the history
The old flag doesn't exist any more, and these are useful for
understanding what broke in a failing test.
  • Loading branch information
vanja-p authored Feb 5, 2025
1 parent 1d6f4ad commit f424b29
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ If you want to test workflows locally with firecracker, make sure to set
You can run Firecracker in debug mode to see more detailed
VM logs, including logs from the init binary and vmexec server.

To run in debug mode, set `--executor.firecracker_debug_mode=true`
on the executor, or pass `--test_arg=--executor.firecracker_debug_mode=true`
To run in debug mode, set `--executor.firecracker_debug_stream_vm_logs=true`
on the executor, or pass `--test_arg=--executor.firecracker_debug_stream_vm_logs=true`
to `bazel test`.

It's useful to use debug mode whenever the executor can't connect
to the VM (indicating the VM might have crashed).

You can also stream test outputs to stdout with `--debug_stream_command_outputs`
passed either to the executor or as part of `--test_arg=...`.

### SSH into a VM

You can run arbitrary commands inside a VM either by running a custom
Expand Down

0 comments on commit f424b29

Please sign in to comment.