【问题标题】:"Virtualization type 'hvm' required" error in Apache BrooklynApache Brooklyn 中的“需要虚拟化类型‘hvm’”错误
【发布时间】:2015-04-13 07:23:42
【问题描述】:

我尝试根据链接 https://brooklyn.incubator.apache.org/v/latest/yaml/chef/creating-blueprints.html 从厨师创建蓝图。

大型实例的 location 和 provisioning.properties 是通过 yaml 提供的。

但是当我启动它时,我收到以下错误:

Required entity not healthy: ChefEntityImpl{id=aL3U028F}Failure running task invoking
start[locations] on 1 node (Aw2cyO4I): Error invoking start at ChefEntityImpl{id=aL3U028F}:
org.jclouds.aws.AWSResponseException: request POST https://ec2.us-west-1.amazonaws.com/
 HTTP/1.1 failed with code 400, error: AWSError{requestId='27baa951-42d1-424d-9bca-c97047207ac3',
requestToken='null', code='InvalidParameterCombination', message=**'Virtualization type
'hvm' is required for instances of type 't2.small'.',** 

Brooklyn 正在选择 t2.small 类型的实例,忽略通过 yaml 提到的 provisioning.properties。

有没有办法通过 brooklyn.properties 文件指定 provision.properties 或强制 Brooklyn 使用通过蓝图提供的配置覆盖?

有人可以帮我吗?

【问题讨论】:

标签: brooklyn


【解决方案1】:

问题现已解决。我可以通过将 ami Id 指定为 provisioning.properties 的一部分来启动 Chef 蓝图。 provisioning.properties: # 这将覆盖属性 minRam: 5046mb minCores: 4 minDisk: 1024 imageId: eu-west-1/ami-3bbaa54f 我在缩进中犯了一个错误。请参阅 gist.github.com/ahgittin/ef8a4b39695f6d4c684e 了解更多详情。谢谢您的帮助 !

【讨论】:

    猜你喜欢
    • 2016-09-20
    • 2014-09-05
    • 2015-11-12
    • 2015-10-20
    • 1970-01-01
    • 2017-12-02
    • 2014-08-28
    • 2011-02-03
    • 2013-07-12
    相关资源
    最近更新 更多