Vagrant

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

How to setup Vagrant on Windows

https://www.youtube.com/watch?v=Jax33QzDDVo

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

You need three things to work with Vagrant 

1. Vagrant software
2. Virtual Box
3. SSH Client  -- Git Bash


Git Bash

fsutil fsinfo drives

sreejith_b@ARPGL005668 MINGW64 /d/vagrantvms/centos

$ vagrant ssh

Vagrant failed to initialize at a very early stage:


The home directory you specified is not accessible. The home

directory that Vagrant uses must be both readable and writable.


You specified: D:/Vagrant-NEW/bin


I deleted old location folder of the vagrant  >  D:/Vagrant-NEW/bin



sreejith_b@ARPGL005668 MINGW64 /d/vagrantvms/centos

on Git Bash

$ export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"

$ vagrant ssh

A Vagrant environment or target machine is required to run this

command. Run `vagrant init` to create a new Vagrant environment. Or,

get an ID of a target machine from `vagrant global-status` to run

this command on. A final option is to change to a directory with a

Vagrantfile and to try again.


> Vagrant up 



$ vagrant global-status

$ vagrant global-status
id           name   provider   state   directory
-----------------------------------------------------------------------
a6f2a42  host1  virtualbox running D:/vagrantvms/centos


>>> connect to the machine

$ vagrant ssh host1





Comments

Popular posts from this blog

Vagrant file - samples