Vagrant Introduction
As programmers, you may need to develop multiple projects at the same time, use a variety of programming languages, need to use various operating systems, if you put a lot of things on the same computer, will certainly be confused by the various configuration environment. A better approach is that each project has a clean development environment, one of the main uses of virtual machines is that the virtual machine can be configured for each project a virtual machine, so that the development environment is independent of each other, clean. Now the project is unlikely to be completed by a single person, collaborative development needs to ensure that everyone's development environment is the same, in order to avoid each developer individual configuration parameters, install the software, we want the environment is only configured once, and then everyone can share, vagrant is to achieve such a function, Implement a cross-platform, unified deployment of your development environment.
Recently in a public course software Defined Networking, with Professor Nick Feamster of Princeton University in Coursera, the opportunity to learn to build a development environment using vagrant, the following is an introduction to the development steps:
1. Install Vagrant and VirtualBox: Select the appropriate operating system for software download according to the address given in the course, for Linux you can use the LSB_RELEASE-A command to view the operating system version and then download the appropriate Deb file.
Then use the dpkg-i xx.deb command to install the software.
2.Vagrantfile is the file that configures the virtual machine, in the public lesson, has already written this file, therefore runs directly with vagrant up, then uses the Vagrant SSH Remote link virtual machine to be able.
Other development environment configurations can be modified according to the Vagrantfile file provided in the Open class.
Using vagrant to create virtual development environment in Linux system