I recently got an opportunity to explore vagrant!
Its really cool .. (specially when you don't want users to know about the zillion steps+tools needed before your project is all set to run :))
check it out here :-
http://www.vagrantup.com/
For windows it was not much trouble .. just download the installation package and restart and voila!
But on Ubuntu i ran into some issues vagrant virtualbox versions e.t.c
Number of links on net did not work for me.
Finally this is what worked for me.
sudo apt-get purge --auto-remove vagrant
sudo apt-get purge --auto-remove virtulabox
sudo apt-get install dpkg-dev virtualbox-dkms
if you see
if needed
dpkg -l | grep virtualbox
wget http://files.vagrantup.com/packages/a40522f5fabccb9ddabad03d836e120ff5d14093/vagrant_1.3.5_x86_64.deb
dpkg -i vagrant_1.3.5_x86_64.deb
if you already have some vagrant installed remove it as said above since it will conflict if you did remove it and you see seomthing like
-is-not-co-installable-with-errors on-ubuntu
is not co-installable with vagrant:i386 1.2.4
sudo dpkg -r vagrant:i386 1.2.4
dpkg -i vagrant_1.3.5_x86_64.deb
...hopefully now you are all set to run "vagrant up" where your Vagrantfile is .
If you face this :-
the machine is already locked by a session then kill the process
vboxmanage startvm "vagrant_buzz_1403293185" --type headless
if not headless then :-
vboxmanage startvm "vagrant_buzz_1403293185"
to see what vms are present
vboxmanage list vms
If you want to see the details or vagrant up then do
BTW
if you see error related to not seeing git in your path then this might solve it :-
set PATH=%PATH%;C:\Program Files (x86)\Git\bin
to remove trace of the vm you ever setup just do
Its really cool .. (specially when you don't want users to know about the zillion steps+tools needed before your project is all set to run :))
check it out here :-
http://www.vagrantup.com/
For windows it was not much trouble .. just download the installation package and restart and voila!
But on Ubuntu i ran into some issues vagrant virtualbox versions e.t.c
Number of links on net did not work for me.
Finally this is what worked for me.
sudo apt-get purge --auto-remove vagrant
sudo apt-get purge --auto-remove virtulabox
sudo apt-get install dpkg-dev virtualbox-dkms
if you see
WARNING: The character device /dev/vboxdrv does not exist. then do
sudo dpkg-reconfigure virtualbox-dkms sudo dpkg-reconfigure virtualbox
if needed
dpkg -l | grep virtualbox
wget http://files.vagrantup.com/packages/a40522f5fabccb9ddabad03d836e120ff5d14093/vagrant_1.3.5_x86_64.deb
dpkg -i vagrant_1.3.5_x86_64.deb
sudo apt-get install linux-headers-$(uname -r)
if you already have some vagrant installed remove it as said above since it will conflict if you did remove it and you see seomthing like
-is-not-co-installable-with-errors on-ubuntu
is not co-installable with vagrant:i386 1.2.4
sudo dpkg -r vagrant:i386 1.2.4
dpkg -i vagrant_1.3.5_x86_64.deb
...hopefully now you are all set to run "vagrant up" where your Vagrantfile is .
If you face this :-
the machine is already locked by a session then kill the process
ps ax | grep -i virtualbox
or
VBoxManage controlvm "vagrant_buzz_1403293185" poweroff
of If you have a vm that you want to start
vboxmanage startvm "vagrant_buzz_1403293185" --type headless
if not headless then :-
vboxmanage startvm "vagrant_buzz_1403293185"
to see what vms are present
vboxmanage list vms
If you want to see the details or vagrant up then do
VAGRANT_LOG=DEBUG vagrant up
If you want to seewhats going on in the vm vagrant ssh
BTW
Could not find Git in your PATH environment
if you see error related to not seeing git in your path then this might solve it :-
set PATH=%PATH%;C:\Program Files (x86)\Git\bin
to remove trace of the vm you ever setup just do
vagrant destroy
No comments:
Post a Comment