Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image RemovedImage Added

1- Check vagrant and git

2- Install vagrant plugin

3- create the vagrantfile  ( for 2 VMs)

4- start the VM 

5- check the VM ( and ssh-config)

6- use the private key in mobaXterm

7-  vagrant plugin



1- Check vagrant and git


➤ vagrant version
Installed Version: 1.9.3
Latest Version: 1.9.3

...

➤ git --version
git version 2.8.3


2- Install vagrant plugin

vagrant plugin install vagrant-host-shell
vagrant plugin install vagrant-junos



3- create the vagrantfile

cd /drives/c/Users/jkriker/Documents/vagrant/vsrx
➤ vi vagrantfile


  • Type the text below

Vagrant.configure("2") do |config|

...

    #srx.vm.network "private_network", ip:"192.168.50.10"
  end
end


4- start the VM 


cd /drives/c/Users/jkriker/Documents/vagrant/vsrx
➤ vagrant up

5- check the VM ( and ssh-config)


cd /drives/c/Users/jkriker/Documents/vagrant/vsrx
➤ vagrant global-status
id name provider state directory
-----------------------------------------------------------------------------
e8060bf default virtualbox running C:/Users/jkriker/Documents/vagrant/arch1
d651528 ubuntu virtualbox running C:/Users/jkriker/Documents/vagrant/vsrx
8113892 srx virtualbox running C:/Users/jkriker/Documents/vagrant/vsrx

...

➤ vagrant ssh-config srx
Host srx
HostName 127.0.0.1
User root
Port 2201
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile C:/Users/jkriker/Documents/vagrant/vsrx/.vagrant/machines/srx/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL

6- use the private key in mobaXterm



7-  vagrant plugin

jkriker@jkriker-T460 /cygdrive/c/Users/jkriker/Documents/vagrant/ubuntu
$ vagrant plugin list
vagrant-host-shell (0.0.4)
vagrant-junos (0.2.1)
vagrant-share (1.1.7, system)

...