在 Windows 中运行 Amazon EC2 AMI

发布于 2024-07-05 16:34:39 字数 81 浏览 7 评论 0原文

有没有办法在 Windows 中运行 Amazon EC2 AMI 映像? 我希望能够在本地进行一些测试和配置。 我正在寻找类似虚拟电脑的东西。

Is there a way to run an Amazon EC2 AMI image in Windows? I'd like to be able to do some testing and configuration locally. I'm looking for something like Virtual PC.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

我要还你自由 2024-07-12 16:34:39

如果您从头开始构建映像,则可以使用 VMware 来完成(或在此处插入您最喜欢的 VM 软件)。

根据需要构建并安装您的 Linux 机器,然后在来宾中运行 AMI 打包/上传工具。 然后,只需将 VM 映像的备份副本与您上传的不同 AMI 保持同步即可。

一些注意事项:您需要确保使用兼容的内核,或者至少在虚拟机中具有兼容的内核模块,否则您的实例将无法在 EC2 网络上启动。 您还必须确保您的系统也可以自动配置自身(网络、安装等)。

如果您想使用现有的 AMI,那就有点棘手了。 您需要下载 AMI 并将其解压到 VM 映像中,添加内核并启动它。 据我所知,没有“一键式”方法可以使其发挥作用。 此外,AMI 可能已加密(我知道它们至少已签名)。

您可以通过设置“引导”虚拟机来使用 AMI 工具将 AMI 专门提取到虚拟磁盘中,然后单独引导该虚拟磁盘来实现此目的。

我知道这很模糊,但这些是您必须执行的步骤。 您可能可以编写一些脚本来自动执行将 AMI 转换为 vdks 的过程。

亚马逊论坛也很有帮助。 例如,请参阅本文

哦,本文还详细讨论了其中一些过程。

If you build your images from scratch you can do it with VMware (or insert your favorite VM software here).

Build and install your linux box as you'd like it, then run the AMI packaging/uploading tools in the guest. Then, just keep backup copies of your VM image in sync with the different AMI's you upload.

Some caveats: you'll need to make sure you're using compatible kernels, or at least have compatible kernel modules in the VM, or your instance won't boot on the EC2 network. You'll also have to make sure your system can autoconfigure itself, too (network, mounts, etc).

If you want to use an existing AMI, it's a little trickier. You need to download and unpack the AMI into a VM image, add a kernel and boot it. As far as I know, there's no 'one click' method to make it work. Also, the AMI's might be encrypted (I know they are at least signed).

You may be able to do this by having a 'bootstrap' VM set up to specifically extract the AMI's into a virtual disk using the AMI tools, then boot that virtual disk separately.

I know it's pretty vague, but those are the steps you'd have to go through. You could probably do some scripting to automate the process of converting AMI's to vdks.

The Amazon forum is also helpful. For example, see this article.

Oh, this article also talks about some of these processes in detail.

深者入戏 2024-07-12 16:34:39

Amazon EC2 与 Windows Server - 今天早上宣布,非常令人兴奋

http://aws.amazon.com/windows/< /a>

Amazon EC2 with Windows Server - announced this morning, very exciting

http://aws.amazon.com/windows/

晨曦慕雪 2024-07-12 16:34:39

它有点像圆孔中的方钉……有点像在 Linux 上运行 MS-Office。

根据您如何珍惜时间,购买另一台 PC 并安装 Linux 和 Xen 会更便宜。

It's a bit of a square peg in a round hole ... kind of like running MS-Office on Linux.

Depending on how you value your time, it's cheaper to just get another PC and install Linux and Xen.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文