

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# License Manager でのライセンスタイプ変換のトラブルシューティング
<a name="conversion-troubleshooting"></a>

**Topics**
+ [Windows のアクティベーション](#conversion-troubleshooting-kms)
+ [Instance [instance] is launched from an Amazon owned AMI. Provide an instance launched originally from a BYOL AMI.](#conversion-troubleshooting-aws-ami)
+ [Failed to validate that instance [instance] was launched from a BYOL AMI. Ensure that the SSM Agent is running on your instance.](#conversion-troubleshooting-validate-byol)
+ [An error occurred (InvalidParameterValueException) when calling the `CreateLicenseConversionTaskForResource` operation: ResourceId - [instance] is in an invalid state for changing license type.](#conversion-troubleshooting-invalid-state)
+ [EC2 instance [instance] failed to stop. Ensure that you have permissions for EC2 `StopInstances.`](#conversion-troubleshooting-failed-to-stop)

## Windows のアクティベーション
<a name="conversion-troubleshooting-kms"></a>

ライセンスタイプ変換には、複数のステップが含まれます。場合によっては、Windows Server インスタンスをBYOLからライセンスインクルードに変換すると、インスタンスの課金製品が正常に更新されます。ただし、KMSサーバーが AWS KMSサーバーには切り替わらない場合があります。

この問題を解決するには、「[EC2 Windows インスタンスで Windows ライセンス認証が失敗したのはなぜですか](https://aws.amazon.com/premiumsupport/knowledge-center/windows-activation-fails/)」の手順を実行し、Systems Manager で [https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-activatewindowswithamazonlicense.html](https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-activatewindowswithamazonlicense.html) Automation ランブックを使用するか、またはインスタンスにログインし、手動で AWS KMS サーバーに切り替えることで、Windows をアクティブ化します。

## Instance [instance] is launched from an Amazon owned AMI. Provide an instance launched originally from a BYOL AMI.
<a name="conversion-troubleshooting-aws-ami"></a>

ライセンスタイプを Bring Your Own License model (BYOL) に変換するには、インポートした AMI から Amazon EC2 Windows インスタンスを起動する必要があります。もともと Amazon 所有の AMI から起動されたインスタンスは、ライセンスタイプを BYOL に変換することはできません。詳細については、「[License Manager ライセンスタイプの変換前提条件](conversion-prerequisites.md)」を参照してください。

## Failed to validate that instance [instance] was launched from a BYOL AMI. Ensure that the SSM Agent is running on your instance.
<a name="conversion-troubleshooting-validate-byol"></a>

ライセンスタイプ変換を成功させるには、まずインスタンスがオンラインで、Systems Manager によって管理され、インベントリが収集されている必要があります。 AWS Systems Manager エージェント (SSM エージェント) は、オペレーティングシステムに関する詳細を含むインベントリをインスタンスから収集します。詳細については、「AWS Systems Manager ユーザーガイド」の「[SSM エージェントステータスを確認し、エージェントを起動する](https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent-status-and-restart.html)」と「[SSM エージェントのトラブルシューティング](https://docs.aws.amazon.com/systems-manager/latest/userguide/troubleshooting-ssm-agent.html)」を参照してください。

## An error occurred (InvalidParameterValueException) when calling the `CreateLicenseConversionTaskForResource` operation: ResourceId - [instance] is in an invalid state for changing license type.
<a name="conversion-troubleshooting-invalid-state"></a>

ライセンスタイプを変換するには、対象となるインスタンスが停止状態になっている必要があります。詳細については、「Amazon Elastic Compute Cloud ユーザーガイド」の「[License Manager ライセンスタイプの変換前提条件](conversion-prerequisites.md)」および「[インスタンスの停止に関するトラブルシューティング](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html)」を参照してください。

## EC2 instance [instance] failed to stop. Ensure that you have permissions for EC2 `StopInstances.`
<a name="conversion-troubleshooting-failed-to-stop"></a>

ターゲットインスタンスで `StopInstances` EC2 API アクションを実行するためのアクセス許可が必要です。また、ターゲットインスタンスで停止保護が有効になっていると、変換プロセスは失敗します。詳細については、「Amazon Elastic Compute Cloud ユーザーガイド」の「[実行中または停止したインスタンスに対する停止保護を無効にします](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Stop_Start.html#disable-stop-protection-on-running-or-stopped-instance)」を参照してください。