我的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 ------- Class:Kitchen :: ActionFailed消息:InvalidParameterCombination =>非Windows实例 虚拟化类型' hvm'目前不支持此功能 实例类型。
答案 0 :(得分:1)
您正在尝试使用与实例实例类型不兼容的AMI,或者至少使用某些认为您的AMI。这很奇怪,因为t2.micro应该支持HVM AMI。我会调高日志以查看错误的来源(db.Model.__init__(self, username=username, email=email, **kwargs)
)。