【问题标题】:Why Does a micro instance if RH7.2 return "Non-Windows instances with a virtualization type of 'hvm' are currently not supported ...."?如果 RH7.2 返回“当前不支持虚拟化类型为 'hvm' 的非 Windows 实例......”,为什么微实例?
【发布时间】:2016-02-03 05:16:57
【问题描述】:

我的 kitchen.yml 看起来像。

driver:
  name: ec2
  require_chef_omnibus: true
  instance_type: t2.micro
  block_device_mappings:
    - ebs_device_name: /dev/sda1
      ebs_volume_type: standard
      ebs_virtual_name: test
      ebs_volume_size: 50
      ebs_delete_on_termination: true
transport:
  ssh_key: /home/atg/.ssh/id_rsa
  connection_timeout: 10
  connection_retries: 5

provisioner:
  name: chef_zero

# Uncomment the following verifier to leverage Inspec instead of Busser (the
# default verifier)
# verifier:
#   name: inspec

platforms:
    - name: redhat-7.2
      driver:
        image_id: ami-2051294a
      transport:
        username: root
    - name: ubuntu-14.04
      driver:
        image_id: ami-fce3c696
      transport:
        username: ubuntu

suites:
  - name: default
    run_list:
      - recipe[ssh::default]
      - recipe[python::default]
      - recipe[git::default]
      - recipe[ureka::default]
     attributes: 
      ssh:
        options': {'Compression': 'yes', 'ForwardX11': 'yes', 'X11UseLocalhost': 'yes', 'UsePAM': 'no'}

厨房收敛返回

在实例上创建失败。请参见 .kitchen/logs/default-redhat-72.log 了解更多详情 ------Exception------- 类:Kitchen::ActionFailed 消息:InvalidParameterCombination => 具有 目前不支持“hvm”的虚拟化类型 实例类型。

【问题讨论】:

  • 实例是否在 VPC 中创建?

标签: amazon-ec2 chef-infra test-kitchen


【解决方案1】:

您正在尝试使用与实例实例类型不兼容的 AMI,或者至少您认为是。这很奇怪,因为 t2.micro 应该支持 HVM AMI。我会打开日志以查看错误来自哪里 (kitchen create redhat -l debug)。

【讨论】:

    猜你喜欢
    • 2017-12-02
    • 2015-10-20
    • 2016-09-20
    • 2014-09-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多