mirror of
https://github.com/Lencerf/p9cpu.git
synced 2024-11-24 20:20:30 +00:00
No description
f9b05cb88a
Signed-off-by: Changyuan Lyu <changyuanl@google.com> |
||
---|---|---|
.github/workflows | ||
.vscode | ||
crates | ||
.gitignore | ||
backport.sh | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
p9cpu
p9cpu
is an implementation of the Plan 9 cpu
command for Linux, similar to
u-root/cpu. Check the
CPU chapter of the LinuxBoot book for more
details. Compared with the original Plan 9 cpu
and the Go version
u-root/cpu, p9cpu
is written in Rust and
based on tokio. It uses gRPC for the underlying transport.
Build
cargo build --release
Run
Start the server in a VM with vsock:
./p9cpud --net vsock
Use the p9cpu
command to run the bash
command (of the host) in the VM:
./p9cpu --net vsock --tty --tmp-mnt /tmp --namespace /lib:/lib64:/usr:/bin:/home:/etc $VM_VSOCK_CID -- bash
Check p9cpud --help
and p9cpu --help
for more details.