-
Notifications
You must be signed in to change notification settings - Fork 114
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
Test Oak Functions in SEV-SNP #5047
Comments
Hi, You should be able to test with SEV-SNP by adding another command-linne argument to the launcher: Also, please note that full SEV-SNP support might require some OS and software updates. If you are running the latest stable version of Debian (bookworm) it also requires the latest upstream Linux kernel (6.12) and QEMU 9.1.1. |
Thank you for the information! It works with the command:
Do you know how to test the WASM lookup inside the container? I use run_oak_functions_containers_launcher but get |
The I will update the readme in In the meantime you should be able to run it with the following set of commands: just all_oak_functions_containers_binaries
just stage1_cpio
just all_wasm_test_crates
artifacts/oak_functions_containers_launcher \
--vmm-binary=$(which qemu-system-x86_64) \
--stage0-binary=artifacts/stage0_bin \
--kernel=artifacts/oak_containers_kernel \
--initrd=artifacts/stage1.cpio \
--system-image=artifacts/oak_containers_system_image.tar.xz \
--container-bundle=bazel-bin/oak_functions_containers_app/bundle.tar \
--ramdrive-size=1000000 \
--memory-size=10G \
--wasm=target/wasm32-unknown-unknown/release/key_value_lookup.wasm \
--lookup-data=oak_functions_launcher/mock_lookup_data \
--vm-type=sev-snp While the server is running you can use the following command in a separate shell to test the lookup functionality: bazel run //cc/client:cli -- --address=127.0.0.1:8080 --request=test_key |
@conradgrobler Thanks! I can run it after patching dingelish/qemu@876e262. But the cli command failed to connect the remote host
|
That is weird if it happens while the launcher is running. I have two suggestions to try:
|
Hi,
I'm trying to test the wasm runtime with
oak_functions_containers_launcher
Is there any guidance available for testing with SEV-SNP? The current one under
/oak_functions_containers_launcher/
seems to be outdated.Thanks
The text was updated successfully, but these errors were encountered: