Information Technology Reference
In-Depth Information
NOTE
Do you want to create your own custom baseboxes? Packer can be used to create base-
boxes from small configuration scripts. The Packer tool is available for download. Chef
Software makes the configuration scripts for the Test Kitchen baseboxes freely available
on the Internet; you can use these as a starting point.
Chef sponsors two projects: Bento and Box-Cutter. The Bento project contains Packer
definitions that Chef uses internally to build software. Box-Cutter offers configuration
management tool-agnostic Packer templates that go beyond the platforms Chef uses for
its internal builds, offering more cutting-edge, experimental features.
Once a basebox has been downloaded, the box is imported to your virtualization software.
Test Kitchen then works with the virtualization provider to configure a virtual machine in-
stance according to the parameters set in the .kitchen.yml file. Finally, it boots up the virtual
machine so that it is ready to use, creating an instance.
You can verify that Test Kitchen performed all these steps by running the kitchen list
command, noting that its Last Action changed to Created :
$ kitchen list
Instance Driver Provisioner Last Action
default-centos65 Vagrant ChefSolo Created
You can also verify that a virtual machine got created in the VirtualBox Manager as shown in
Figure 5-4 and that VBoxManage list runningvms shows that a VM is running.
On Linux/Mac OS X:
$ VBoxManage list runningvms
"default-centos65_default_1407741726274_31370"
{70b5e95a-d5f5-4956-b8b6-86dbf00e7218}
On Windows Command Prompt:
> "C:\Program Files\Oracle\VirtualBox\VBoxManage" list runningvms
"default-centos65_default_1404514741641_54313"
{2db0fb6c-ab8e-4c65-99aa-2d4d4a4d27ff}
Search WWH ::




Custom Search