Amazon EC2 - Convert EBS root device with instance store root device

前端 未结 2 712
你的背包
你的背包 2020-12-29 11:02

I see that you can convert an instance stored instance to be EBS backed as this question shows. However, I want to do the opposite, take an EBS backed instance and convert

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 11:34

    1. Launch an instance-store instance from an AMI that uses the same kernel used by your EBS-backed AMI.

    2. Create an EBS volume from the snapshot underlying the EBS AMI. (Alternatively, launch an instance of the EBS AMI and Stop the instance when it begins booting. Detach the root volume from the instance - this is usually the volume attached to /dev/sda1.)

    3. Attach the EBS volume to the instance-store instance.

    4. rsync the contents of the EBS volume to the root volume.

    5. Create an instance-store AMI using the standard methods.

    6. Detach the EBS volume and delete it. If you launched an EBS instance in step 2, terminate it.

提交回复
热议问题