CentOS 6.8 v 2.3.0 does not create
Using ChefDK/KitchenCI/Vagrant/VirtualBox, the 2.3.0 version of the CentOS 6.8 image fails when Vagrant tries to connect to the VM via SSH. Pinning the 2.2.9 version resolves issue. Not clear why. Working .kitchen.yml is attached.
driver:
name: vagrant
provisioner:
name: chef_zero
verifier:
name: inspec
# To make Windows work, need to install vagrant windows plugin, first
# vagrant plugin install vagrant-winrm
# See: https://github.com/criteo/vagrant-winrm
platforms:
- name: centos-6.8
driver:
network:
- ['private_network', {ip: '192.168.56.12'}]
transport:
name: ssh
username: vagrant
password: vagrant
driver:
box: bento/centos-6.8
box_url: https://atlas.hashicorp.com/bento/boxes/centos-6.8/versions/2.2.9/providers/virtualbox.box
- name: centos-7.2
driver:
network:
- ['private_network', {ip: '192.168.56.13'}]
transport:
name: ssh
username: vagrant
password: vagrant
driver:
box: bento/centos-7.2
box_url: https://atlas.hashicorp.com/bento/boxes/centos-7.2/versions/2.2.9/providers/virtualbox.box
- name: mwrock/Windows2012R2
os_type: windows
shell_type: powershell
communicator: winrm
transport:
name: winrm
username: vagrant
password: vagrant
driver:
box: mwrock/Windows2012R2
box_url: https://atlas.hashicorp.com/mwrock/boxes/Windows2012R2
network:
- ['private_network', {ip: '192.168.56.14'}]
suites:
- name: default
run_list:
- recipe[my_httpd::default]
attributes:
driver:
memory: 1024
cpus: 1
This this is a case of user error. Sorry. Will reopen if it still appears to be an issue.
What user error did you end up having here?
A few of us here in the office are getting the same issue and your fix of falling back to the 2.2.9 solved our problem.
@dayne this is likely related to the other numerous closed issues but to recap
Bento boxes of version 2.3.0 are only verified to work with the following set of versions:
- Vagrant 1.8.6
- VirtualBox 5.1.6
@cheeseplus Thanks - you nailed it VirtualBox needed to be updated..
I was suspecting that and working my way through updating each part individually (chef, vagrant, virtual) to see if I could detect which one I had out of date causing issue.
My VirtualBox (5.0.x) offered up a download for an update but that didn't prompt me into the 5.1.x version I needed and was just getting me updated to latest 5.0.x.
On your note headed over to VirtualBox download and grabbed 5.1.8 and things are working like a charm without pinning the version of the bento box.
Thanks
➜ vagrant --version
Vagrant 1.8.6
➜ boxes chef --version
Chef Development Kit Version: 0.19.6
chef-client version: 12.15.19
delivery version: master (802e801d920ea6b6d48db735aa7c6e7a6194bea4)
berks version: 5.1.0
kitchen version: 1.13.2
➜ boxes vboxmanage --version
5.1.8r111374
The 5.1 update, although supposedly a minor version, felt way to much like a major and hence the maintaining two branches. We've had some reports of regressions with 5.1.8 but it seems a narrow cross-section of boxes but glad it's working for you!