Steps to reproduce:
- Create a Windows Instance with a single EBS volume (aka root volume)
- Take a snapshot of the root volume (Snap-1)
- Create a new EBS snapshot (Snap-2) using
StartSnapshot
API with the Snap-1 as parent snapshot.
- On Snap-2, issue
CompleteSnapshot
API with 0 changed blocks.
- Create an AMI using
RegisterImage
API with Snap-2 as the root volume and same block device mapping as the original instance.
- Any instance created using the AMI has "Linux/UNIX" in Platform Details and does not boot.
It was observed that this issue occurs only if the EBS snapshot used is created using StartSnapshot
API. For example, if Snap-1 was used in the RegisterImage
call, any instance created using the AMI is showing platform as "windows" and is booting up properly.
Question:
Is there any way to create a Windows AMI (that creates bootable windows instances) using EBS snapshots created via StartSnapshot
API or is there any workaround for this ?
Source for the above - https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_EBSbacked_WinAMI.html#process-creating-a-windows-ami-ebs