Information Technology Reference
In-Depth Information
default
running (virtualbox)
This is the state of the machine after a successful $ vagrant up command.
The next state—denoted as saved—is returned by the $ vagrant status com-
mand as:
default
saved (virtualbox)
This is the state after the $ vagrant suspend command.
The last state—power off—is returned by the $ vagrant status command as:
default
poweroff (virtualbox)
This is the state the virtual machine enters after the $ vagrant halt command.
The state of every virtual machine is clearly indicated by the icons displayed by Vir-
tualBox. The virtual machine visible in Figure 11-1 is denoted with green arrow
labeled running .
Hint Do not use $ sudo shutdown -h now or any other similar command to
power off the virtual system. This command transforms the system from running into
not created. The result of $ sudo shutdown -h now is the same as $ vagrant
destroy .
Opening the SSH session to a virtual host
You can access the virtual system with SSH using:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant ssh
This command runs the ssh client using settings that can be listed with:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant ssh-config
Search WWH ::




Custom Search