ESXi ホストでコマンドを実行すると "Operation not Permitted" エラーで失敗する
search cancel

ESXi ホストでコマンドを実行すると "Operation not Permitted" エラーで失敗する

book

Article ID: 429315

calendar_today

Updated On:

Products

VMware vSphere ESXi 8.0

Issue/Introduction

免責事項: これは英文の記事 「Running commands on an ESXi host fails with "Operation not Permitted" error」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

ESXi ホストのシェルでコマンドを実行すると、ほとんどのコマンドが以下のエラーで失敗します:
-sh: <cmd>: Operation not permitted

注:esxtop および vm-support コマンドは実行可能です。

Environment

VMware ESXi 8.x

Cause

これは ESXi の Shell Sandbox オプションが有効に設定されている環境において想定される動作です。

Resolution

以下のコマンドを実行して、現在の設定を確認します:
esxcfg-advcfg --get /UserVars/ShellSandboxEnabled

値が 1 の場合、Shell Sandbox は有効です。
出力例:Value of ShellSandboxEnabled is 1

Shell Sandbox が有効な環境でコマンドを実行するには、次の構文に従い supershell ユーティリティを使用してください。
supershell -c "<cmd>"

Additional Information

Shell Sandbox オプションの詳細については、SSH Daemon Sandboxing VOB in vSphere 8.0 release を参照してください。