0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AWS Nitro Enclaves 超初心者のエラー回避備忘録

Posted at

内容

nitro-cli run-enclave --cpu-count 2 --memory 5120 --eif-path hello.eif --debug-mode --enclave-cid 16

nitro-cli の run-enclave コマンドにて、以下のようなエラーが出たときのこと。

If you open a support ticket, please provide the error log found at "/var/log/nitro_enclaves/err2023-04-25T01:48:49.334673532+00:00.log"

にて、log をチェックすると、

Create VM ioctl failed
The enclave cannot be created because no CPUs are available in the pool

となっていた。

解決策

おそらくエンクレーブが既に使用中なので、それをチェックして必要であれば削除します。

nitro-cli describe-enclaves
  {
    "EnclaveName": "mytest",
    "EnclaveID": "i-07bdc1796ceb8d416-enc18779365aef52a0",
    "ProcessID": 26137,
    "EnclaveCID": 16,
    "NumberOfCPUs": 2,
    "CPUIDs": [
      1,
      3
    ],

のようになっていれば、

 nitro-cli console --enclave-id i-07bdc1796ceb8d416-enc18779365aef52a0

のようにしてプロセスをチェックしてみましょう。
削除するには、

sudo nitro-cli terminate-enclave --enclave-id i-07bdc1796ceb8d416-enc18779365aef52a0

を実行します。

{
  "EnclaveName": "my_test",
  "EnclaveID": "i-07bdc1796ceb8d416-enc18779365aef52a0",
  "Terminated": true
}

削除が成功したら、再度エンクレーブを使用してみましょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?