Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
Sysprep を使用して再利用可能なカスタム Windows AMI を作成し、インストールする方法を教えてください。
所要時間2分
0
System Preparation (Sysprep) を使用して、再利用可能なカスタムの Windows Amazon マシンイメージ (AMI) をキャプチャしてインストールしようとしています。
解決策
Sysprep を実行する際、次のベストプラクティスを実施します。
Sysprep を使用してインスタンスのバックアップを作成しないでください。
Sysprep を本番システムでは実行しないでください。
Windows Server 2016 Nano Server は Sysprep をサポートしていません。
Windows Server 2008 から Windows Server 2012 R2 では、EC2Config で Sysprep を実行します。
Windows Server 2016 または Windows 2019 (LTSC および SAC) では、EC2Launch v1 で Sysprep を実行します。
Windows Server 2022 と Windows Server 2025 では、EC2Launch v2 で Sysprep を実行します。EC2Launch v2 は、Windows 2012、2012 R2、2016 (LTSC、SAC)、2019 (LTSC、SAC) でも使用できます。
注: 詳細については、Microsoft の ウェブサイトで「制限事項」を参照してください。本番システムの Sysprep イメージをキャプチャするには、インスタンスから AMI を作成します。次に、分離された環境で AMI からインスタンスを起動します。起動したインスタンスの Sysprep イメージをキャプチャします。
Windows の [スタート] メニューを選択し、使用している Windows サーバーで次のいずれかの手順を実行します。
Windows Server 2008 から Windows Server 2012 R2 では、[EC2ConfigService の設定] を開き、[イメージ] タブを選択します。
Windows Server 2016 以降では、[EC2LaunchSettings] を開きます。