Information Technology Reference
In-Depth Information
$ vagrant --version
If Vagrant is installed and ready to run, this command will print its version number.
How It Works
Both VirtualBox and Vagrant provide installers that are easy to follow. At the time of
writing the latest available versions were 4.2.18 for VirtualBox and 1.3.1 for Vagrant.
You can try the recipes with the latest versions available at the time you read this
chapter. If the configuration format of Vagrant has changed, you can always switch
back to the versions that I used.
11-2. Running virtual Linux
Problem
You want to run virtual Ubuntu Linux on your computer.
Solution
Create a new directory with:
# Host OS (e.g., Windows, Linux, OS X)
$ cd git-recipes
$ mkdir 11-02
$ cd 11-02
Now initialize a new virtual machine configuration in the current folder:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant init precise32
http://files.vagrantup.com/
The virtual system is ready to be started. Start the virtual Linux with the following
command: