Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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



1- Check vagrant and git


➤ vagrant version
Installed Version: 1.9.3
Latest Version: 1.9.3
You're running an up-to-date version of Vagrant!

➤ 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|
  config.vm.define "ubuntu" do |ubuntu|
    ubuntu.vm.box = "ubuntu/trusty64"
    #ubuntu.vm.network "private_network", ip:"192.168.50.12"
  end
  config.vm.define "srx" do |srx|
    srx.vm.box = "juniper/ffp-12.1X47-D15.4"
    #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 init

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






  • No labels