如何从AWS中的快照创建Windows实例 [英] How to create a windows instance from snapshot in AWS

查看:592
本文介绍了如何从AWS中的快照创建Windows实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的公司想对Amazon Web Service中的窗口进行每日快照。我们可以拍摄快照没有任何问题,但是当我尝试从快照创建实例时,它总是会创建一个Linux AMI。因此,当服务器启动时,它总是无法通过运行状况检查。

My company want to take daily snapshots of a windows in Amazon Web Service. We can take snapshot without any issue but when I try to create instance from snapshot, it always creates a linux ami. so when the server starts, it always fails the health check.

是否可以从快照创建Windows实例?

Is it possible to create a windows instance from a snapshot?

推荐答案

[请注意,我假设您正在使用EBS支持的EC2实例;如果不是,请检查Eric Hammond的解释,为什么您应在Amazon EC2上使用EBS引导实例。]

[Please note that I'm assuming you are using EBS-Backed EC2 instances; if not, please check Eric Hammond's explanation why You Should Use EBS Boot Instances on Amazon EC2.]

听起来似乎对相关的AWS概念存在误解:

It sounds like there might be a misunderstanding regarding the related AWS concepts:

Amazon EBS 快照用于创建后台的Amazon Machine Images(AMI)并未针对您的用例与它们进行显式交互。具体来说,您不想使用 CreateSnapshot (仅创建Amazon EBS 的快照并将其存储在Amazon S3 中,而您只是想通过专门的操作CreateImage ,它从Amazon EBS支持的实例创建Amazon EBS支持的AMI。正在运行或已停止[强调我的]

While Amazon EBS snapshots are indeed utilized for the creation of an Amazon Machine Images (AMI) under the hood, you do not explicitly interact with them for the use case at hand. Specifically, you don't want to use CreateSnapshot, which only Creates a snapshot of an Amazon EBS volume and stores it in Amazon S3, rather you want to simply create such an AMI via the dedicated action CreateImage, which Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped [emphasis mine]:


  • 此过程在创建Amazon EBS支持的AMI (尽管本节介绍的是创建新 AMI,但过程是相同的

  • 请注意, CreateImage 也会自动处理附加到您的实例的其他EBS卷,如果有的话:

    • 如果除根设备卷之外还使用实例存储卷或EBS卷定制了实例,则新AMI将包含这些卷的块设备映射信息。当您从这个新的AMI启动实例时,该实例将自动使用这些额外的卷启动。

    • This process is outlined in Creating Amazon EBS-Backed AMIs (while this section addresses creating a 'new' AMI, the process is identical to your backup scenario).
    • Please note that CreateImage automatically takes care of additional EBS volumes attached to your instance as well, if any:
      • If you customized your instance with instance store volumes or EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.

      一旦您生成了图像(AMI),就创建了 Amazon EC2 实例从该AMI可以按预期工作,无论是Windows还是Unix。

      Once you have an image (AMI) generated like so in place, creating your Amazon EC2 instance from that AMI should work out as desired, be it a Windows or Unix one.

      这篇关于如何从AWS中的快照创建Windows实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆