Posts

Vagrant file - samples

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Vagrant.configure("2") do |config|   config.vm.define "jenkins" do |jenkins|     jenkins.vm.box = "generic/centos7"     #config.vm.network "private_network", ip:"121.0.0.2"     auto_config = false     #config.vm.network :forwarded_port, guest: 26, host: 3200, id: 'ssh'     config.vm.provider "virtualbox" do |v|       v.memory = 1024       v.cpus = 2     end   end   config.vm.define "ansible" do |ansible|     ansible.vm.box = "generic/centos7"     #config.vm.network "private_network", ip:"121.0.0.5"     auto_config = false     #config.vm.network :forwarded_port, guest: 28, host: 3300, id: 'ssh'     config.vm.provider "virtualbox" do |v|       v.memory = 1024   ...

Vagrant

Image
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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,...