Information Technology Reference
In-Depth Information
Now that the virtual machine has been created and started, you can log in to the instance via
the kitchen login command, using the same instance name we used for kitchen create :
$ kitchen login default-centos65
Last login: Fri Jul 4 14:48:27 2014 from 10.0.2.2
Welcome to your Packer-built virtual machine.
You should notice that you are now logged into the CentOS 6.5 guest virtual machine run-
ning on your Chef Development Workstation host via Oracle VM VirtualBox. To verify that
the operating system is indeed CentOS Enterprise Linux, run cat /etc/redhat-release to
print out the operating system release information:
[vagrant@default-centos65 ~]$ cat /etc/redhat-release
CentOS release 6.5 (Final)
NOTE
If you get an error message that includes “No such file or directory - ssh,” make sure that
you have the ssh program in your $PATH. On Windows, make sure you install the Unix
tools for Windows, which includes the required ssh command (see Install Unix Tools for
Windows ) .
In this topic, you will see that all the virtual machine command lines will have the Test
Kitchen instance name in them before the $ prompt. For example, note that the command
lines you just ran in the virtual machine were all prefaced by [ vagrant@default-centos65
~] . This should make it less confusing as to whether commands should be run in the Chef
Workstation host environment or the virtual machine guest environment.
To exit back out to your host command prompt, run the exit command. You should notice
that the command prompt changes from [ vagrant@default-centos65 ~] to the default
prompt for your host platform:
[vagrant@default-centos65 ~]$ exit
logout
Connection to 127.0.0.1 closed.
Atwood:kitchen misheska$
Search WWH ::




Custom Search