Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/kit/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ trap 'kill -TERM $BWRAP_PID 2>/dev/null; exit 0' INT TERM
# Run bwrap in background so we can handle signals; xref
# https://github.com/containers/bubblewrap/pull/586
# But probably really we should switch to systemd
bwrap --as-pid-1 --unshare-pid "${BWRAP_ARGS[@]}" --bind /run /run -- ${SELFEXE} container-entrypoint "$@" &
# Bash normally gives a background command /dev/null on stdin, so
# keep stdin attached so QEMU can receive input.
bwrap --as-pid-1 --unshare-pid "${BWRAP_ARGS[@]}" --bind /run /run -- ${SELFEXE} container-entrypoint "$@" <&0 &
BWRAP_PID=$!

# Wait for bwrap to complete
Expand Down
3 changes: 2 additions & 1 deletion docs/src/man/bcvk-ephemeral-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ This design allows bcvk to provide VM-like isolation and boot behavior while lev
**--console**

Connect the QEMU console to the container's stdio (visible via podman logs/attach)
Add **-i -t** to send keyboard input to the guest console.

**--debug**

Expand Down Expand Up @@ -216,7 +217,7 @@ run and SSH into one command with automatic cleanup.

**Debugging boot issues**:

bcvk ephemeral run --console --name debugvm localhost/mybootc
bcvk ephemeral run --console -it --name debugvm localhost/mybootc

## Understanding the Flags

Expand Down
Loading