Skip to content

Commit

Permalink
doc: update documentation with interactive shell functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Bretelle <chantr4@gmail.com>
  • Loading branch information
chantra committed Jan 31, 2024
1 parent fe8285a commit c7c84d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ $ vmtest -k ./kernels/Image-arm64 -r ./rootfs/ubuntu-lunar-arm64 -a aarch64 "una
6.6.0-rc5-ga4a0c99f10ca-dirty
```

It is also possible to get an interactive shell prompt in the guest by using the command `-`:
```
vmtest -k ./bzImage-v6.2 "-"
...
...
root@(none):/#
```

See `vmtest --help` for all options and flags.

### Config file interface
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ struct Args {
/// Arch to run
#[clap(short, long, default_value = ARCH, conflicts_with = "config")]
arch: String,
/// Command to run in kernel mode. `-` to get an interactive shell.
#[clap(conflicts_with = "config")]
command: Vec<String>,
}
Expand Down

0 comments on commit c7c84d3

Please sign in to comment.