仮想マシンのハードウェアバージョンを v19 以降に更新すると "Set-VM : Cannot bind parameter 'Version'... due to enumeration values that are not valid." エラーが発生する
search cancel

仮想マシンのハードウェアバージョンを v19 以降に更新すると "Set-VM : Cannot bind parameter 'Version'... due to enumeration values that are not valid." エラーが発生する

book

Article ID: 426334

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vCenter Server

Issue/Introduction

免責事項:これは英文の記事「Error: "Set-VM : Cannot bind parameter 'Version'... due to enumeration values that are not valid." when updating VM hardware version higher than v18」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

PowerCLI の version パラメータを使用して仮想マシンのハードウェアバージョンを v19 以上に設定しようとすると失敗します。

この際、次のエラーが表示されます。(以下はハードウェアバージョン 21 で試行した場合の例です):

Set-VM : Cannot bind parameter 'Version'. Cannot convert value "21" to type "VMware.VimAutomation.ViCore.Types.V1.VM.VMVersion" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are                    "Unknown,v4,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18".

Environment

ESXi 7.0 U2 以降

Cause

この問題は、version パラメータが非推奨となり、ハードウェアバージョン 19 以降をサポートしなくなったことが原因で発生します。

Resolution

仮想マシンのハードウェアバージョンを更新する際は HardwareVersion パラメータを使用してください。

Additional Information

次のドキュメントを参照してください(Set-VM Cmdlet):

Required Parameter Name Type Description
required
VM VirtualMachine[] Specifies the virtual machine that you want to configure.
optional HardwareVersion String Specifies the version to which you want to upgrade the virtual machine. You cannot downgrade to an earlier version.
optional Version VMVersion This parameter is deprecated. Use the HardwareVersion parameter instead. Specifies the version to which you want to upgrade the virtual machine. The valid values are v4, v7, v8, v9, v10, v11, v12, v13, and v14. You cannot downgrade to an earlier version.