Information Technology Reference
In-Depth Information
Synchronized folders
The folder with the Vagrantfile on your host OS (this is git-recipes/11-02
in Recipe 11-2) is available in your guest OS as /vagrant . This means that you can
share files among the two systems. The file created in host operating system:
# Host OS (e.g., Windows, Linux, OS X)
git-recipes/11-02/lorem.txt
is available in guest operating system under the name:
# Guest OS (Ubuntu 12.04)
/vagrant/lorem.txt
You can verify it with the following procedure:
1. Start the virtual machine with:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant up
2. Create the file in the host system with:
# Host OS (e.g., Windows, Linux, OS X)
$ echo lorem > lorem.txt
3. Open the SSH session with:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant ssh
4. List the contents of /vagrant directory with:
# Guest OS (Ubuntu 12.04)
$ ls /vagrant
As you can see the file /vagrant/lorem.txt is available within
the ssh session.
Search WWH ::




Custom Search