如何改变的Amazon EC2实例类型 [英] How to change the instance type in amazon ec2

查看:1276
本文介绍了如何改变的Amazon EC2实例类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我有 m3.xlarge 实例类型,但我想将其更改为 t1.micro 。我已经停止了服务器,并试图通过右键点击实例名称修改 instace类型

但是,当我点击提交更改服务器的名称,我得到的控制台错误:

  POST https://console.aws.amazon.com/ec2/modify-instance-attribute 400(错误请求)
 

当我细说它进入网络,然后,我得到了从服务器的响应:

<$p$p><$c$c>{"errors":[{"service":"AmazonEC2","action":"ModifyInstanceAttribute","endPoint":"https://ec2.us-east-1.amazonaws.com","status$c$c":400,"message":"Non-Windows目前不支持'HVM'的虚拟化类型的实例此实例type.","error$c$c":"InvalidParameterCombination","errorType":"Unknown","requestId":"28025a27-4c3c-452c-8f04-fc4adc8eb335","serviceResponse":{"Response":{"Errors":{"Error":{"$c$c":"InvalidParameterCombination","Message":"Non-Windows目前不支持与'HVM'的一个虚拟化的类型实例此实例类型}},的RequestID:28025a27-4c3c-452C-8f04-fc4adc8eb335}}}],错误:非Windows目前不支持'HVM'的虚拟化类型的实例此实例的类型。}

该如何解决这个问题,或者如何从 XLARGE 更改实例为微<​​/ code>

解决方案

无论出于何种原因,亚马逊的HVM根据AMI不与t1.micro规模相适应。

亚马逊提供基于硬件的AMI虚拟机(HVM)基础的AMI,和半虚拟机(PVM)。从该错误消息,AWS是说,你现在的情况是基于HVM,以及t1.micro规模将只支持PVM基于实例。

这一轮的办法是从实例创建一个新的AMI,并从该AMI启动一个新实例作为t1.micro大小。要小心,虽然,这可能只是创建一个HVM为基础的AMI,在这种情况下,您将需要从该快照卷为当前实例并创建一个新的AMI。

在HVM的一些详细信息: <一href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html#concepts_cluster_compute_hvmAMI">http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html#concepts_cluster_compute_hvmAMI <一href="http://aws.amazon.com/ec2/faqs/#Does_use_of_Cluster_Compute_Instances_differ_from_other_Amazon_EC2_instance_types">http://aws.amazon.com/ec2/faqs/#Does_use_of_Cluster_Compute_Instances_differ_from_other_Amazon_EC2_instance_types

Currently I am having m3.xlarge instance type, but I want to change it to t1.micro. I have stopped the server and trying to change the instace type by right click on the instance name .

But when I click on submit to change the server name, I am getting an error in console :

POST https://console.aws.amazon.com/ec2/modify-instance-attribute 400 (Bad Request) 

When I elaborate it into the network then The response that I got from the server was :

{"errors":[{"service":"AmazonEC2","action":"ModifyInstanceAttribute","endPoint":"https://ec2.us-east-1.amazonaws.com","statusCode":400,"message":"Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type.","errorCode":"InvalidParameterCombination","errorType":"Unknown","requestId":"28025a27-4c3c-452c-8f04-fc4adc8eb335","serviceResponse":{"Response":{"Errors":{"Error":{"Code":"InvalidParameterCombination","Message":"Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type."}},"RequestID":"28025a27-4c3c-452c-8f04-fc4adc8eb335"}}}],"error":"Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type."}

How can I resolve this problem, or how can I change the instance from xlarge to micro

解决方案

For whatever reason, Amazon's HVM based AMI is not compatible with the t1.micro size.

Amazon has hardware virtual machine (HVM) based AMIs, and paravirtual machine (PVM) based AMIs. From that error message, AWS is saying that your current instance is HVM based, and t1.micro size will only support PVM based instances.

The way round this would be to create a new AMI from your instance and launch a new instance from that AMI as t1.micro size. Be careful, though, this may just create an HVM-based AMI, in which case you will need to snapshot the volume for your current instance and create a new AMI from that.

Some more information on HVM: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html#concepts_cluster_compute_hvmAMI http://aws.amazon.com/ec2/faqs/#Does_use_of_Cluster_Compute_Instances_differ_from_other_Amazon_EC2_instance_types

这篇关于如何改变的Amazon EC2实例类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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