vagrant up!

to install vagrant:

  1. https://www.vagrantup.com/downloads.html go here
  2. download your needed version and install! is not rocket science

mkdir any_name_you_like

cd any_name_you_like

now you have to initialize vagrant, that is you will try to make a virtual machine

to be able to download virtual boxes you can login here: https://atlas.hashicorp.com/boxes/search and sign up

then you will need to login via your command line

vagrant login

you will need to give your username and password

Think we are still in any_name_you_like folder

ok now lets say we want to install ubuntu/trusty64 version in our vagrant

to do this:

vagrant init ubuntu/trusty64

then when you something like this:

/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /opt in PATH, mode 040777
/opt/vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /opt in PATH, mode 040777
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

you are pretty sure its gonna work

now time for oding as the output suggest

vagrant up

This will download and install ubuntu virtual box trusty 64bit version

Then you can login to your newly created machine like this:

vagrant ssh

You will see output like this:

0 packages can be updated.
0 updates are security updates.
vagrant@vagrant-ubuntu-trusty-64:~$ ls

So thats it! its your new machine

Advertisements
About

Work is fun!

Tagged with: , , , ,
Posted in Vagrant

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Disclaimer
All content provided on this "tareqalam.com" blog is for informational purposes only. The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner of [tareqalam.wordpress.com] will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information.
February 2016
M T W T F S S
« Jan   Apr »
1234567
891011121314
15161718192021
22232425262728
29  

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 23 other followers

%d bloggers like this: