- I had to give more permissions to run
run.sh as non-root user:
sudo chmod 0644 /boot/vmlinuz-5.15.0-33-generic
sudo adduser dimakuv sgx
sudo chgrp sgx /dev/sgx_vepc
sudo adduser dimakuv kvm
- Then I do
run.sh. I'm in a VM now, and need to prepare the env:
export PATH=... # the same as I have on my host
export PYTHONPATH=... # the same as I have on my host
mkdir /dev/sgx/
ln -s /dev/sgx_enclave /dev/sgx/enclave
- Now I can test some SGX workload:
# go to helloworld built on host
cd /home/dimakuv/gramineproject/gramine/CI-Examples/helloworld/
gramine-sgx helloworld
- To test the dummy device, I need to insmod it:
# build it on host using `make`
cd /home/dimakuv/tmp/device-testing-tools/gramine-device-testing-module
insmod gramine-testing-dev.ko
# now check that the guest VM has it
ls /dev
... gramine_test_dev ...
run.shas non-root user:run.sh. I'm in a VM now, and need to prepare the env: