Vagrant and Installation
Step 1: Installing Virtualbox
Download Oracle Virtulabox from https://www.virtualbox.org/ install virtual box.
Step 2: Installing Vagrant
Download vagrant from https://www.vagrantup.com/downloads.html and install to local machine.
Step 3: Installing Vagrant Host-Manager
Run below commands to install vagrant manager.
$vagrant plugin install vagrant-hostmanager
Step 4: Create vagrant working directory
$mkdir VagrantBox
$cd VagrantBox
$mkdir ubuntu64
$cd ubuntu64
Step 5: Run ubuntu virtual machine
$ vagrant box add {title} {url}
e.g.,
$vagrant box add ubuntu64 https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
Step 6: Initiate vagrant ubuntu machine
$ vagrant init {title}
$ vagrant up
Step 7: A ubuntu machine will start, and requests for username and password. Provide below username and password and start using virtual machine.
username: vagrant
password: vagrant
No comments:
Post a Comment