Information Technology Reference
In-Depth Information
Notice that the default-centos65 instance is set up to use the Vagrant driver (kitchen-vag-
rant) and to use the ChefSolo provisioner. We'll cover the ChefSolo provisioner more in
Chapter 9 .
NOTE
If you are using a Windows PC, make sure you have hardware virtualization support en-
abled in your BIOS. For more information, see the VirtualBox User Manual .
To create a virtual environment on your Chef Development Workstation running CentOS,
use the kitchen create command, passing it a Test Kitchen instance name. Depending on
the speed of your Internet connection, this download might take anywhere from 5 to 15
minutes the first time:
$ kitchen create default-centos65
-----> Starting Kitchen (v1.2.2.dev)
-----> Creating <default-centos65>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'learningchef/centos65' could not be found.
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'learningchef/centos65'
default: URL: https://vagrantcloud.com/learningchef/centos65
==> default: Adding box 'learningchef/centos65' (v0.2.0) for provider:
virtualbox
default: Downloading: https://vagrantcloud.com/learningchef/centos65
==> default: Successfully added box 'learningchef/centos65' (v0.2.0) for
'virtualbox'!
==> default: Importing base box 'learningchef/centos65'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'learningchef/centos65' is up to date...
==> default: Setting the name of the VM: default-centos65_default_
1407741726274_31370
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
Search WWH ::




Custom Search