lsds / sgx-lkl

SGX-LKL Library OS for running Linux applications inside of Intel SGX enclaves
MIT License
257 stars 89 forks source link

ERROR: Failed to map /foo: Resource busy #853

Open Abhiroop opened 1 year ago

Abhiroop commented 1 year ago

I am trying to run a Haskell application using SGX-LKL. I am able to create the disk image, however when I run it with

sgx-lkl-run-oe --hw-debug rootfs.img /foo

I get the following:

[[  SGX-LKL ]] ERROR: Failed to map /foo: Resource busy
[    0.144256] reboot: Restarting system

I create the disk image using the following:

/opt/sgx-lkl-debug/bin/sgx-lkl-disk create --docker=./Dockerfile --size 40M --encrypt --key-file rootfs.img

Any pointers on debugging this?