No description
Find a file
2023-05-26 16:23:10 -07:00
.github/workflows Update rust.yml 2023-05-26 16:23:10 -07:00
.vscode work 2022-12-25 21:37:22 -08:00
crates new 2023-04-22 20:31:37 -07:00
.gitignore init 2022-12-05 12:45:15 -08:00
Cargo.lock new 2023-04-22 20:31:37 -07:00
Cargo.toml not working 2022-12-11 16:47:37 -08:00
LICENSE Initial commit 2022-12-05 10:03:54 -08:00
README.md add readme 2022-12-27 13:24:55 -08:00

BUILD

RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-unknown-linux-gnu --release

this will generate the client target/x86_64-unknown-linux-gnu/release/p9cpu and the server target/x86_64-unknown-linux-gnu/release/p9cpud.

Checkout usage by p9cpu --help and p9cpud --help.

Example

Run the server by:

./p9cpud --net vsock --port 12346

Run the client by:

PWD=/ ./p9cpu --tty --net vsock --port 12346 --namespace /lib:/lib64:/usr:/bin:/etc:/home:/export $CID -- /bbin/elvish