You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried both the xdp-hello and tc-egress examples, following the instructions on the readme and they both fail with the same error when I run: cargo xtask run:
thread 'main' panicked at 'failed to run the command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', xtask/src/run.rs:65:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
By default, the runner will append the sudo -E to the run command (for instance, the xdp-hello: https://github.com/aya-rs/book/blob/main/examples/xdp-hello/xtask/src/run.rs#L17). So if you run it as root and sudo command does not exist, you will get that error.
One workaround is to specify the -r option with an empty string: RUST_LOG=info cargo xtask run -r ""
Just to update the information. Recently, I was trying with xdp-hello example, and it turns out there's an option called --runner that specifies the prefix command for running the case. In my case, if the sudo command is not installed, you can either install it and rerun again or do RUST_LOG=info cargo xtask run --runner "". Hope this work for you!
I've tried both the
xdp-hello
andtc-egress
examples, following the instructions on the readme and they both fail with the same error when I run:cargo xtask run
:The text was updated successfully, but these errors were encountered: