Information Technology Reference
In-Depth Information
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant up
When you run this command for the first time it will take a while to complete.
That's because Vagrant will download the image file that uses almost 300 MB. The file
will be stored within:
# Unix-like systems
/.vagrant.d/boxes/precise32
# Windows
C:\Users\[username]\.vagrant.d\boxes\precise32
This operation is performed only once during the first boot of your virtual system.
When $ vagrant up is finished you will have a fully fledged Linux system run-
ning on your machine as one of the applications. The command:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant status
outputs the state of the virtual machine as:
default
running (virtualbox)
The virtual system doesn't provide a user interface. You can use the ssh session to
access and work in this system as you would any other of your other Linux hosts. To
open the ssh session to the virtual machine run the following command:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant ssh
When the $ vagrant ssh command succeeds, you will have shell access Host
repositories:running virtual Linux:shell access to the virtual system. You can, for ex-
ample, check the system's version with:
# Guest OS (Ubuntu 12.04)
$ uname -a
or list the logged-in users:
Search WWH ::




Custom Search