Information Technology Reference
In-Depth Information
Right now, your computer is running two operating systems. The original system is
called the
host system ,
and the virtual system is called the
guest system
. For example,
if you are working in Windows:
• Windows is your host system.
• Ubuntu Linux 12.4 is your guest system.
All the commands issued in previous chapters were executed by the shell of your
host operating system. Starting from Recipe 11-2, we will use two command lines: one
for the host operating system and the other for the guest operating system. To make the
instructions more clear I use the following comments:
# Host OS (e.g., Windows, Linux, OS X)
$ command ...
# Guest OS (Ubuntu 12.04)
$ command ...
They explain which command line should be used for every command.
Starting, stopping, and destroying virtual Linux
Vagrant provides the following commands to control the state of your virtual machine:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant status
$ vagrant up
$ vagrant suspend
$ vagrant resume
$ vagrant halt
$ vagrant destroy
The first command,
$ vagrant status
, returns the information about the virtu-
al machine.
The
$ vagrant up
command boots the virtual machine.
The next command,
$ vagrant suspend
, saves the system in its current state
on your hard drive. When you suspend the virtual system it doesn't consume RAM or