vagrant-installation on WINDOWS
Vagrant provides easy to configure, reproducible, and portable work environments built on top of industry-standard technology and controlled by a single consistent workflow to help maximize the productivity and flexibility of you and your team.Once you or someone else creates a single Vagrantfile, you just need to vagrant up and everything is installed and configured for you to work. Other members of your team create their development environments from the same configuration, so whether you are working on Linux, Mac OS X, or Windows, all your team members are running code in the same environment, against the same dependencies, all configured the same way. Say goodbye to "works on my machine" bugs.
For more, visit Vagrant
The files for the project, download.
Within the download you'll find the following directories and files:
Vagrant-Installation-master.zip
|
└── images
| |
| └── v0.jpg
| └── v1.jpg
| └── v2.jpg
| └── v3.jpg
|
└── VM_Vagrant
| |
| └── Vargantfile
|
└── README.md
-
Install Vagrant.
-
Install Virtual Box.
-
First here, I go to anydrive and un-zip, copy the downloaded folder here
-
open command prompt here
C:\Users\vijaybabu\Desktop\VM_Vagrant>
- Skip, below command unless to want to use another vagrant box.
- There are different vagrant-boxes here
- This required only at time of intialization.To use different Vagrant-Box, use below command,for eg: choose box ubuntu/trusty64
C:\Users\vijaybabu\Desktop\VM_Vagrant>vagrant init ubuntu/trusty64
continue ...,
- To Start Vagrant
- To Exit Vagrant
- To Stop Vagrant
- To Restart Vagrant
C:\Users\vijaybabu\Desktop\VM_Vagrant>vagrant up
live demo
- To control Virtual Machine from Host Sytem
C:\Users\vijaybabu\Desktop\VM_Vagrant>vagrant ssh
live demo
- To Access shared Directory Folders,
vagrant@vagrant:~$ cd /vagrant
vagrant@vagrant:/vagrant$
vagrant@vagrant:/vagrant$ ls -a
. .. .vagrant Vagrantfile
vagrant@vagrant:/vagrant$
- To Exit from vagrant virtual box ,
vagrant@vagrant:/vagrant$
vagrant@vagrant:/vagrant$ exit
logout
Connection to 127.0.0.1 closed.
C:\Users\vijaybabu\Desktop\VM_Vagrant>
- To stop vagrant virtual box ,
C:\Users\vijaybabu\Desktop\VM_Vagrant>vagrant halt
==> default: Attempting graceful shutdown of VM...
C:\Users\vijaybabu\Desktop\VM_Vagrant>
if any changes made to config file Vagrantfile must follow these,
- how to use postgresql see from here.
- Have a bug or a feature request? Please feel free to open an issue.