1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

記事投稿キャンペーン 「2024年!初アウトプットをしよう」

Your system has UEFI Secure Boot enabled. UEFI Secure Boot requires ... というエラー(メッセージ)の対処

Last updated at Posted at 2024-01-24

はじめに

NVIDIA GPU環境の構築をしていたところ,以下のような画面が表示されました.

error_screen.png

Your system has UEFI Secure Boot enabled.

UEFI Secure Boot requires additional configuration to work with third-party drivers.

The system will assist you in configuring UEFI Secure Boot. To permit the use of third-party drivers, a new Machine-Owner Key (MOK) has been generated. This key now needs to be enrolled in your system's firmware.

To ensure that this change is being made by you as an authorized user, and not by an attacker, you must choose a password now and then confirm the change after reboot using the same password , in both the "Enroll MOK" and "Change Secure Boot state" menus that will be presented to you when this system reboots.

If you proceed but do not confirm the password upon reboot, Ubuntu will still be able to boot on your system but any hardware that requires third-party drivers to work correctly may not be usable.

いくつかの記事がヒットしたものの,いずれの方法でも最終的な解決には至りませんでした.
その後,試行錯誤しながら解決するに至ったが,その方法をまとめておくので,いくつかある方法の1つとして試してみてもらえればと思います.

対処方法

結論から述べると,メッセージを読まなかったことが最大の原因でした.もう1つの原因は,ssh接続で操作していたことでした.
そもそも,ただの案内文という......(色合いと英語ということから読むことさえしなかった......)

以下の操作を,ホストマシンで直接実行して下さい.

  1. エラー画面の<OK>を選択.
  2. パスワードが2回求められるので入力.
  3. sudo rebootを実行
  4. 起動時にいくつかの選択肢が出てくるので,Enroll MOKを選択.
    • ssh接続で操作している場合,クライアント側にこれが表示されない
  5. パスワードが求められるので,先に入力したものを入力.
  6. 起動

以上の操作が終了後,以下のような表示がされれば成功です.

$ nvidia-smi
Wed Jan 24 13:10:11 2024       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.147.05   Driver Version: 525.147.05   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  Off |
|  0%   31C    P8     4W / 450W |    111MiB / 24564MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1402      G   /usr/lib/xorg/Xorg                 36MiB |
|    0   N/A  N/A      1665      G   /usr/bin/gnome-shell               72MiB |
+-----------------------------------------------------------------------------+
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?