Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vmm): add grpc server to handle api requests #26

Merged
merged 5 commits into from
Apr 24, 2024

Conversation

thomas-mauran
Copy link
Contributor

What does this pr do:

This pr adds a gRPC server to our vmm to handle run requests from the api.

How can this be tested:

  • run the api using cargo run --bin api
  • build and run the vmm using
cargo build
sudo -E capsh --keep=1 --user=$USER --inh=cap_net_admin --addamb=cap_net_admin -- -c  'RUST_BACKTRACE=1 '$CARGO_PATH' run --bin vmm -- grpc'
  • fill the yaml template in src/cli/config/config.template.yaml and make sure the code_path is pointing to a real file
  • run the cli and send a query
cargo run --bin cli run --config-path <path_to_cloudlet>/src/cli/config/config.yaml

You should see a new vm get runned in the vmm shell you started

@thomas-mauran thomas-mauran self-assigned this Apr 22, 2024
@thomas-mauran thomas-mauran added the enhancement New feature or request label Apr 22, 2024
@thomas-mauran thomas-mauran requested a review from a team April 22, 2024 19:18
Signed-off-by: Mauran <[email protected]>
@thomas-mauran thomas-mauran merged commit 2338841 into virt-do:main Apr 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants