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.
cargo build --releaseStart the server in a VM with vsock:
./p9cpud --net vsockUse 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 -- bashCheck p9cpud --help and p9cpu --help for more details.