ESXiの起動時にlocal.shが実行されない

  • ASUS PN50
  • ESXi-7.0U3b-18905247

/etc/rc.local.d/local.shにシェルスクリプトを書き足してESXiを再起動したというのに、起動時にちっとも実行される気配がないので大変こまった。

散々、試行錯誤してうまくいかないので半ば諦めていたところで何気なくファイル内の記述に目をやるとこうである。

cat /etc/rc.local.d/local.sh
#!/bin/sh ++group=host/vim/vmvisor/boot

# local configuration options

# Note: modify at your own risk! If you do/use anything in this
# script that is not part of a stable API (relying on files to be in
# specific places, specific tools, specific output, etc) there is a
# possibility you will end up with a broken system after patching or
# upgrading. Changes are not supported unless under direction of
# VMware support.

# Note: This script will not be run when UEFI secure boot is enabled.

UEFIセキュアブートが有効になっているとlocal.shは実行されないのであった。後に公式サイトにも同様の記載があるのを発見した。UEFIセキュアブートを無効にすることで漸くlocal.shがESXi起動時に実行されるようになった。

コメントする

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください