Seem to have the same root cause the allocated memory for the enclave is not enough for the kernel running inside the enclave to unpack the initramfs and user sees in the kernel logs:
"Failed to unpack initramfs"
Followed by:
Could not open /env file: No such file or directory
Could not open /env file: No such file or directory
The guideline to overcome this problem is to always have the enclave memory 4 times more than the size of Enclave image file(EIF).
The nitro-cli should enforce this rule and provide an intuitive error when this happens.
https://github.com/aws/aws-nitro-enclaves-cli/issues/188 https://github.com/aws/aws-nitro-enclaves-cli/issues/194
Seem to have the same root cause the allocated memory for the enclave is not enough for the kernel running inside the enclave to unpack the initramfs and user sees in the kernel logs:
Followed by:
The guideline to overcome this problem is to always have the enclave memory 4 times more than the size of Enclave image file(EIF).
The nitro-cli should enforce this rule and provide an intuitive error when this happens.