├── puppet-tutorials ├── app_hosting │ ├── centos-pm │ │ ├── configs │ │ │ ├── master │ │ │ │ ├── hostname │ │ │ │ ├── puppet.conf │ │ │ │ ├── cisco_yang.yaml │ │ │ │ ├── hosts │ │ │ │ └── hosts.cfg │ │ │ └── agent │ │ │ │ ├── puppet.conf │ │ │ │ ├── hosts │ │ │ │ ├── cisco_yang.yaml │ │ │ │ └── conft │ │ ├── xr_config │ │ ├── iosxrv.sh │ │ ├── scripts │ │ │ └── apply_config.sh │ │ ├── puppetmaster.sh │ │ ├── Vagrantfile │ │ └── ubuntu-xenial-16.04-cloudimg-console.log │ └── ubuntu-pm │ │ ├── configs │ │ ├── agent │ │ │ ├── puppet.conf │ │ │ ├── hosts │ │ │ └── conft │ │ ├── cisco_yang.yaml │ │ └── master │ │ │ ├── puppet.conf │ │ │ └── hosts │ │ ├── xr_config │ │ ├── puppetmaster.sh │ │ ├── iosxrv.sh │ │ ├── scripts │ │ └── apply_config.sh │ │ └── Vagrantfile ├── README.md └── Vagrantfile ├── ansible-tutorials ├── app_hosting │ ├── configs │ │ ├── ansible_hosts │ │ ├── rtr_config │ │ ├── ansible_env │ │ ├── xr-lxc-app.xml │ │ └── deploy_container.yml │ ├── scripts │ │ └── apply_config.sh │ ├── ubuntu.sh │ └── Vagrantfile ├── README.md ├── xr_config ├── Vagrantfile └── ubuntu.sh ├── single_node_bootstrap ├── configs │ └── rtr_config ├── Vagrantfile └── scripts │ └── apply_config.sh ├── README.md ├── grpc-exercises ├── client │ └── client.tar.gz ├── bashrc ├── configs │ └── rtr_config ├── scripts │ └── apply_config.sh ├── Vagrantfile └── MOTD ├── lxc-app-topo-bootstrap ├── configs │ └── rtr_config ├── scripts │ └── apply_config.sh └── Vagrantfile ├── docker-app-topo-bootstrap ├── configs │ └── rtr_config ├── scripts │ ├── docker_install.sh │ └── apply_config.sh └── Vagrantfile ├── native-app-topo-bootstrap ├── configs │ └── rtr_config ├── iperf.spec ├── scripts │ └── apply_config.sh └── Vagrantfile └── simple-mixed-topo └── Vagrantfile /puppet-tutorials/app_hosting/centos-pm/configs/master/hostname: -------------------------------------------------------------------------------- 1 | centos-puppetmaster 2 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/configs/master/puppet.conf: -------------------------------------------------------------------------------- 1 | autosign = true 2 | -------------------------------------------------------------------------------- /ansible-tutorials/app_hosting/configs/ansible_hosts: -------------------------------------------------------------------------------- 1 | [ss-xr] 2 | 10.1.1.20 ansible_ssh_user=vagrant 3 | 4 | -------------------------------------------------------------------------------- /single_node_bootstrap/configs/rtr_config: -------------------------------------------------------------------------------- 1 | !! XR configuration 2 | ! 3 | grpc 4 | port 57789 5 | ! 6 | end 7 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/configs/agent/puppet.conf: -------------------------------------------------------------------------------- 1 | [main] 2 | server = ubuntu-xenial.cisco.com 3 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/configs/agent/puppet.conf: -------------------------------------------------------------------------------- 1 | [main] 2 | server = centos-puppetmaster.cisco.com 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vagrant-xrdocs 2 | Different Vagrant topology/environment examples for tutorials on 3 | -------------------------------------------------------------------------------- /grpc-exercises/client/client.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ios-xr/vagrant-xrdocs/HEAD/grpc-exercises/client/client.tar.gz -------------------------------------------------------------------------------- /ansible-tutorials/README.md: -------------------------------------------------------------------------------- 1 | # IOSXR-Ansible-tutorial 2 | 3 | Link to tutorial [@xrdocs](https://xrdocs.github.io/application-hosting/tutorials/IOSXR-Ansible) 4 | -------------------------------------------------------------------------------- /puppet-tutorials/README.md: -------------------------------------------------------------------------------- 1 | # IOSXR-Puppet-tutorial 2 | 3 | Link to tutorial [@xrdocs](https://xrdocs.github.io/application-hosting/tutorials/IOSXR-Puppet) 4 | -------------------------------------------------------------------------------- /lxc-app-topo-bootstrap/configs/rtr_config: -------------------------------------------------------------------------------- 1 | !! XR configuration 2 | ! 3 | interface GigabitEthernet0/0/0/0 4 | ip address 11.1.1.10/24 5 | no shutdown 6 | ! 7 | end 8 | -------------------------------------------------------------------------------- /docker-app-topo-bootstrap/configs/rtr_config: -------------------------------------------------------------------------------- 1 | !! XR configuration 2 | ! 3 | interface GigabitEthernet0/0/0/0 4 | ip address 11.1.1.10/24 5 | no shutdown 6 | ! 7 | end 8 | -------------------------------------------------------------------------------- /ansible-tutorials/xr_config: -------------------------------------------------------------------------------- 1 | conf t 2 | 3 | hostname xr 4 | 5 | interface GigabitEthernet0/0/0/0 6 | ipv4 address 10.1.1.20 255.255.255.0 7 | no shutdown 8 | ! 9 | commit 10 | end 11 | 12 | -------------------------------------------------------------------------------- /ansible-tutorials/app_hosting/configs/rtr_config: -------------------------------------------------------------------------------- 1 | hostname xr 2 | ! 3 | interface GigabitEthernet0/0/0/0 4 | ipv4 address 10.1.1.20 255.255.255.0 5 | no shutdown 6 | ! 7 | ! 8 | end 9 | 10 | -------------------------------------------------------------------------------- /native-app-topo-bootstrap/configs/rtr_config: -------------------------------------------------------------------------------- 1 | !! XR configuration 2 | ! 3 | interface loopback0 4 | ip address 1.1.1.1/32 5 | ! 6 | interface GigabitEthernet0/0/0/0 7 | ip address 11.1.1.10/24 8 | no shutdown 9 | ! 10 | end 11 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/configs/agent/hosts: -------------------------------------------------------------------------------- 1 | 127.0.1.1 host 2 | 127.0.0.1 localhost.localdomain localhost host 3 | 127.0.0.1 xr-vm_node0_RP0_CPU0 xr-vm_node0_RP0_CPU0.cisco.com 4 | 10.1.1.10 ubuntu-xenial.cisco.com 5 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/configs/agent/hosts: -------------------------------------------------------------------------------- 1 | 127.0.1.1 host 2 | 127.0.0.1 localhost.localdomain localhost host 3 | 127.0.0.1 xr-vm_node0_RP0_CPU0 xr-vm_node0_RP0_CPU0.cisco.com 4 | 10.1.1.10 centos-puppetmaster.cisco.com 5 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/configs/master/cisco_yang.yaml: -------------------------------------------------------------------------------- 1 | netconf: 2 | host: 10.1.1.20 3 | username: vagrant 4 | password: vagrant 5 | grpc: 6 | host: 10.1.1.20 7 | port: 57777 8 | username: vagrant 9 | password: vagrant 10 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/configs/cisco_yang.yaml: -------------------------------------------------------------------------------- 1 | grpc: 2 | host: 127.0.0.1 3 | port: 57777 4 | username: vagrant 5 | password: vagrant 6 | 7 | netconf: 8 | host: 10.10.10.10 9 | username: vagrant 10 | password: vagrant 11 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/configs/agent/cisco_yang.yaml: -------------------------------------------------------------------------------- 1 | grpc: 2 | host: 127.0.0.1 3 | port: 57777 4 | username: vagrant 5 | password: vagrant 6 | 7 | netconf: 8 | host: 10.10.10.10 9 | username: vagrant 10 | password: vagrant 11 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/configs/master/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 centos-puppetmaster centos-puppetmaster.cisco.com 2 | 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 3 | ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 4 | 10.1.1.20 xr-vm_node0_RP0_CPU0.cisco.com 5 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/configs/master/puppet.conf: -------------------------------------------------------------------------------- 1 | [master] 2 | vardir = /opt/puppetlabs/server/data/puppetserver 3 | logdir = /var/log/puppetlabs/puppetserver 4 | rundir = /var/run/puppetlabs/puppetserver 5 | pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid 6 | codedir = /etc/puppetlabs/code 7 | autosign = true 8 | -------------------------------------------------------------------------------- /ansible-tutorials/app_hosting/configs/ansible_env: -------------------------------------------------------------------------------- 1 | export BASEDIR=/home/vagrant 2 | export IOSXRDIR=$BASEDIR/iosxr-ansible 3 | export ANSIBLE_HOME=$BASEDIR/ansible 4 | export ANSIBLE_INVENTORY=$IOSXRDIR/remote/ansible_hosts 5 | export ANSIBLE_LIBRARY=$IOSXRDIR/remote/library 6 | export ANSIBLE_CONFIG=$IOSXRDIR/remote/ansible_cfg 7 | export YDK_DIR=$BASEDIR/ydk/ydk-py 8 | export PYTHONPATH=$YDK_DIR 9 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/configs/master/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | 127.0.0.1 ubuntu-xenial 3 | 10.1.1.20 xr-vm_node0_RP0_CPU0.cisco.com 4 | 5 | # The following lines are desirable for IPv6 capable hosts 6 | ::1 ip6-localhost ip6-loopback 7 | fe00::0 ip6-localnet 8 | ff00::0 ip6-mcastprefix 9 | ff02::1 ip6-allnodes 10 | ff02::2 ip6-allrouters 11 | ff02::3 ip6-allhosts 12 | -------------------------------------------------------------------------------- /grpc-exercises/bashrc: -------------------------------------------------------------------------------- 1 | # ~/.bashrc: executed by bash(1) for non-login shells. 2 | 3 | export PS1='\h:\w\$ ' 4 | umask 022 5 | 6 | cat MOTD 7 | 8 | # You may uncomment the following lines if you want `ls' to be colorized: 9 | # export LS_OPTIONS='--color=auto' 10 | # eval `dircolors` 11 | # alias ls='ls $LS_OPTIONS' 12 | # alias ll='ls $LS_OPTIONS -l' 13 | # alias l='ls $LS_OPTIONS -lA' 14 | # 15 | # Some more alias to avoid making mistakes: 16 | # alias rm='rm -i' 17 | # alias cp='cp -i' 18 | # alias mv='mv -i' 19 | -------------------------------------------------------------------------------- /docker-app-topo-bootstrap/scripts/docker_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sudo apt-get update 4 | 5 | sudo apt-get install -y --no-install-recommends \ 6 | apt-transport-https \ 7 | ca-certificates \ 8 | curl \ 9 | software-properties-common 10 | 11 | curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add - 12 | 13 | sudo add-apt-repository \ 14 | "deb https://apt.dockerproject.org/repo/ \ 15 | ubuntu-$(lsb_release -cs) \ 16 | main" 17 | 18 | sudo apt-get update 19 | 20 | sudo apt-get -y install docker-engine 21 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/configs/master/hosts.cfg: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | xr-agent: 3 | roles: 4 | - agent 5 | platform: cisco_ios_xr-6-x86_64 6 | ip: 10.1.1.20 7 | port: 57777 8 | vrf: tpnns 9 | ssh: 10 | port: 57722 11 | auth_methods: ["password"] 12 | user: vagrant 13 | password: vagrant 14 | 15 | puppetmaster: 16 | roles: 17 | - master 18 | platform: centos-7-x86_64 19 | ip: 10.1.1.10 20 | ssh: 21 | auth_methods: ["password"] 22 | user: root 23 | password: vagrant 24 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/configs/agent/conft: -------------------------------------------------------------------------------- 1 | hostname xrv9k 2 | domain name cisco.com 3 | 4 | interface GigabitEthernet0/0/0/0 5 | ipv4 address 10.1.1.20 255.255.255.0 6 | no shutdown 7 | ! 8 | router static 9 | address-family ipv4 unicast 10 | 0.0.0.0/0 GigabitEthernet0/0/0/0 10.0.0.1 11 | ! 12 | tpa 13 | address-family ipv4 14 | update-source GigabitEthernet0/0/0/0 15 | ! 16 | grpc 17 | port 57777 18 | ! 19 | ssh server v2 20 | ssh server netconf vrf default 21 | netconf-yang agent 22 | ssh 23 | ! 24 | interface loopback 0 25 | ipv4 address 1.1.1.1 255.255.255.255 26 | no shutdown 27 | ! 28 | interface loopback 1 29 | ipv4 address 10.10.10.10 255.255.255.255 30 | no shutdown 31 | ! 32 | end 33 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/configs/agent/conft: -------------------------------------------------------------------------------- 1 | hostname xrv9k 2 | domain name cisco.com 3 | 4 | interface GigabitEthernet0/0/0/0 5 | ipv4 address 10.1.1.20 255.255.255.0 6 | no shutdown 7 | ! 8 | router static 9 | address-family ipv4 unicast 10 | 0.0.0.0/0 GigabitEthernet0/0/0/0 10.0.0.1 11 | ! 12 | tpa 13 | address-family ipv4 14 | update-source GigabitEthernet0/0/0/0 15 | ! 16 | grpc 17 | port 57777 18 | ! 19 | ssh server v2 20 | ssh server netconf vrf default 21 | netconf-yang agent 22 | ssh 23 | ! 24 | interface loopback 0 25 | ipv4 address 1.1.1.1 255.255.255.255 26 | no shutdown 27 | ! 28 | interface loopback 1 29 | ipv4 address 10.10.10.10 255.255.255.255 30 | no shutdown 31 | ! 32 | end 33 | -------------------------------------------------------------------------------- /single_node_bootstrap/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # All Vagrant configuration is done below. The "2" in Vagrant.configure 5 | # configures the configuration version (we support older styles for 6 | # backwards compatibility). Please don't change it unless you know what 7 | # you're doing. 8 | 9 | Vagrant.configure(2) do |config| 10 | 11 | config.vm.box = "IOS-XRv" 12 | 13 | #Source a config file and apply it to XR 14 | 15 | config.vm.provision "file", source: "configs/rtr_config", destination: "/home/vagrant/rtr_config" 16 | 17 | config.vm.provision "shell" do |s| 18 | s.path = "scripts/apply_config.sh" 19 | s.args = ["/home/vagrant/rtr_config"] 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /native-app-topo-bootstrap/iperf.spec: -------------------------------------------------------------------------------- 1 | 2 | %define _sbindir /usr/sbin 3 | Name: iperf 4 | Version: 2.0.9 5 | Release: XR_6.1.1 6 | License: Copyright (c) 2015 Cisco Systems Inc. All rights reserved. 7 | Packager: cisco 8 | SOURCE0 : %{name}-%{version}-source.tar.gz 9 | Group: 3rd party application 10 | Summary: iperf compiled for WRL7: XR 6.1.1 11 | 12 | %description 13 | This is a compiled version of iperf-2.0.9 for WRL7: XR 6.1.1 14 | 15 | %prep 16 | 17 | %setup -q -n %{name}-%{version} 18 | 19 | %build 20 | ./configure 21 | make 22 | 23 | %install 24 | rm -rf %{buildroot} 25 | mkdir -p %{buildroot}%{_sbindir} 26 | install -m755 src/iperf %{buildroot}%{_sbindir} 27 | 28 | %files 29 | 30 | %defattr(-,root,root) 31 | 32 | %{_sbindir}/iperf 33 | 34 | %clean 35 | 36 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/xr_config: -------------------------------------------------------------------------------- 1 | conf t 2 | 3 | hostname xrv9k 4 | domain name cisco.com 5 | 6 | interface GigabitEthernet0/0/0/0 7 | ipv4 address 10.1.1.20 255.255.255.0 8 | no shutdown 9 | ! 10 | router static 11 | address-family ipv4 unicast 12 | 0.0.0.0/0 GigabitEthernet0/0/0/0 10.0.0.1 13 | ! 14 | tpa 15 | address-family ipv4 16 | update-source GigabitEthernet0/0/0/0 17 | ! 18 | grpc 19 | port 57799 # optional - default is 57400 20 | ! 21 | ssh server v2 22 | ssh server netconf vrf default 23 | netconf-yang agent 24 | ssh 25 | ! 26 | interface loopback 0 27 | ipv4 address 1.1.1.1 255.255.255.255 28 | no shutdown 29 | ! 30 | interface loopback 1 31 | ipv4 address 10.10.10.10 255.255.255.255 32 | no shutdown 33 | ! 34 | commit 35 | end 36 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/xr_config: -------------------------------------------------------------------------------- 1 | conf t 2 | 3 | hostname xrv9k 4 | domain name cisco.com 5 | 6 | interface GigabitEthernet0/0/0/0 7 | ipv4 address 10.1.1.20 255.255.255.0 8 | no shutdown 9 | ! 10 | router static 11 | address-family ipv4 unicast 12 | 0.0.0.0/0 GigabitEthernet0/0/0/0 10.0.0.1 13 | ! 14 | tpa 15 | address-family ipv4 16 | update-source GigabitEthernet0/0/0/0 17 | ! 18 | grpc 19 | port 57799 # optional - default is 57400 20 | ! 21 | ssh server v2 22 | ssh server netconf vrf default 23 | netconf-yang agent 24 | ssh 25 | ! 26 | interface loopback 0 27 | ipv4 address 1.1.1.1 255.255.255.255 28 | no shutdown 29 | ! 30 | interface loopback 1 31 | ipv4 address 10.10.10.10 255.255.255.255 32 | no shutdown 33 | ! 34 | commit 35 | end 36 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/puppetmaster.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | yes | sudo cp /home/ubuntu/hosts /etc/hosts > /dev/null 2>&1 4 | 5 | wget -q https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb 6 | sudo dpkg -i puppetlabs-release-pc1-xenial.deb 7 | sudo apt update -qq > /dev/null 2>&1 8 | sudo apt-get install puppetserver -qq > /dev/null 9 | 10 | git clone https://github.com/cisco/cisco-yang-puppet-module.git -q 11 | cd cisco-yang-puppet-module 12 | /opt/puppetlabs/puppet/bin/puppet module build > /dev/null 13 | sudo /opt/puppetlabs/puppet/bin/puppet module install pkg/*.tar.gz 14 | 15 | yes | sudo cp /home/ubuntu/puppet.conf /etc/puppetlabs/puppet/puppet.conf 16 | sudo /opt/puppetlabs/bin/puppet resource service puppetserver ensure=running enable=true > /dev/null 17 | -------------------------------------------------------------------------------- /ansible-tutorials/app_hosting/configs/xr-lxc-app.xml: -------------------------------------------------------------------------------- 1 | 2 | xr-lxc-app 3 | 327680 4 | /machine/tp_app/lxc 5 | 6 | exe 7 | /sbin/init 8 | 9 | 10 | 11 | 12 | 1 13 | 14 | destroy 15 | restart 16 | destroy 17 | 18 | /usr/lib64/libvirt/libvirt_lxc 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /grpc-exercises/configs/rtr_config: -------------------------------------------------------------------------------- 1 | !! XR configuration 2 | 3 | ! 4 | hostname mcfly 5 | ! 6 | router bgp 50 7 | address-family ipv4 unicast 8 | ! 9 | neighbor 1.1.1.1 10 | remote-as 50 11 | address-family ipv4 unicast 12 | ! 13 | ! 14 | ! 15 | 16 | int loopback0 17 | description gRPC Target address 18 | ipv4 address 10.10.10.10/32 19 | ! 20 | telemetry model-driven 21 | sensor-group interface-stats 22 | sensor-path Cisco-IOS-XR-infra-statsd-oper:infra-statistics/interfaces/interface/latest/generic-counters 23 | ! 24 | subscription 30seconds 25 | sensor-group-id interface-stats sample-interval 30000 26 | ! 27 | ! 28 | ! 29 | grpc 30 | port 57789 31 | tls 32 | ! 33 | router static 34 | address-family ipv4 unicast 35 | 0.0.0.0/0 MgmtEth0/RP0/CPU0/0 10.0.2.2 36 | 100.0.0.1/32 Null0 37 | ! 38 | ! 39 | end 40 | -------------------------------------------------------------------------------- /puppet-tutorials/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | 5 | Vagrant.configure(2) do |config| 6 | 7 | config.vm.provision "shell", inline: "echo Hello User" 8 | 9 | config.vm.define "puppetmaster" do |pm| 10 | pm.vm.box = "ubuntu/xenial64" 11 | pm.vm.network :private_network, virtualbox__intnet: "link1", ip: "10.1.1.10" 12 | pm.vm.provider :virtualbox do |vb| 13 | vb.customize ["modifyvm", :id,"--name", "Puppet-Master","--memory", "4096"] 14 | end 15 | end 16 | 17 | config.vm.define "iosxrv" do |xrv| 18 | xrv.vm.box = "IOS-XRv" 19 | xrv.vm.network :private_network, auto_config: false, virtualbox__intnet: "link1", ip: "10.1.1.20" 20 | xrv.vm.provider :virtualbox do |vb| 21 | vb.customize ["modifyvm", :id,"--name", "IOS-XRv"] 22 | end 23 | end 24 | 25 | end 26 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/iosxrv.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | sudo rpm --import http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs 4 | sudo rpm --import http://yum.puppetlabs.com/RPM-GPG-KEY-reductive 5 | wget -q https://yum.puppetlabs.com/puppetlabs-release-pc1-cisco-wrlinux-7.noarch.rpm 6 | sudo yum install -y puppetlabs-release-pc1-cisco-wrlinux-7.noarch.rpm > /dev/null 7 | sudo yum update -y > /dev/null 8 | sudo yum install -y puppet > /dev/null 9 | 10 | export PATH=/opt/puppetlabs/puppet/bin:$PATH 11 | wget -q https://rubygems.org/downloads/grpc-0.15.0-x86_64-linux.gem 12 | sudo /opt/puppetlabs/puppet/bin/gem install --no-rdoc --no-ri grpc > /dev/null 2>&1 13 | 14 | yes | sudo cp /home/vagrant/puppet.conf /etc/puppetlabs/puppet/puppet.conf 15 | yes | sudo cp /home/vagrant/hosts /etc/hosts 16 | yes | sudo cp /home/vagrant/cisco_yang.yaml /etc/cisco_yang.yaml 17 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/iosxrv.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | sudo rpm --import http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs 4 | sudo rpm --import http://yum.puppetlabs.com/RPM-GPG-KEY-reductive 5 | wget -q https://yum.puppetlabs.com/puppetlabs-release-pc1-cisco-wrlinux-7.noarch.rpm 6 | sudo yum install -y puppetlabs-release-pc1-cisco-wrlinux-7.noarch.rpm > /dev/null 7 | sudo yum update -y > /dev/null 8 | sudo yum install -y puppet > /dev/null 9 | 10 | export PATH=/opt/puppetlabs/puppet/bin:$PATH 11 | wget -q https://rubygems.org/downloads/grpc-0.15.0-x86_64-linux.gem 12 | sudo /opt/puppetlabs/puppet/bin/gem install --no-rdoc --no-ri grpc > /dev/null 2>&1 13 | 14 | yes | sudo cp /home/vagrant/puppet.conf /etc/puppetlabs/puppet/puppet.conf 15 | yes | sudo cp /home/vagrant/hosts /etc/hosts 16 | yes | sudo cp /home/vagrant/cisco_yang.yaml /etc/cisco_yang.yaml 17 | -------------------------------------------------------------------------------- /single_node_bootstrap/scripts/apply_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source /pkg/bin/ztp_helper.sh 4 | 5 | function configure_xr() 6 | { 7 | ## Apply a blind config 8 | xrapply $1 9 | if [ $? -ne 0 ]; then 10 | echo "xrapply failed to run" 11 | fi 12 | xrcmd "show config failed" > /home/vagrant/config_failed_check 13 | } 14 | 15 | config_file=$1 16 | configure_xr $config_file 17 | 18 | cat /home/vagrant/config_failed_check 19 | grep -q "ERROR" /home/vagrant/config_failed_check 20 | 21 | if [ $? -ne 0 ]; then 22 | echo "Configuration was successful!" 23 | echo "Last applied configuration was:" 24 | xrcmd "show configuration commit changes last 1" 25 | else 26 | echo "Configuration Failed. Check /home/vagrant/config_failed on the router for logs" 27 | xrcmd "show configuration failed" > /home/vagrant/config_failed 28 | exit 1 29 | fi 30 | -------------------------------------------------------------------------------- /docker-app-topo-bootstrap/scripts/apply_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source /pkg/bin/ztp_helper.sh 4 | 5 | function configure_xr() 6 | { 7 | ## Apply a blind config 8 | xrapply $1 9 | if [ $? -ne 0 ]; then 10 | echo "xrapply failed to run" 11 | fi 12 | xrcmd "show config failed" > /home/vagrant/config_failed_check 13 | } 14 | 15 | config_file=$1 16 | configure_xr $config_file 17 | 18 | cat /home/vagrant/config_failed_check 19 | grep -q "ERROR" /home/vagrant/config_failed_check 20 | 21 | if [ $? -ne 0 ]; then 22 | echo "Configuration was successful!" 23 | echo "Last applied configuration was:" 24 | xrcmd "show configuration commit changes last 1" 25 | else 26 | echo "Configuration Failed. Check /home/vagrant/config_failed on the router for logs" 27 | xrcmd "show configuration failed" > /home/vagrant/config_failed 28 | exit 1 29 | fi 30 | -------------------------------------------------------------------------------- /lxc-app-topo-bootstrap/scripts/apply_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source /pkg/bin/ztp_helper.sh 4 | 5 | function configure_xr() 6 | { 7 | ## Apply a blind config 8 | xrapply $1 9 | if [ $? -ne 0 ]; then 10 | echo "xrapply failed to run" 11 | fi 12 | xrcmd "show config failed" > /home/vagrant/config_failed_check 13 | } 14 | 15 | config_file=$1 16 | configure_xr $config_file 17 | 18 | cat /home/vagrant/config_failed_check 19 | grep -q "ERROR" /home/vagrant/config_failed_check 20 | 21 | if [ $? -ne 0 ]; then 22 | echo "Configuration was successful!" 23 | echo "Last applied configuration was:" 24 | xrcmd "show configuration commit changes last 1" 25 | else 26 | echo "Configuration Failed. Check /home/vagrant/config_failed on the router for logs" 27 | xrcmd "show configuration failed" > /home/vagrant/config_failed 28 | exit 1 29 | fi 30 | -------------------------------------------------------------------------------- /native-app-topo-bootstrap/scripts/apply_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source /pkg/bin/ztp_helper.sh 4 | 5 | function configure_xr() 6 | { 7 | ## Apply a blind config 8 | xrapply $1 9 | if [ $? -ne 0 ]; then 10 | echo "xrapply failed to run" 11 | fi 12 | xrcmd "show config failed" > /home/vagrant/config_failed_check 13 | } 14 | 15 | config_file=$1 16 | configure_xr $config_file 17 | 18 | cat /home/vagrant/config_failed_check 19 | grep -q "ERROR" /home/vagrant/config_failed_check 20 | 21 | if [ $? -ne 0 ]; then 22 | echo "Configuration was successful!" 23 | echo "Last applied configuration was:" 24 | xrcmd "show configuration commit changes last 1" 25 | else 26 | echo "Configuration Failed. Check /home/vagrant/config_failed on the router for logs" 27 | xrcmd "show configuration failed" > /home/vagrant/config_failed 28 | exit 1 29 | fi 30 | -------------------------------------------------------------------------------- /ansible-tutorials/app_hosting/scripts/apply_config.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/bash 3 | 4 | source /pkg/bin/ztp_helper.sh 5 | 6 | function configure_xr() 7 | { 8 | ## Apply a blind config 9 | xrapply $1 10 | if [ $? -ne 0 ]; then 11 | echo "xrapply failed to run" 12 | fi 13 | xrcmd "show config failed" > /home/vagrant/config_failed_check 14 | } 15 | 16 | config_file=$1 17 | configure_xr $config_file 18 | 19 | cat /home/vagrant/config_failed_check 20 | grep -q "ERROR" /home/vagrant/config_failed_check 21 | 22 | if [ $? -ne 0 ]; then 23 | echo "Configuration was successful!" 24 | echo "Last applied configuration was:" 25 | xrcmd "show configuration commit changes last 1" 26 | else 27 | echo "Configuration Failed. Check /home/vagrant/config_failed on the router for logs" 28 | xrcmd "show configuration failed" > /home/vagrant/config_failed 29 | exit 1 30 | fi 31 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/scripts/apply_config.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/bash 3 | 4 | source /pkg/bin/ztp_helper.sh 5 | 6 | function configure_xr() 7 | { 8 | ## Apply a blind config 9 | xrapply $1 10 | if [ $? -ne 0 ]; then 11 | echo "xrapply failed to run" 12 | fi 13 | xrcmd "show config failed" > /home/vagrant/config_failed_check 14 | } 15 | 16 | config_file=$1 17 | configure_xr $config_file 18 | 19 | cat /home/vagrant/config_failed_check 20 | grep -q "ERROR" /home/vagrant/config_failed_check 21 | 22 | if [ $? -ne 0 ]; then 23 | echo "Configuration was successful!" 24 | echo "Last applied configuration was:" 25 | xrcmd "show configuration commit changes last 1" 26 | else 27 | echo "Configuration Failed. Check /home/vagrant/config_failed on the router for logs" 28 | xrcmd "show configuration failed" > /home/vagrant/config_failed 29 | exit 1 30 | fi 31 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/scripts/apply_config.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/bash 3 | 4 | source /pkg/bin/ztp_helper.sh 5 | 6 | function configure_xr() 7 | { 8 | ## Apply a blind config 9 | xrapply $1 10 | if [ $? -ne 0 ]; then 11 | echo "xrapply failed to run" 12 | fi 13 | xrcmd "show config failed" > /home/vagrant/config_failed_check 14 | } 15 | 16 | config_file=$1 17 | configure_xr $config_file 18 | 19 | cat /home/vagrant/config_failed_check 20 | grep -q "ERROR" /home/vagrant/config_failed_check 21 | 22 | if [ $? -ne 0 ]; then 23 | echo "Configuration was successful!" 24 | echo "Last applied configuration was:" 25 | xrcmd "show configuration commit changes last 1" 26 | else 27 | echo "Configuration Failed. Check /home/vagrant/config_failed on the router for logs" 28 | xrcmd "show configuration failed" > /home/vagrant/config_failed 29 | exit 1 30 | fi 31 | -------------------------------------------------------------------------------- /ansible-tutorials/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | 5 | Vagrant.configure(2) do |config| 6 | 7 | config.vm.provision "shell", inline: "echo Hello User" 8 | 9 | config.vm.define "devbox" do |devbox| 10 | devbox.vm.box = "ubuntu/trusty64" 11 | devbox.vm.provision "file", source: "app_hosting/configs/ansible_env", destination:"/home/vagrant/ansible_env" 12 | devbox.vm.provision "file", source: "app_hosting/configs/ansible_hosts", destination:"/home/vagrant/ansible_hosts" 13 | 14 | devbox.vm.network :private_network, virtualbox__intnet: "link1", ip: "10.1.1.10" 15 | devbox.vm.provision :shell, path: "ubuntu.sh", privileged: false 16 | end 17 | 18 | config.vm.define "rtr" do |rtr| 19 | rtr.vm.box = "IOS-XRv" 20 | rtr.vm.network :private_network, auto_config: false, virtualbox__intnet: "link1", ip: "10.1.1.20" 21 | end 22 | 23 | end 24 | -------------------------------------------------------------------------------- /ansible-tutorials/ubuntu.sh: -------------------------------------------------------------------------------- 1 | sudo apt-get update 2 | sudo apt-get install -y python-setuptools python-dev build-essential git libssl-dev libffi-dev sshpass lxc 3 | sudo easy_install pip 4 | wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python 5 | 6 | 7 | git clone https://github.com/ios-xr/iosxr-ansible.git 8 | git clone git://github.com/ansible/ansible.git --recursive 9 | 10 | mv ~/ansible_hosts /home/vagrant/iosxr-ansible/remote/ansible_hosts 11 | mv ~/ansible_env /home/vagrant/iosxr-ansible/remote/ansible_env 12 | 13 | 14 | sudo pip install enum34 idna ipaddress pycparser 15 | cd ansible/ && git checkout stable-2.2 16 | sudo git submodule update --init --recursive 17 | sudo python setup.py install 18 | echo "source /home/vagrant/iosxr-ansible/remote/ansible_env" >> /home/vagrant/.profile 19 | 20 | ssh-keygen -t rsa -f /home/vagrant/.ssh/id_rsa -q -P "" 21 | cut -d" " -f2 ~/.ssh/id_rsa.pub | base64 -d > ~/.ssh/id_rsa_pub.b64 22 | -------------------------------------------------------------------------------- /grpc-exercises/scripts/apply_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source /pkg/bin/ztp_helper.sh 4 | 5 | function configure_xr() 6 | { 7 | ## Apply a blind config 8 | xrapply $1 9 | if [ $? -ne 0 ]; then 10 | echo "xrapply failed to run" 11 | fi 12 | xrcmd "show config failed" > /home/vagrant/config_failed_check 13 | 14 | echo "extracting client" 15 | tar -C /home/vagrant/ -zxf /home/vagrant/client.tar.gz 16 | 17 | } 18 | 19 | config_file=$1 20 | configure_xr $config_file 21 | 22 | cat /home/vagrant/config_failed_check 23 | grep -q "ERROR" /home/vagrant/config_failed_check 24 | 25 | if [ $? -ne 0 ]; then 26 | echo "Configuration was successful!" 27 | echo "Last applied configuration was:" 28 | xrcmd "show configuration commit changes last 1" 29 | else 30 | echo "Configuration Failed. Check /home/vagrant/config_failed on the router for logs" 31 | xrcmd "show configuration failed" > /home/vagrant/config_failed 32 | exit 1 33 | fi 34 | -------------------------------------------------------------------------------- /grpc-exercises/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # All Vagrant configuration is done below. The "2" in Vagrant.configure 5 | # configures the configuration version (we support older styles for 6 | # backwards compatibility). Please don't change it unless you know what 7 | # you're doing. 8 | 9 | Vagrant.configure(2) do |config| 10 | 11 | config.vm.box = "IOS-XRv" 12 | 13 | #Source a config file and apply it to XR 14 | config.vm.provision "file", source: "configs/rtr_config", destination: "/home/vagrant/rtr_config" 15 | config.vm.provision "file", source: "client/client.tar.gz", destination: "/home/vagrant/client.tar.gz" 16 | config.vm.provision "file", source: "MOTD", destination: "/home/vagrant/MOTD" 17 | config.vm.provision "file", source: "bashrc", destination: "/home/vagrant/.bashrc" 18 | 19 | config.vm.provision "shell" do |s| 20 | s.path = "scripts/apply_config.sh" 21 | s.args = ["/home/vagrant/rtr_config"] 22 | end 23 | 24 | end 25 | -------------------------------------------------------------------------------- /simple-mixed-topo/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | 3 | # vi: set ft=ruby : 4 | 5 | Vagrant.configure(2) do |config| 6 | 7 | config.vm.define "rtr1" do |node| 8 | node.vm.box = "IOS-XRv" 9 | 10 | # gig0/0/0/0 connected to link2, gig00/0/1 connected to link1, gig0/0/0/2 connected to link3, auto-config not supported. 11 | 12 | node.vm.network :private_network, virtualbox__intnet: "link2", auto_config: false 13 | node.vm.network :private_network, virtualbox__intnet: "link1", auto_config: false 14 | node.vm.network :private_network, virtualbox__intnet: "link3", auto_config: false 15 | 16 | end 17 | 18 | config.vm.define "rtr2" do |node| 19 | node.vm.box = "IOS-XRv" 20 | 21 | # gig0/0/0/0 connected to link1, gig0/0/0/1 connected to link3, auto-config not supported 22 | 23 | node.vm.network :private_network, virtualbox__intnet: "link1", auto_config: false 24 | node.vm.network :private_network, virtualbox__intnet: "link3", auto_config: false 25 | 26 | end 27 | 28 | 29 | config.vm.define "devbox" do |node| 30 | node.vm.box = "ubuntu/trusty64" 31 | 32 | # eth1 connected to link2, auto_config is supported for an ubuntu instance 33 | node.vm.network :private_network, virtualbox__intnet: "link2", ip: "11.1.1.2" 34 | 35 | end 36 | end 37 | -------------------------------------------------------------------------------- /lxc-app-topo-bootstrap/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # All Vagrant configuration is done below. The "2" in Vagrant.configure 5 | # configures the configuration version (we support older styles for 6 | # backwards compatibility). Please don't change it unless you know what 7 | # you're doing. 8 | 9 | Vagrant.configure(2) do |config| 10 | 11 | 12 | config.vm.define "rtr" do |node| 13 | node.vm.box = "IOS-XRv" 14 | 15 | # gig0/0/0 connected to "link1" 16 | # auto_config is not supported for XR, set to false 17 | 18 | node.vm.network :private_network, virtualbox__intnet: "link1", auto_config: false 19 | 20 | 21 | #Source a config file and apply it to XR 22 | 23 | node.vm.provision "file", source: "configs/rtr_config", destination: "/home/vagrant/rtr_config" 24 | 25 | node.vm.provision "shell" do |s| 26 | s.path = "scripts/apply_config.sh" 27 | s.args = ["/home/vagrant/rtr_config"] 28 | end 29 | 30 | end 31 | 32 | 33 | config.vm.define "devbox" do |node| 34 | node.vm.box = "ubuntu/trusty64" 35 | 36 | # eth1 connected to link1 37 | # auto_config is supported for an ubuntu instance 38 | 39 | node.vm.network :private_network, virtualbox__intnet: "link1", ip: "11.1.1.20" 40 | 41 | end 42 | 43 | end 44 | -------------------------------------------------------------------------------- /ansible-tutorials/app_hosting/configs/deploy_container.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: ss-xr 3 | 4 | tasks: 5 | - name: Copy XML file 6 | copy: src=/home/vagrant/xr-lxc-app.xml dest=/home/vagrant/xr-lxc-app.xml owner=vagrant force=no 7 | 8 | - name: Copy rootfs tar ball 9 | copy: src=/home/vagrant/xr-lxc-app-rootfs.tar.gz dest=/misc/app_host/scratch/xr-lxc-app-rootfs.tar.gz owner=vagrant force=no 10 | 11 | - name: Create rootfs directory 12 | file: path=/misc/app_host/xr-lxc-app/rootfs state=directory 13 | become: yes 14 | 15 | - command: tar -zxf /misc/app_host/scratch/xr-lxc-app-rootfs.tar.gz -C /misc/app_host/xr-lxc-app/rootfs 16 | become: yes 17 | register: output 18 | ignore_errors: yes 19 | - debug: var=output.stdout_lines 20 | 21 | - name: grep 22 | shell: sudo -i virsh list | grep xr-lxc-app 23 | args: 24 | warn: no 25 | register: container_exist 26 | ignore_errors: yes 27 | - debug: var=output.stdout_lines 28 | 29 | - name: virsh create 30 | shell: sudo -i virsh create /home/vagrant/xr-lxc-app.xml 31 | args: 32 | warn: no 33 | register: output 34 | when: " container_exist | failed " 35 | - debug: var=output.stdout_lines 36 | 37 | - shell: sudo -i virsh list 38 | args: 39 | warn: no 40 | register: output 41 | - debug: var=output.stdout_lines 42 | -------------------------------------------------------------------------------- /ansible-tutorials/app_hosting/ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | sudo apt-get update 4 | sudo apt-get install -y python-setuptools python-dev build-essential git libssl-dev libffi-dev sshpass lxc 5 | sudo easy_install pip 6 | wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python 7 | 8 | 9 | git clone git://github.com/ansible/ansible.git --recursive 10 | git clone https://github.com/ios-xr/iosxr-ansible.git 11 | cd ansible/ && sudo python setup.py install 12 | 13 | 14 | mv ~/ansible_hosts /home/vagrant/iosxr-ansible/remote/ansible_hosts 15 | mv ~/ansible_env /home/vagrant/iosxr-ansible/remote/ansible_env 16 | 17 | echo "source /home/vagrant/iosxr-ansible/remote/ansible_env" >> /home/vagrant/.profile 18 | 19 | ssh-keygen -t rsa -f /home/vagrant/.ssh/id_rsa -q -P "" 20 | cut -d" " -f2 ~/.ssh/id_rsa.pub | base64 -d > ~/.ssh/id_rsa_pub.b64 21 | 22 | # tftp server spin section 23 | sudo apt-get install -y xinetd tftpd tftp 24 | 25 | sudo touch /etc/xinetd.d/tftp 26 | 27 | sudo sh -c 'cat <> /etc/xinetd.d/tftp 28 | service tftp 29 | { 30 | protocol = udp 31 | port = 69 32 | socket_type = dgram 33 | wait = yes 34 | user = nobody 35 | server = /usr/sbin/in.tftpd 36 | server_args = /tftpboot 37 | disable = no 38 | } 39 | EOT' 40 | sudo echo "line 2" >> /etc/xinetd.d/tftp 41 | 42 | 43 | sudo mkdir /tftpboot 44 | sudo chmod -R 777 /tftpboot 45 | sudo chown -R nobody /tftpboot 46 | 47 | sudo service xinetd restart 48 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/puppetmaster.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cat /home/vagrant/hosts | sudo tee /etc/hosts 4 | cat /home/vagrant/hostname | sudo tee /etc/hostname 5 | 6 | sudo rpm --import http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs 7 | sudo rpm -Uvh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm 8 | sudo yum -y update > /dev/null 2>&1 9 | sudo yum install -y puppetserver > /dev/null 2>&1 10 | sudo yum install -y git > /dev/null 11 | 12 | git clone https://github.com/cisco/cisco-yang-puppet-module.git -q 13 | cd cisco-yang-puppet-module 14 | yes | cp /home/vagrant/hosts.cfg hosts.cfg 15 | /opt/puppetlabs/puppet/bin/puppet module build > /dev/null 16 | sudo /opt/puppetlabs/puppet/bin/puppet module install pkg/*.tar.gz 17 | 18 | cat /home/vagrant/puppet.conf | sudo tee -a /etc/puppetlabs/puppet/puppet.conf 19 | sudo /opt/puppetlabs/bin/puppet resource service puppetserver ensure=running enable=true > /dev/null 20 | 21 | sudo yum install -y ruby-devel gcc-c++ zlib-devel > /dev/null 22 | sudo gem update --system --no-rdoc --no-ri > /dev/null 23 | sudo gem install --no-rdoc --no-ri json_pure > /dev/null 24 | sudo gem update --no-rdoc --no-ri > /dev/null 25 | sudo gem install bundle --no-rdoc --no-ri > /dev/null 26 | sudo gem install rake --no-rdoc --no-ri > /dev/null 27 | sudo gem install beaker --no-rdoc --no-ri > /dev/null 28 | sudo gem install rubocop -v 0.35 --no-rdoc --no-ri > /dev/null 29 | echo "PermitRootLogin yes" | sudo tee -a /etc/ssh/sshd_config 30 | -------------------------------------------------------------------------------- /docker-app-topo-bootstrap/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # All Vagrant configuration is done below. The "2" in Vagrant.configure 5 | # configures the configuration version (we support older styles for 6 | # backwards compatibility). Please don't change it unless you know what 7 | # you're doing. 8 | 9 | Vagrant.configure(2) do |config| 10 | 11 | 12 | config.vm.define "rtr" do |node| 13 | node.vm.box = "IOS-XRv" 14 | 15 | # gig0/0/0 connected to "link1" 16 | # auto_config is not supported for XR, set to false 17 | 18 | node.vm.network :private_network, virtualbox__intnet: "link1", auto_config: false 19 | 20 | 21 | #Source a config file and apply it to XR 22 | 23 | node.vm.provision "file", source: "configs/rtr_config", destination: "/home/vagrant/rtr_config" 24 | 25 | node.vm.provision "shell" do |s| 26 | s.path = "scripts/apply_config.sh" 27 | s.args = ["/home/vagrant/rtr_config"] 28 | end 29 | 30 | node.vm.provider "virtualbox" do |v| 31 | v.memory = 5120 32 | end 33 | end 34 | 35 | 36 | config.vm.define "devbox" do |node| 37 | node.vm.box = "ubuntu/trusty64" 38 | 39 | # eth1 connected to link1 40 | # auto_config is supported for an ubuntu instance 41 | 42 | node.vm.network :private_network, virtualbox__intnet: "link1", ip: "11.1.1.20" 43 | 44 | node.vm.provision "shell" do |s| 45 | s.path = "scripts/docker_install.sh" 46 | end 47 | 48 | end 49 | 50 | end 51 | -------------------------------------------------------------------------------- /native-app-topo-bootstrap/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # All Vagrant configuration is done below. The "2" in Vagrant.configure 5 | # configures the configuration version (we support older styles for 6 | # backwards compatibility). Please don't change it unless you know what 7 | # you're doing. 8 | 9 | Vagrant.configure(2) do |config| 10 | 11 | 12 | config.vm.define "rtr" do |node| 13 | node.vm.box = "IOS-XRv" 14 | 15 | # gig0/0/0 connected to "link1" 16 | # auto_config is not supported for XR, set to false 17 | 18 | node.vm.network :private_network, virtualbox__intnet: "link1", auto_config: false 19 | 20 | 21 | #Source a config file and apply it to XR 22 | 23 | node.vm.provision "file", source: "configs/rtr_config", destination: "/home/vagrant/rtr_config" 24 | 25 | node.vm.provision "shell" do |s| 26 | s.path = "scripts/apply_config.sh" 27 | s.args = ["/home/vagrant/rtr_config"] 28 | end 29 | 30 | end 31 | 32 | 33 | config.vm.define "devbox" do |node| 34 | node.vm.box = "ubuntu/trusty64" 35 | 36 | # eth1 connected to link1 37 | # auto_config is supported for ubuntu/trusty64 38 | 39 | node.vm.network :private_network, virtualbox__intnet: "link1", ip: "11.1.1.20" 40 | 41 | end 42 | 43 | config.vm.define "wrl7_build" do |node| 44 | node.vm.box = "ciscoxr/appdev-xr6.1.1" 45 | 46 | # Only connected to Management Network 47 | # auto_config not supported for WRL7 48 | #Source the iperf.spec file we will be using during the build process. 49 | 50 | node.vm.provision "file", source: "iperf.spec", destination: "/home/vagrant/iperf.spec" 51 | end 52 | 53 | end 54 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/ubuntu-pm/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | Vagrant.configure(2) do |config| 5 | 6 | config.vm.provision "shell", inline: "echo Hello User" 7 | 8 | config.vm.define "puppetmaster" do |pm| 9 | pm.vm.box = "ubuntu/xenial64" 10 | pm.vm.network :private_network, virtualbox__intnet: "link1", ip: "10.1.1.10" 11 | pm.vm.provision "file", source: "configs/master/puppet.conf", destination: "/home/ubuntu/puppet.conf" 12 | pm.vm.provision "file", source: "configs/master/hosts", destination: "/home/ubuntu/hosts" 13 | pm.vm.provider :virtualbox do |vb| 14 | vb.customize ["modifyvm", :id,"--name", "Puppet-Master","--memory", "4096"] 15 | end 16 | pm.vm.provision :shell, path: "puppetmaster.sh", privileged: false 17 | end 18 | 19 | config.vm.define "iosxrv" do |xrv| 20 | xrv.vm.box = "IOS-XRv" 21 | xrv.vm.network :private_network, auto_config: false, virtualbox__intnet: "link1", ip: "10.1.1.20" 22 | xrv.vm.provision "file", source: "configs/agent/conft", destination: "/home/vagrant/conft" 23 | xrv.vm.provision "file", source: "configs/agent/puppet.conf", destination: "/home/vagrant/puppet.conf" 24 | xrv.vm.provision "file", source: "configs/agent/hosts", destination: "/home/vagrant/hosts" 25 | xrv.vm.provision "file", source: "configs/cisco_yang.yaml", destination: "/home/vagrant/cisco_yang.yaml" 26 | xrv.vm.provision :shell, path: "iosxrv.sh", privileged: false 27 | 28 | xrv.vm.provision "shell" do |s| 29 | s.path = "scripts/apply_config.sh" 30 | s.args = ["/home/vagrant/conft"] 31 | end 32 | 33 | xrv.vm.provider :virtualbox do |vb| 34 | vb.customize ["modifyvm", :id,"--name", "IOS-XRv"] 35 | end 36 | end 37 | 38 | end 39 | -------------------------------------------------------------------------------- /ansible-tutorials/app_hosting/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | 5 | Vagrant.configure(2) do |config| 6 | 7 | config.vm.provision "shell", inline: "echo Hello User" 8 | 9 | config.vm.define "devbox" do |devbox| 10 | devbox.vm.box = "ubuntu/trusty64" 11 | devbox.vm.network :private_network, virtualbox__intnet: "link1", ip: "10.1.1.10" 12 | # ansible_env and ansible_hosts files suited for current Ansible setup 13 | devbox.vm.provision "file", source: "configs/ansible_env", destination: "/home/vagrant/ansible_env" 14 | devbox.vm.provision "file", source: "configs/ansible_hosts", destination: "/home/vagrant/ansible_hosts" 15 | 16 | # cn.xml - xml descript to run container 17 | devbox.vm.provision "file", source: "configs/xr-lxc-app.xml", destination: "/home/vagrant/xr-lxc-app.xml" 18 | 19 | # playbook to deploy container 20 | devbox.vm.provision "file", source: "configs/deploy_container.yml", destination: "/home/vagrant/deploy_container.yml" 21 | devbox.vm.provision :shell, path: "ubuntu.sh", privileged: false 22 | 23 | devbox.vm.provider :virtualbox do |vb| 24 | vb.customize ["modifyvm", :id, "--nictype1", "virtio" ] 25 | vb.customize ["modifyvm", :id, "--nictype2", "virtio" ] 26 | end 27 | end 28 | 29 | config.vm.define "rtr" do |rtr| 30 | rtr.vm.box = "IOS-XRv" 31 | rtr.vm.network :private_network, auto_config: false, virtualbox__intnet: "link1", ip: "10.1.1.20" 32 | rtr.vm.network "forwarded_port", id: "container-ssh", guest: 58822, host: 58822, auto_correct: true 33 | rtr.vm.provision "file", source: "configs/rtr_config", destination: "/home/vagrant/rtr_config" 34 | 35 | rtr.vm.provision "shell" do |s| 36 | s.path = "scripts/apply_config.sh" 37 | s.args = ["/home/vagrant/rtr_config"] 38 | end 39 | 40 | rtr.vm.provider :virtualbox do |vb| 41 | vb.customize ["modifyvm", :id, "--nictype1", "virtio" ] 42 | vb.customize ["modifyvm", :id, "--nictype2", "virtio" ] 43 | end 44 | end 45 | 46 | end 47 | -------------------------------------------------------------------------------- /grpc-exercises/MOTD: -------------------------------------------------------------------------------- 1 | To connect to grpc on this VM, go to the client folder: 2 | 3 | cd /home/vagrant/client/ 4 | 5 | Help is available: 6 | 7 | ./client -help 8 | 9 | Execute the telemetry command (one path is already configured 10 | for you): 11 | 12 | ./client -device routers/Vagrant.json -oper telemetry -telsubid 30seconds 13 | 14 | Other operations are also available, such as 'get-oper' and 'get-config'. 15 | Any model-based command uses the '-json' argument, while CLI 16 | based configuration uses the '-cli' argument. This is to allow 17 | commit-replace to accept both CLI and YANG based configurations 18 | for a single commit. 19 | 20 | Example YANG 'get-config': 21 | 22 | ./client -device routers/Vagrant.json -oper get-config -json snips/get-interfaces-cfg.json 23 | 24 | Example YANG 'merge-config' (same behavior as CLI): 25 | ( Note, you may use 'replace-config' to replace a specific block of the configuration, 26 | or you may use 'delete-config' to remove a specific block of configuration. Both 27 | of these commands have similar syntax to merge-config. ) 28 | 29 | ./client -device routers/Vagrant.json -oper merge-config -json snips/set-hostname.json 30 | 31 | Example CLI 'show' command: 32 | 33 | ./client -device routers/Vagrant.json -oper show-cmd-text -cli snips/get-running-config-cli.txt 34 | 35 | Example CLI configuration: 36 | 37 | ./client -device routers/Vagrant.json -oper cli-config -cli snips/set-hostname-cli.txt 38 | 39 | Example full config replace with minimal diff: 40 | ( Note, full configuration replacement takes up to two files for configuration. 41 | One of the files may be a 'regular' cli configuration, the other a JSON file 42 | containing the configuration of all of the relevant YANG configs. The YANG 43 | configuration files take precedent if there is a conflict, in this example 44 | I am including a FULL configuration (including the hostname 'ernie') in the 45 | CLI configuration. In addition, I include a JSON configuration to set the 46 | hostname to 'bert'. In the end, the hostname will be 'bert'. Any configuration 47 | that is not included in either the CLI or JSON files will be assumed to be 48 | the default XR value. ) 49 | 50 | ./client -device routers/Vagrant.json -oper full-replace -cli snips/full-config.txt -json snips/set-hostname-cfg.json 51 | 52 | Additional snips in the 'snips' folder. If you encounter an issue with 53 | a snip, pay close attention to the -oper flag, as you may be trying to 54 | use an 'oper' model with a 'config' model (or the reverse). 55 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | Vagrant.configure(2) do |config| 5 | 6 | config.vm.provision "shell", inline: "echo Hello User" 7 | 8 | config.vm.define "puppetmaster" do |pm| 9 | # If you are using Vagrant 1.8.5, then passwordless login doesn't work. 10 | # Vagrant 1.8.5 sets the permissions on ~vagrant/.ssh/authorized_keys 11 | # to 0644 (world-readable) when replacing the insecure public key with 12 | # a newly generated one. Since sshd will only accept keys readable just 13 | # by their owner, vagrant up returns an error, since it cannot connect 14 | # with the new key and it already removed the insecure key. This is 15 | # Vagrant bug #7610, which affects CentOS; 16 | # 17 | # you can either downgrade to Vagrant 1.8.4 or wait for 1.8.6 to be released. 18 | # for more info : https://seven.centos.org/2016/08/updated-centos-vagrant-images-available-v1607-01/ 19 | 20 | #config.ssh.username = "vagrant" 21 | #config.ssh.password = "vagrant" 22 | pm.vm.box = "bento/centos-7.1" 23 | pm.vm.network :private_network, virtualbox__intnet: "link1", ip: "10.1.1.10" 24 | pm.vm.provision "file", source: "configs/master/puppet.conf", destination: "/home/vagrant/puppet.conf" 25 | pm.vm.provision "file", source: "configs/master/hosts", destination: "/home/vagrant/hosts" 26 | pm.vm.provision "file", source: "configs/master/hostname", destination: "/home/vagrant/hostname" 27 | pm.vm.provision "file", source: "configs/master/hosts.cfg", destination: "/home/vagrant/hosts.cfg" 28 | pm.vm.provision "file", source: "configs/master/cisco_yang.yaml", destination: "/home/vagrant/cisco_yang.yaml" 29 | pm.vm.provider :virtualbox do |vb| 30 | vb.customize ["modifyvm", :id,"--name", "Puppet-Master","--memory", "4096"] 31 | end 32 | pm.vm.provision :shell, path: "puppetmaster.sh", privileged: false 33 | end 34 | 35 | config.vm.define "iosxrv" do |xrv| 36 | xrv.vm.box = "IOS-XRv" 37 | xrv.vm.network :private_network, auto_config: false, virtualbox__intnet: "link1", ip: "10.1.1.20" 38 | xrv.vm.provision "file", source: "configs/agent/conft", destination: "/home/vagrant/conft" 39 | xrv.vm.provision "file", source: "configs/agent/puppet.conf", destination: "/home/vagrant/puppet.conf" 40 | xrv.vm.provision "file", source: "configs/agent/hosts", destination: "/home/vagrant/hosts" 41 | xrv.vm.provision "file", source: "configs/agent/cisco_yang.yaml", destination: "/home/vagrant/cisco_yang.yaml" 42 | xrv.vm.provision :shell, path: "iosxrv.sh", privileged: false 43 | 44 | xrv.vm.provision "shell" do |s| 45 | s.path = "scripts/apply_config.sh" 46 | s.args = ["/home/vagrant/conft"] 47 | end 48 | 49 | xrv.vm.provider :virtualbox do |vb| 50 | vb.customize ["modifyvm", :id,"--name", "IOS-XRv"] 51 | end 52 | end 53 | 54 | end 55 | -------------------------------------------------------------------------------- /puppet-tutorials/app_hosting/centos-pm/ubuntu-xenial-16.04-cloudimg-console.log: -------------------------------------------------------------------------------- 1 | [ 0.0000]Initilingcgoususys us 2 | [ .000 Initling cro sbsyscp 3 | [ 0.0000] nitilizng cgroupsubys cpucc 4 | [ 0000] Luxersin 4.-3geri (builddlg1-20) gcversion 3.20160413(Unt 5.3.14untu21) #3-Ubuu P Wed ul7 16:0:3UT 216(Unt 4.4.0343-enic.4.15) 5 | [ 0000000] Commndline: BOOTIMGE=/boot/vmlinz-.40-34-geeric root=AB=coudimgrofsro coso=tty1 onlettyS0 6 | [ 00000 KNE suprt cpus: 7 | [ 000000 ntl GuiIntel 0.0000] AMD AuthntAM 8 | [ 000000] CtaurenauHauls [ 0.00] x86/fpu:xsatefft[2]: 576 xtate_sizes[2] 256 9 | 0.00000] x/fu:uprtng XAVfeate 01 'x8 floatngpoint giers' 10 | [ 00000] x6/u: Spptig XSE aturex0 'SSresters' 11 | [ 0.000000] x86/fpu: SuporngXSAV ftue 0x: VX risrs' [ 0000000 x/fpu Enabled xstate feaures 0x7, context sze is 832 bytes, uing standard' format. 12 | [ 0.000000] x86/fpu: Using 'lazy' FPU context switches. 13 | [ 0.000000] e820: BIOS-provided physical RAM map: 14 | [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable 15 | [ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved 16 | [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved 17 | [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000dffeffff] usable 18 | [ 0.000000] BIOS-e820: [mem 0x00000000dfff0000-0x00000000dfffffff] ACPI data 19 | [ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved 20 | [ 0.000000] BIOS-e820: [mem 0x000000f000-0x00000fe00f] served 21 | 0.0000]IOS-e820[mm 0x0000fffc00-00000ffffff] served 22 | [ 00000]BI-e20: em0x000001000000x0000011fffff] abe 23 | [ 0.000]NX (xeteDiabe)protection:active 24 | 0.0000 SMBIOS .5reset.[ 0.000] ypvior decd: KVM[ 0.00] e8: st_pfn =x10000 mx_ch_pfn = 0400000 25 | [ 0.00000x8/PAT: oniguratio[0]: W W U- UC B C UC-WT 26 | 0.000] MTRR: Disaled [ 0.000000] CPU TR al bnk vrtuaiz sstem 27 | 0.000000] 20: stfn = 0df0 ax_arch_pf = 0400000 28 | 0.000]oud SMP P-ble at[m 000ff-00009ff mapped at [ffff88000009fff0] 29 | [ 0.000000] Scanning 1 areas for low memory corruption 30 | [ 0.000000] RAMDISK: [mem 0x371b4000-0x378d1fff] 31 | [ 0.000000] ACPI: Early table checksumericatin saled 0.00] ACPI RDPx00000000000E0000 00004 (v02 VB ) 32 | [ 0.00000] ACPI: XDTx000000DF030 0003C 01 VB BOXXSD 00001 AS 00061) 33 | [ 0.00000] CP FCP 000000DFF00F 000F4 (v04 VBOX OXCP 00001ASL 00061) 34 | [ 000000] CP DSD0x00000DF070 0020F(v1 OX VOXBIS 000002 INT 21028 35 | [ 00000]CP FAC0x0000DF0200 004 36 | [ 0.000000] AI: FS 00000000DFFF20 000040 37 | [ 00000]CP: AP 000000DF040 005(v02BO VBOXPI000000 A 0000061) 38 | [ 0.00000]CP: SST 0000000DFF02A0 0001C v0 VBOX VBOXCPUT 00002 TL010052) [ 0000000] NNU congutionfod 39 | [ 000000] Faina ode at [m 0x000000000000-0x00001fffffff] 40 | 0000] NODE_DATA(0) alloat [em 0x1f700-0x11fffbf] 41 | [ 0000] m-lock: Ungsrs 4564d0 and 564d00[ 0.000 kvm-cckcpu , r :1ff3001prima c clok .000] kvclk: uinscd offset o291203 ccles[ 0.000000 cocoue: k-cck: sk0xfffffffffff mx_cycles: 0x1cd42eff, max_idl_ns:88159091483ns 42 | [ 0.0000 Zone rage 43 | .000] DM [m 000000010000x000000ffff 44 | [ 00000] DM2 me0x0000001000000x000000ffffff] 45 | [ 00000 Normal [mem 0x0000001000000-0000000011fffff] 0.000000] Device mpy 46 | [ 0.00000] Mvable zone stat or each node 47 | [ 000000 Ely mornode rans 48 | [ .00000 od 0: emx0000000000100-0x000000009eff][ 00000 noe 0:[mem 0000000001000-000000dfefff] 49 | [ 000000] nde 0 [m x000000000000-x00000011fffffff] 50 | [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000011fffffff] 51 | [ 0.000000] ACPI: PM-Timer IO Port: 0x4008 52 | [ 0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23 53 | [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) 54 | [ 0.000000ACPI: NTSR_OVR (us bs_q global_q hiigh ev) [ 0.000] UsingCP (AD fr SM cfiurti iformation 55 | [ 0.0000 spboot: Allwig 2 Us0 hotplug CPUs 56 | [ 0.00000PM: Registered noavmemoy:me 0x00000-x000fff] 57 | [ 0.00000] PM Registeedosavmery [me 0x0009f000-0x0009ffff] 58 | [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff] 59 | [ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff] 60 | [ 0.000000] PM: Registerd save memory:[mem 0df000-0xffff] 61 | [ 0.0000PMReisterenove memory: [emxe0000-0ebfff] 62 | [ 0.0000] M:egster nave mo: [mem0xc0000xc0fff] 63 | [ 000000]M:Regiterednoave memory [mem 0xfec0100xfdffff 64 | 0.0000]PM: Reisted nosae moy: [m fee000-0fee0ff 65 | 0000] PM: gited sae mery[mem xf0100-0xffbff 66 | 0.000]M: Risre nosav mory: [me 0ff0000-0ffffff] 67 | [ 0.00000]e82: [mm xe00000xbffff] aaiabe for PCdeic 68 | 0.0000Botingpavituiz kerneonKVM 69 | [ 00000] ocksrc rfined-ifes msk0xfffff x_cycles: 0xffffffff m_ile_ns:6419600215 n 70 | [ 00000sep_percpu: NR_CPU:256 nr_cumask_bits:256 nrcp_ids: n_node_ids:1 [ 0.00000 PRCPU Eeded 33 pag/cpu @ff801fc00000 988 8192 d96u10485 71 | 0.000 P qspinochah talenties: 26 rdr: 040 bytes) 72 | [ 0.00000Bult 1 nests inNo ordr,obilty groin on. Total pages: 1032057 [ 0.000000] Policy zone: Normal 73 | [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-34-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 74 | [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) 75 | [ 0.000000] Memory: 40584K/4938Kavailable (894 krnl de 1282Krwta 3944Krota, 1480Kin, 122Kss 15784reerve, ca-reerd) 76 | [ 0.00] SLUB Hlin=64Orr=0-, nOjects0,PU=2, de1 77 | [ 00000 Hrarcicl U imleentation 78 | [ 0.0000] uildti ajustntf le fout to64 79 | [ 0.0000 CUesicing CUsfrm NRPU256 tor_u_id2. 80 | [ 0.0000 R: djti gometry forrc_fno_laf4,r_cpu_s= 81 | [ 0000] NR_IS:640 nr_qs440 16 82 | [ 0000000 Conle: clo VA+ 80x2 83 | 0.00000] nsle [ty eabled [ .00000cosole[tS0 enale 84 | [ 0.000000] tsc: Detected 2294.688 MHz processor 85 | [ 23.037275] Calibrating delay loop (skipped) preset value.. 4589.37 BogoMIPS (lpj=9178752) 86 | [ 23.197820] pid_max: default: 32768 minimum: 301 87 | [ 23.317585] ACPI: Core revision 20150930 88 | [ 23.406354] ACPI: 2 ACPI AML tables successfully acquired and loaded 89 | [ 23.521321] Security Framework initialized 90 | [ 23.572950] Yama: becoming mindful. 91 | [ 23.603391] AppArmor: AppArmor initialized 92 | [ 23.677912] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) 93 | [ 23.822568] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) 94 | [ 23.994612] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) 95 | [ 24.146833] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes) 96 | [ 24.326187] Initializing cgroup subsys io 97 | [ 24.411808] Initializing cgroup subsys memory 98 | [ 24.512199] Initializing cgroup subsys devices 99 | [ 24.615353] Initializing cgroup subsys freezer 100 | [ 24.676175] Initializing cgroup subsys net_cls 101 | [ 24.715681] Initializing cgroup subsys perf_event 102 | [ 24.793387] Initializing cgroup subsys net_prio 103 | [ 24.891995] Initializing cgroup subsys hugetlb 104 | [ 24.984446] Initializing cgroup subsys pids 105 | [ 25.087394] CPU: Physical Processor ID: 0 106 | [ 25.164980] CPU: Processor Core ID: 0 107 | [ 25.235865] mce: CPU supports 0 MCE banks 108 | [ 25.322465] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 1024 109 | [ 25.428439] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 1024, 1GB 4 110 | [ 25.578726] Freeing SMP alternatives memory: 28K (ffffffff820b4000 - ffffffff820bb000) 111 | [ 25.727784] ftrace: allocating 31994 entries in 125 pages 112 | [ 25.869241] smpboot: Max logical packages: 1 113 | [ 25.883597] smpboot: APIC(0) Converting physical 0 to logical package 0 114 | [ 25.957033] x2apic enabled 115 | [ 26.035201] Switched APIC routing to physical x2apic. 116 | [ 26.145184] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 117 | [ 26.416364] smpboot: CPU0: Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz (family: 0x6, model: 0x46, stepping: 0x1) 118 | [ 26.663507] Performance Events: unsupported p6 CPU model 70 no PMU driver, software events only. 119 | [ 26.883306] KVM setup paravirtual spinlock 120 | [ 26.926625] x86: Booting SMP configuration: 121 | [ 27.000513] .... node #0, CPUs: #1 122 | [ 27.028549] kvm-clock: cpu 1, msr 1:1fff3041, secondary cpu clock 123 | [ 27.047935] mce: CPU supports 0 MCE banks 124 | [ 27.065626] x86: Booted up 1 node, 2 CPUs 125 | [ 27.133213] smpboot: Total of 2 processors activated (9178.75 BogoMIPS) 126 | [ 27.278187] devtmpfs: initialized 127 | [ 27.357140] evm: security.selinux 128 | [ 27.434125] evm: security.SMACK64 129 | [ 27.509325] evm: security.SMACK64EXEC 130 | [ 27.587877] evm: security.SMACK64TRANSMUTE 131 | [ 27.676088] evm: security.SMACK64MMAP 132 | [ 27.742548] evm: security.ima 133 | [ 27.810457] evm: security.capability 134 | [ 27.897309] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns 135 | [ 28.109772] pinctrl core: initialized pinctrl subsystem 136 | [ 28.134791] RTC time: 21:36:10, date: 08/19/16 137 | [ 28.155633] NET: Registered protocol family 16 138 | [ 28.195715] cpuidle: using governor ladder 139 | [ 28.231640] cpuidle: using governor menu 140 | [ 28.296610] PCCT header not found. 141 | [ 28.317067] ACPI: bus type PCI registered 142 | [ 28.346451] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 143 | [ 28.357627] PCI: Using configuration type 1 for base access 144 | [ 28.371039] ACPI: Added _OSI(Module Device) 145 | [ 28.468273] ACPI: Added _OSI(Processor Device) 146 | [ 28.575765] ACPI: Added _OSI(3.0 _SCP Extensions) 147 | [ 28.688937] ACPI: Added _OSI(Processor Aggregator Device) 148 | [ 28.761518] ACPI: Executed 1 blocks of module-level executable AML code 149 | [ 28.922399] ACPI: Interpreter enabled 150 | [ 29.016845] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20150930/hwxface-580) 151 | [ 29.227294] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150930/hwxface-580) 152 | [ 29.346380] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S3_] (20150930/hwxface-580) 153 | [ 29.440109] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S4_] (20150930/hwxface-580) 154 | [ 29.666308] ACPI: (supports S0 S5) 155 | [ 29.710203] ACPI: Using IOAPIC for interrupt routing 156 | [ 29.789594] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug 157 | [ 30.001805] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) 158 | [ 30.140263] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI] 159 | [ 30.290497] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM 160 | [ 30.439045] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. 161 | [ 30.533526] PCI host bridge to bus 0000:00 162 | [ 30.623816] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] 163 | [ 30.778291] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] 164 | [ 30.916547] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] 165 | [ 31.106004] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xffdfffff window] 166 | [ 31.289352] pci_bus 0000:00: root bus resource [bus 00-ff] 167 | [ 31.424095] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] 168 | [ 31.576751] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6] 169 | [ 31.622713] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] 170 | [ 31.680178] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376] 171 | [ 31.846613] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 9 10 *11) 172 | [ 31.960911] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 9 10 *11) 173 | [ 32.079299] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 9 *10 11) 174 | [ 32.203022] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 *9 10 11) 175 | [ 32.293476] ACPI: Enabled 2 GPEs in block 00 to 07 176 | [ 32.403862] vgaarb: setting as boot device: PCI:0000:00:02.0 177 | [ 32.517004] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none 178 | [ 32.660816] vgaarb: loaded 179 | [ 32.716423] vgaarb: bridge control possible 0000:00:02.0 180 | [ 32.755220] SCSI subsystem initialized 181 | [ 32.771941] ACPI: bus type USB registered 182 | [ 32.795094] usbcore: registered new interface driver usbfs 183 | [ 32.811841] usbcore: registered new interface driver hub 184 | [ 32.909073] usbcore: registered new device driver usb 185 | [ 33.019821] PCI: Using ACPI for IRQ routing 186 | [ 33.125174] NetLabel: Initializing 187 | [ 33.204576] NetLabel: domain hash size = 128 188 | [ 33.297926] NetLabel: protocols = UNLABELED CIPSOv4 189 | [ 33.411931] NetLabel: unlabeled traffic allowed by default 190 | [ 33.545395] clocksource: Switched to clocksource kvm-clock 191 | [ 33.643] pAorAprmor Flest Eabled [ 34105]npPnAC it 4.737]npPnAC: un3 vies 192 | [ 35.001499] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns 193 | [ 35.060363] NET: Registered protocol family 2 194 | [ 35.072124] TCP established hash table entries: 32768 (order: 6, 262144 bytes) 195 | [ 35.096614] TCP bind hash table entries: 32768 (order: 7, 524288 bytes) 196 | [ 35.112626] TCP: Hash tables configured (established 32768 bind 32768) 197 | [ 35.234517] UDP hash table entries: 2048 (order: 4, 65536 bytes) 198 | [ 35.375742] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes) 199 | [ 35.499638] NET: Registered protocol family 1 200 | [ 35.647057] pci 0000:00:00.0: Limiting direct PCI/PCI transfers 201 | [ 35.727008] pci 0000:00:01.0: Activating ISA DMA hang workarounds 202 | [ 35.728140] Trying to unpack rootfs image as initramfs... 203 | [ 36.765114] Freeing initrd memory: 7288K (ffff8800371b4000 - ffff8800378d2000) 204 | [ 36.9373]CI-DMA: Using sotwe un bfengfor O WILB 205 | [ 37304]ofarIOLB[mem 0db00-0ff000] (64MB) mappd [ff00ff00ff80ffeffff] 206 | [ 384925plfo r_cs:egisted atrmTCevice (no PNP devic fnd 207 | [ 39382]cainfolomerycorrupio eer 6send 208 | [ 39675]sc RefedSClosocealraon22.6 M 209 | [ 406002 cocource: tsc: mask: 0xfffffffffffffff max_cle 011a226max_les:405216ns 210 | [ 0.60] teha tlentes51(oer 3, 32768byte 211 | [ 40.606089] audit: initializing netlink subsys (disabled) 212 | [ 40.606101] audit: type=2000 audit(1471642554.151:1): initialized 213 | [ 40.606313] Initialise system trusted keyring 214 | [ 40.606397] HugeTLB registered 2 MB page size, pre-allocated 0 pages 215 | [ 40.607510] zbud: loaded 216 | [ 40.607653] VFS: Disk quotas dquot_6.6.0 217 | [ 40.607676] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) 218 | [ 40.607866] squashfs: version 4.0 (2009/01/31) Phillip Lougher 219 | [ 40.608066] fuse init (API version 7.23) 220 | [ 40.608175] Key type big_key registered 221 | [ 40.608192] Allocating IMA MOK and blacklist keyrings. 222 | [ 40.608370] Key type asymmetric registered 223 | [ 40.608375] Asymmetric key parser 'x509' registered 224 | [ 40.608402] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) 225 | [ 40.608417] io scheduler noop registered 226 | [ 40.608418] io scheduler deadline registered (default) 227 | [ 40.608442] io scheduler cfq registered 228 | [ 40.608514] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 229 | [ 40.608518] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 230 | [ 40.608851] ACPI: AC Adapter [AC] (on-line) 231 | [ 40.608904] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 232 | [ 40.608906] ACPI: Power Button [PWRF] 233 | [ 40.608966] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1 234 | [ 40.608968] ACPI: Sleep Button [SLPF] 235 | [ 40.609086] GHES: HEST is not enabled! 236 | [ 40.609150] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled 237 | [ 41.399196] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A 238 | [ 41.995964] Linux agpgart interface v0.103 239 | [ 42.221133] ACPI: Battery Slot [BAT0] (battery present) 240 | [ 42.462837] brd: module loaded 241 | [ 42.464777] loop: module loaded 242 | [ 42.465252] scsi host0: ata_piix 243 | [ 42.465324] scsi host1: ata_piix 244 | [ 42.465358] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xd000 irq 14 245 | [ 42.465359] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xd008 irq 15 246 | [ 42.465430] libphy: Fixed MDIO Bus: probed 247 | [ 42.465431] tun: Universal TUN/TAP device driver, 1.6 248 | [ 42.465432] tun: (C) 1999-2004 Max Krasnyansky 249 | [ 42.465737] PPP generic driver version 2.4.2 250 | [ 42.465790] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver 251 | [ 42.465793] ehci-pci: EHCI PCI platform driver 252 | [ 42.465806] ehci-platform: EHCI generic platform driver 253 | [ 42.465812] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver 254 | [ 42.465814] ohci-pci: OHCI PCI platform driver 255 | [ 42.465820] ohci-platform: OHCI generic platform driver 256 | [ 42.465824] uhci_hcd: USB Universal Host Controller Interface driver 257 | [ 42.465868] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12 258 | [ 42.559222] serio: i8042 KBD port at 0x60,0x64 irq 1 259 | [ 42.559228] serio: i8042 AUX port at 0x60,0x64 irq 12 260 | [ 42.559366] mousedev: PS/2 mouse device common for all mice 261 | [ 42.559670] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 262 | [ 42.559717] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram 263 | [ 42.559723] i2c /dev entries driver 264 | [ 42.559777] device-mapper: uevent: version 1.0.3 265 | [ 42.559823] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com 266 | [ 42.559840] ledtrig-cpu: registered to indicate activity on CPUs 267 | [ 42.560063] NET: Registered protocol family 10 268 | [ 42.560198] NET: Registered protocol family 17 269 | [ 42.560206] Key type dns_resolver registered 270 | [ 42.765873] microcode: CPU0 sig=0x40661, pf=0x40, revision=0x0 271 | [ 42.765945] microcode: CPU1 sig=0x40661, pf=0x40, revision=0x0 272 | [ 42.766020] microcode: Microcode Update Driver: v2.01 , Peter Oruba 273 | [ 42.766143] registered taskstats version 1 274 | [ 42.766160] Loading compiled-in X.509 certificates 275 | [ 42.766700] Loaded X.509 cert 'Build time autogenerated kernel key: c40ffa48d8617ce4553ee3ab59017c95e74f2501' 276 | [ 42.766718] zswap: loaded using pool lzo/zbud 277 | [ 42.767821] Key type trusted registered 278 | [ 42.769750] Key type encrypted registered 279 | [ 42.769754] AppArmor: AppArmor sha1 policy hashing enabled 280 | [ 42.769757] ima: No TPM chip found, activating TPM-bypass! 281 | [ 42.769771] evm: HMAC attrs: 0x1 282 | [ 42.770030] Magic number: 12:250:652 283 | [ 42.855426] rtc_cmos rtc_cmos: setting system clock to 2016-08-19 21:36:24 UTC (1471642584) 284 | [ 42.855575] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found 285 | [ 42.855575] EDD information not available. 286 | [ 43.204680] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 287 | [ 49.777979] Freeing unused kernel memory: 1480K (ffffffff81f42000 - ffffffff820b4000) 288 | [ 49.911175] Write protecting the kernel read-only data: 14336k 289 | [ 49.930374] Freeing unused kernel memory: 1832K (ffff880001836000 - ffff880001a00000) 290 | [ 49.963588] Freeing unused kernel memory: 152K (ffff880001dda000 - ffff880001e00000) 291 | Loading, please wait... 292 | [ 49.975709] random: systemd-udevd urandom read with 4 bits of entropy available 293 | starting version 229 294 | [ 50.320589] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI 295 | [ 50.606257] e1000: Copyright (c) 1999-2006 Intel Corporation. 296 | [ 50.795329] Fusion MPT base driver 3.04.20 297 | [ 50.868927] Copyright (c) 1999-2008 LSI Corporation 298 | [ 51.011872] Fusion MPT SPI Host driver 3.04.20 299 | [ 51.119589] AVX version of gcm_enc/dec engaged. 300 | [ 51.125849] AES CTR mode by8 optimization enabled 301 | [ 51.259627] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4 302 | [ 51.550256] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 02:af:4b:8e:d4:f5 303 | [ 51.708465] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection 304 | [ 52.653588] e1000 0000:00:08.0 eth1: (PCI:33MHz:32-bit) 08:00:27:c7:08:82 305 | [ 52.828128] e1000 0000:00:08.0 eth1: Intel(R) PRO/1000 Network Connection 306 | [ 53.004110] e1000 0000:00:08.0 enp0s8: renamed from eth1 307 | [ 53.005462] mptbase: ioc0: Initiating bringup 308 | [ 53.250478] e1000 0000:00:03.0 enp0s3: renamed from eth0 309 | [ 53.406113] ioc0: LSI53C1030 A0: Capabilities={Initiator} 310 | [ 53.777450] scsi host2: ioc0: LSI53C1030 A0, FwRev=00000000h, Ports=1, MaxQ=256, IRQ=20 311 | [ 54.081489] floppy0: no floppy controllers found 312 | [ 54.206508] scsi 2:0:0:0: Direct-Access VBOX HARDDISK 1.0 PQ: 0 ANSI: 5 313 | [ 54.483897] scsi target2:0:0: Beginning Domain Validation 314 | [ 54.512113] scsi target2:0:0: Domain Validation skipping write tests 315 | [ 54.519207] scsi target2:0:0: Ending Domain Validation 316 | [ 54.535349] scsi target2:0:0: asynchronous 317 | [ 54.547521] scsi 2:0:1:0: Direct-Access VBOX HARDDISK 1.0 PQ: 0 ANSI: 5 318 | [ 54.548956] scsi target2:0:1: Beginning Domain Validation 319 | [ 54.550962] scsi target2:0:1: Domain Validation skipping write tests 320 | [ 54.795253] scsi target2:0:1: Ending Domain Validation 321 | [ 55.086413] scsi target2:0:1: asynchronous 322 | [ 55.272586] sd 2:0:0:0: Attached scsi generic sg0 type 0 323 | [ 55.272769] sd 2:0:0:0: [sda] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB) 324 | [ 55.272862] sd 2:0:0:0: [sda] Write Protect is off 325 | [ 55.272923] sd 2:0:0:0: [sda] Incomplete mode parameter data 326 | [ 55.272923] sd 2:0:0:0: [sda] Assuming drive cache: write through 327 | [ 55.278977] sda: sda1 328 | [ 55.279681] sd 2:0:0:0: [sda] Attached SCSI disk 329 | [ 55.659183] sd 2:0:1:0: [sdb] 20480 512-byte logical blocks: (10.5 MB/10.0 MiB) 330 | [ 55.712095] sd 2:0:1:0: Attached scsi generic sg1 type 0 331 | [ 55.720401] sd 2:0:1:0: [sdb] Write Protect is off 332 | [ 55.721515] sd 2:0:1:0: [sdb] Incomplete mode parameter data 333 | [ 55.726377] sd 2:0:1:0: [sdb] Assuming drive cache: write through 334 | [ 55.968257] sd 2:0:1:0: [sdb] Attached SCSI disk 335 | Begin: Loading e[ 57.464099] md: linear personality registered for level -1 336 | ssential drivers[ 57.721166] md: multipath personality registered for level -4 337 | ... [ 57.928770] md: raid0 personality registered for level 0 338 | [ 57.960656] md: raid1 personality registered for level 1 339 | [ 58.101630] raid6: sse2x1 gen() 10670 MB/s 340 | [ 58.273730] raid6: sse2x1 xor() 8263 MB/s 341 | [ 58.461597] raid6: sse2x2 gen() 12614 MB/s 342 | [ 58.637604] raid6: sse2x2 xor() 9100 MB/s 343 | [ 58.769641] raid6: sse2x4 gen() 12684 MB/s 344 | [ 58.853457] raid6: sse2x4 xor() 10045 MB/s 345 | [ 58.886006] raid6: using algorithm sse2x4 gen() 12684 MB/s 346 | [ 58.931348] raid6: .... xor() 10045 MB/s, rmw enabled 347 | [ 59.065841] raid6: using ssse3x2 recovery algorithm 348 | [ 59.104516] xor: automatically using best checksumming function: 349 | [ 59.154801] avx : 22873.000 MB/sec 350 | [ 59.358071] async_tx: api initialized (async) 351 | [ 59.466133] md: raid6 personality registered for level 6 352 | [ 59.609306] md: raid5 personality registered for level 5 353 | [ 59.723674] md: raid4 personality registered for level 4 354 | [ 59.853248] md: raid10 personality registered for level 10 355 | done. 356 | Begin: Running /scripts/init-p[ 60.000697] Btrfs loaded 357 | remount ... done. 358 | Begin: Mounting root file system ... Begin: R[ 60.106307] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) 359 | unning /scripts/local-top ... done. 360 | Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems 361 | done. 362 | Warning: fsck not present, so skipping root file system 363 | done. 364 | Begin: Running /scripts/local-bottom ... done. 365 | Begin: Running /scripts/init-bottom ... Warning: overlayroot: debug is busted 366 | done. 367 | [ 60.301278] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN) 368 | [ 60.530128] systemd[1]: Detected virtualization oracle. 369 | [ 60.603511] systemd[1]: Detected architecture x86-64. 370 | 371 | Welcome to Ubuntu 16.04.1 LTS! 372 | 373 | [ 60.7497]systmd1]Sehona to ubun>. 374 | [ 61.194763] systemd[1]: Initializing machine ID from random generator. 375 | [ 61.346690] systemd[1]: Installed transient /etc/machine-id file. 376 | [ 61.467102] systemd[1]: Listening on Syslog Socket. 377 | [ OK ] Listening on Syslog Socket. 378 | [ 61.63559]ysemd[1]: eahed target User and Grp meookups 379 | [ OK ] Reached target User and Group Name Lookups. 380 | [ 62691]ysmd]:tateFowad Pasword Rqutso llDirectoy tc 381 | [ OK ] Started Forward Password Requests to Wall Directory Watch. 382 | [ 63.0508] std[: stinondeinctCoatbility Named Pie. 383 | 384 | [ OK ] Listening on /dev/initctl Compatibility Named Pipe. 385 | [ 63.7374 systemd[1]: Reahetaetwa. 386 | [ OK ] Reached target Swap. 387 | [ 64189]ysmd]:isni oLV pl damon soet 388 | 389 | [ OK ] Listening on LVM2 poll daemon socket. 390 | [ 64.80499] systmd]:iseng n udev ConroSoet 391 | 392 | [ OK ] Listening on udev Control Socket. 393 | [ 65066]ysmd]:reted slice Us a Sssion li. 394 | [ OK ] Created slice User and Session Slice. 395 | [ 650644 sstemd[1]: Listening on uv rn Ske 396 | [ OK ] Listening on udev Kernel Socket. 397 | [ 66306]ysmd[1: acd tageEncrypedoles 398 | 399 | [ OK ] Reached target Encrypted Volumes. 400 | [ 67.0519] sstemd[1]:Lieng L2 tataaen ck. 401 | [ OK ] Listening on LVM2 metadata daemon socket. 402 | [ 67.7487] systed[: Seupaumot biraryxetae leFormatFi Ste Aomntoi. 403 | [ OK ] Set up automount Arbitrary Executab...ats File System Automount Point. 404 | [ 687017] yste[1 LteinonJournal Sock (evog 405 | [ OK ] Listening on Journal Socket (/dev/log). 406 | [ 693304 ste[1 Lteing onournal Audit Socket. 407 | 408 | [ OK ] Listening on Journal Audit Socket. 409 | [ 69.723247] systemd[1]: Listening on Journal Socket. 410 | [ OK ] Listening on Journal Socket. 411 | [ 69637]ysmd[1]: stinoneve-pp entaen IFOs. 412 | 413 | [ OK ] Listening on Device-mapper event daemon FIFOs. 414 | [ 7.595680] systemd1]Created slic Sstem li. 415 | [ OK ] Created slice System Slice. 416 | [ 7098641 ste[1 Rch tgeSles 417 | 418 | [ OK ] Reached target Slices. 419 | [ 71.562052] systemd[1]: Starting Create list of required static device nodes for the current kernel... 420 | Starting Create list of required st... nodes for the current kernel... 421 | [ 71.781922] systemd[1]: Mounting POSIX Message Queue File System... 422 | Mounting POSIX Message Queue Fil[ 71.948212] random: nonblocking pool is initialized 423 | e System... 424 | [ 72.122073] systemd[1]: Starting Uncomplicated firewall... 425 | Starting Uncomplicated firewall... 426 | [ 72.318039] systemd[1]: Starting Set console keymap... 427 | Starting Set console keymap... 428 | [ 72.509850] systemd[1]: Mounting Debug File System... 429 | Mounting Debug File System... 430 | [ 72.677874] systemd[1]: Mounting Huge Pages File System... 431 | Mounting Huge Pages File System... 432 | [ 72.841769] systemd[1]: Starting Journal Service... 433 | Starting Journal Service... 434 | [ 72.895067] systemd[1]: Starting Load Kernel Modules... 435 | [ 73.004127] Loading iSCSI transport class v2.0-870. 436 | Starting Load Ke[ 73.145622] iscsi: registered transport (tcp) 437 | rnel Modules... 438 | [ 73.400093] isssi: registered transport (iser) 439 | [ 73.405903] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling... 440 | Starting Monitoring of LVM2 mirrors... dmeventd or progress polling... 441 | [ 73.805722] systemd[1]: Starting Remount Root and Kernel File Systems... 442 | [ 73.912929] EXT4-fs (sda1): re-mounted. Opts: (null) 443 | Starting Remount Root and Kernel File Systems... 444 | [ 73.950941] systemd[1]: Created slice system-serial\x2dgetty.slice. 445 | [ OK ] Created slice system-serial\x2dgetty.slice. 446 | [ 74.001607] systemd[1]: Starting Nameserver information manager... 447 | Starting Nameserver information manager... 448 | [ 74360]ysmd1]: Mound SIX esagQue leysm. 449 | [ OK ] Mounted POSIX Message Queue File System. 450 | [ 7514492] ysmd1]MoteDeg File Sst. 451 | [ OK ] Mounted Debug File System. 452 | [ 75.685] ystemd[1]: Mund geag Fe ysem. [ OK ] Mounted Huge Pages File System. 453 | [ 767030sytemd[1]: Started Journal Servie. 454 | 455 | [ OK ] Started Journal Service. 456 | [ OK ] Started Create list of required sta...ce nodes for the current kernel. 457 | [ OK ] Started Uncomplicated firewall. 458 | [ OK ] Started Set console keymap. 459 | [ OK ] Started Load Kernel Modules. 460 | [ OK ] Started Remount Root and Kernel File Systems. 461 | [ OK ] Started Nameserver information manager. 462 | [ OK ] Started LVM2 metadata daemon. 463 | Starting udev Coldplug all Devices... 464 | Starting Load/Save Random Seed... 465 | Mounting FUSE Control File System... 466 | Starting Apply Kernel Variables... 467 | Starting Create Static Device Nodes in /dev... 468 | Starting Flush Journal to Persistent Storage... 469 | [ OK ] Mounted FUSE Control File System. 470 | [ OK ] Started Load/Save Random Seed. 471 | [ OK ] Started Apply Kernel Variables. 472 | [ OK ] Started Monitoring of LVM2 mirrors,...ng dmeventd or progress polling. 473 | [ OK ] Started Create Static Device Nodes in /dev. 474 | [ OK ] Started udev Coldplug all Devices. 475 | [ OK ] Started Flush Journal to Persistent Storage. 476 | Starting udev Kernel Device Manager... 477 | [ OK ] Started udev Kernel Device Manager. 478 | [ OK ] Reached target Local File Systems (Pre). 479 | [ OK ] Reached target Local File Systems. 480 | Starting Commit a transient machine-id on disk... 481 | Starting LSB: AppArmor initialization... 482 | Starting Create Volatile Files and Directories... 483 | Starting Tell Plymouth To Write Out Runtime Data... 484 | Starting Initial cloud-init job (pre-networking)... 485 | Starting Set console font and keymap... 486 | [ OK ] Started Dispatch Password Requests to Console Directory Watch. 487 | [ OK ] Started Commit a transient machine-id on disk. 488 | [ 46.395825] cloud-init[1707]: Cloud-init v. 0.7.7 running 'init-local' at Fri, 19 Aug 2016 21:37:00 +0000. Up 46.16 seconds. 489 | [ OK ] Started Create Volatile Files and Directories. 490 | [ OK ] Started Tell Plymouth To Write Out Runtime Data. 491 | [ OK ] Started Set console font and keymap. 492 | [ OK ] Started Initial cloud-init job (pre-networking). 493 | [ OK ] Found device /dev/ttyS0. 494 | [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. 495 | [ OK ] Reached target Network (Pre). 496 | [ OK ] Created slice system-getty.slice. 497 | Starting Update UTMP about System Boot/Shutdown... 498 | Starting Network Time Synchronization... 499 | [ OK ] Started Network Time Synchronization. 500 | [ OK ] Started LSB: AppArmor initialization. 501 | [ OK ] Started Update UTMP about System Boot/Shutdown. 502 | Starting Raise network interfaces... 503 | [ OK ] Reached target System Initialization. 504 | [ OK ] Listening on UUID daemon activation socket. 505 | [ OK ] Started Daily Cleanup of Temporary Directories. 506 | Starting Socket activation for snappy daemon. 507 | [ OK ] Started ACPI Events Check. 508 | Starting LXD - unix socket. 509 | [ OK ] Listening on ACPID Listen Socket. 510 | [ OK ] Started Trigger resolvconf update for networkd DNS. 511 | [ OK ] Reached target Paths. 512 | [ OK ] Listening on D-Bus System Message Bus Socket. 513 | [ OK ] Reached target System Time Synchronized. 514 | [ OK ] Started Daily apt activities. 515 | [ OK ] Started Timer to automatically refresh installed snaps. 516 | [ OK ] Reached target Timers. 517 | [ OK ] Listening on Socket activation for snappy daemon. 518 | [ OK ] Listening on LXD - unix socket. 519 | [ OK ] Reached target Sockets. 520 | [ OK ] Reached target Basic System. 521 | Starting System Logging Service... 522 | [ OK ] Started Regular background program processing daemon. 523 | Starting Login Service... 524 | [ OK ] Started ACPI event daemon. 525 | Starting Accounts Service... 526 | [ OK ] Started FUSE filesystem for LXC. 527 | Starting LSB: MD monitoring daemon... 528 | Starting LSB: Record successful boot for GRUB... 529 | [ OK ] Started Deferred execution scheduler. 530 | [ OK ] Started D-Bus System Message Bus. 531 | Starting LXD - container startup/shutdown... 532 | [ OK ] Started Snappy daemon. 533 | [ OK ] Started System Logging Service. 534 | [ OK ] Started LXD - container startup/shutdown. 535 | [ OK ] Started LSB: Record successful boot for GRUB. 536 | [ OK ] Started LSB: MD monitoring daemon. 537 | Starting Authenticate and Authorize Users to Run Privileged Tasks... 538 | [ OK ] Started Login Service. 539 | [ OK ] Started Authenticate and Authorize Users to Run Privileged Tasks. 540 | [ OK ] Started Accounts Service. 541 | [ OK ] Started Raise network interfaces. 542 | Starting Initial cloud-init job (metadata service crawler)... 543 | [ OK ] Reached target Network. 544 | [ 50.320818] cloud-init[2127]: Cloud-init v. 0.7.7 running 'init' at Fri, 19 Aug 2016 21:37:04 +0000. Up 49.87 seconds. 545 | [ 50.384425] [cloud-init OK [2127]: ] ci-info: ++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++Started Initial cloud-init job (metadata service crawler). 546 | 547 | [ 50.384826] cloud-init[2127]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+[ OK ] Reached target Network is Online. 548 | 549 | [ 50.460379] cloud-initStarting Seed the pseudo random number generator on first boot...[2127]: 550 | ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | 551 | Starting iSCSI initiator daemon (iscsid)... 552 | [ 50.467247] cloud-init[2127]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+ 553 | [ 50.476530] cloud-init[2127]: ci-info: | enp0s8 | False | . | . | . | 08:00:27:c7:08:82 | 554 | [ 50.488939] cloud-init[2127]: ci-info: | enp0s3 | True | 10.0.2.15 | 255.255.255.0 | . | 02:af:4b:8e:d4:f5 | 555 | [ 50.563516] cloud-initStarting /etc/rc.local Compatibility...[2127]: 556 | ci-info: | enp0s3 | True | fe80::af:4bff:fe8e:d4f5/64 | . | link | 02:af:4b:8e:d4:f5 | 557 | [ 50.624389] [ OK ] Reached target Cloud-config availability. 558 | cloud-init[2127]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | . | 559 | [ 50.630516] cloud-init[2127]: ci-info: | lo | True | ::1/128 | . | host | . | 560 | [ 50.633489] cloud-init[2127]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+ 561 | [ 50.684399] cloud-initStarting Apply the settings specified in cloud-config...[2127]: 562 | ci-info: +++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++ 563 | [ 50.844961] [cloud-init OK [2127]: ] ci-info: +-------+-------------+----------+---------------+-----------+-------+Started /etc/rc.local Compatibility. 564 | 565 | [ 50.845479] [cloud-init OK [2127]: ] ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |Started iSCSI initiator daemon (iscsid). 566 | 567 | [ 51.424475] cloud-initStarting Login to default iSCSI targets...[2127]: 568 | ci-info: +-------+-------------+----------+---------------+-----------+-------+ 569 | [ 51.516437] [cloud-init OK [2127]: ] ci-info: | 0 | 0.0.0.0 | 10.0.2.2 | 0.0.0.0 | enp0s3 | UG |Started Login to default iSCSI targets. 570 | 571 | [ 51.516839] cloud-init[2127]: ci-info: | 1 | 10.0.2.0 | 0.0.0.0 | 255.255.255.0 | enp0s3 | U | 572 | [ 51.685540] [ OK ] Reached target Remote File Systems (Pre). 573 | [ OK ] Reached target Remote File Systems. 574 | cloud-init[2127]: ci-info: +-------+-------------+----------+---------------+-----------+-------+ 575 | Starting Permit User Sessions... 576 | [ 51.720833] cloud-init[2127]: Generating public/private rsa key pair. 577 | [ 51.804736] cloud-initStarting LSB: daemon to balance interrupts for SMP systems...[2127]: 578 | Your identification has been saved in /etc/ssh/ssh_host_rsa_key. 579 | [ 51.948671] cloud-initStarting LSB: automatic crash report generation...[2127]: 580 | Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub. 581 | [ 52.073031] cloud-initStarting LSB: Set the CPU Frequency Scaling governor to "ondemand"...[2127]: 582 | The key fingerprint is: 583 | [ 52.185420] [cloud-init OK [2127]: ] SHA256:4X0ml5TvLN5K9NCsfqbulJjcbLbi4RRglAFDPp8ehNY root@ubuntu-xenialStarted Permit User Sessions. 584 | 585 | [ 52.185917] cloud-init[2127]: The key's randomart image is: 586 | [ 52.324215] [cloud-init OK [2127]: ] +---[RSA 2048]----+Stopped OpenBSD Secure Shell server. 587 | 588 | [ 52.324808] cloud-init[2127]: | .+.oo | 589 | [ 52.436728] cloud-initStarting OpenBSD Secure Shell server...[2127]: 590 | | . =. . | 591 | [ 52.522814] cloud-initStarting Hold until boot process finishes up...[2127]: 592 | | = E o | 593 | [ 52.601378] cloud-initStarting Terminate Plymouth Boot Screen...[2127]: 594 | | . * = . = | 595 | [ 52.672513] [cloud-init OK [2127]: ] | S + B + | 596 | Started OpenBSD Secure Shell server. 597 | [ OK ] Started LSB: daemon to balance interrupts for SMP systems. 598 | [ 52.672912] cloud-init[2127]: | . o % B | 599 | [ 52.768719] [cloud-init OK [2127]: ] | . * @ + |Started LSB: automatic crash report generation. 600 | 601 | [ OK ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand". 602 | [ 52.769254] cloud-init[2127]: | o.O +o | 603 | [ 52.905216] [cloud-init OK [2127]: ] | .o+O=. |Started Hold until boot process finishes up. 604 | 605 | [ 52.905728] cloud-init[2127]: +----[SHA256]-----+ 606 | [ 53.012798] [cloud-init OK [2127]: ] Generating public/private dsa key pair.Started Terminate Plymouth Boot Screen. 607 | 608 | [ 53.013320] cloud-init[2127]: Your identification has been saved in /etc/ssh/ssh_host_dsa_key. 609 | [ 53.132345] cloud-init[2127]: Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub. 610 | [ 53.132582] cloud-init[2127]: The key fingerprint is: 611 | [ OK ] Started Serial Getty on ttyS0. 612 | [ 53.132708] cloud-init[2127]: SHA256:dTdpGmyzj1VuAfjmx6PCFoWud8r4lxKvH1szxra2244 root@ubuntu-xenial 613 | [ 53.360543] cloud-init[2127]: The key's randomart image is: 614 | [ 53.360845] cloud-init[2127]: +---[DSA 1024]----+ 615 | [ OK ] Started Getty on tty1. 616 | [[ 53.360998] cloud-init[2127]: | .. | 617 | [ 53.492758] cloud-init[2127]: | o .. | 618 |  OK ] Reached target Login Prompts. 619 | [ 53.492856] cloud-init[2127]: | . O =..| 620 | [ 53.644668] cloud-init[2127]: | . + @ +.| 621 | [ 53.645049] cloud-init[2127]: | S . * o o| 622 | Starting Set console scheme... 623 | [ 53.645323] cloud-init[2127]: | + =.= | 624 | [[ 53.804006] cloud-init[2127]: | o =.=B.| 625 | [ 53.804795] cloud-init[2127]: | .o* **o=| 626 | [ 53.804948] cloud-init[2127]: | .+=OoE==| 627 | [ 53.804979] cloud-init[2127]: +----[SHA256]-----+ 628 | [ 53.805014] cloud-init[2127]: Generating public/private ecdsa key pair. 629 | [ 53.805046] cloud-init[2127]: Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key. 630 |  OK ] Started Seed the pseudo random number generator on first boot. 631 | [ 53.805078] cloud-init[2127]: Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub. 632 | [ 53.805108] cloud-init[2127]: The key fingerprint is: 633 | [ 53.805155] cloud-init[2127]: SHA256:Dd4TXPRClxgArOk6MiAMUNDjQydMgXoLbFir/hkyzkI root@ubuntu-xenial 634 | [[ 54.352643] cloud-init[2127]: The key's randomart image is: 635 | [ 54.353390] cloud-init[2127]: +---[ECDSA 256]---+ 636 | [ 54.353537] cloud-init[2127]: |.B+. ....o=o.. | 637 |  OK ] Started Apply the settings specified in cloud-config. 638 | [ 54.353594] cloud-init[2127]: |o B . .. o.o. | 639 | [[ 54.596819] cloud-init[2127]: |=+ = o. o . . | 640 | [ 54.597738] cloud-init[2127]: |=o= o. + . . | 641 |  OK ] Started Set console scheme. 642 | [ 54.597948] cloud-init[2127]: |++ o . S + | 643 | Starting Execute cloud user/final scripts... 644 | [ 54.801152] cloud-init[2127]: |+E. . . | 645 | [ 54.924580] ci-info: no authorized ssh keys fingerprints found for user ubuntu. 646 | cloud-init[2127]: |++ . . | 647 | [ 54.924949] cloud-init[2127]: |+.= = | 648 | [ 55.012322] cloud-init[2127]: |.o.= . | 649 | [ 55.064790] <14>Aug 19 21:37:09 ec2: 650 | <14>Aug 19 21:37:09 ec2: ############################################################# 651 | <14>Aug 19 21:37:09 ec2: -----BEGIN SSH HOST KEY FINGERPRINTS----- 652 | <14>Aug 19 21:37:09 ec2: 1024 SHA256:dTdpGmyzj1VuAfjmx6PCFoWud8r4lxKvH1szxra2244 root@ubuntu-xenial (DSA) 653 | <14>Aug 19 21:37:09 ec2: 256 SHA256:Dd4TXPRClxgArOk6MiAMUNDjQydMgXoLbFir/hkyzkI root@ubuntu-xenial (ECDSA) 654 | <14>Aug 19 21:37:09 ec2: 256 SHA256:b+Oqee7ifKNdCnRfR723SAnPNNqpqKUgO6Yr+qQYwT8 root@ubuntu-xenial (ED25519) 655 | <14>Aug 19 21:37:09 ec2: 2048 SHA256:4X0ml5TvLN5K9NCsfqbulJjcbLbi4RRglAFDPp8ehNY root@ubuntu-xenial (RSA) 656 | <14>Aug 19 21:37:09 ec2: -----END SSH HOST KEY FINGERPRINTS----- 657 | <14>Aug 19 21:37:09 ec2: ############################################################# 658 | -----BEGIN SSH HOST KEY KEYS----- 659 | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBsQKtDmJdP5PQP+2I5sQUtpb3+DKoshbg+XxFLQhVjLxJPomlwDPBbejYicuoBqrzJqi04sqAcZ0kjuzKYBKas= root@ubuntu-xenial 660 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICZBAXRLNW2+zFs99W72P4q+AWjlrRBQ4/GsJlrAJrIe root@ubuntu-xenial 661 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDa/Nddll05fzlQBlndP8nQCmp2sVrba7nJ8z8S93UToHxHibw6yxZaEl0ODSBFwaPe4cyc7QAvpG1aUS+HZrqH33mhZJs5YiXUyFZ65WR0QH448N05fHPj3qNQZ0yqvmMiwf6/6BsxuWGCXe/UXR5QkREhkVifiYQhs0I3h14lRj4U1AzBBS9QwwukOEvhZwioFEW1vHsIyG/JrpJxZto09t2CJGeH8fOW6meVBlg0sTC/mimf6C3kmmGACQvSeBHY88pjLGN6tlRJvsdKuWcZwj5CdDU0PSOmCOaWwQzYKSljSsZoMm382+PrabznM2clCRFz55M4EHFbV/enCFHp root@ubuntu-xenial 662 | -----END SSH HOST KEY KEYS----- 663 | cloud-init[2127]: +----[SHA256]-----+ 664 | [ 55.065529] cloud-init[2127]: Generating public/private ed25519 key pair. 665 | [ OK ] Started Execute cloud user/final scripts. 666 | [ 56.206637] cloud-init[2127]: Your identification has been saved in /etc/ssh/ssh_host_ed25519_key. 667 | [ 56.324697] cloud-init[2127]: Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub. 668 | [ 56.325074] cloud-init[2127]: The key fingerprint is: 669 | [ OK ] Reached target Cloud-init target. 670 | [[ 56.325232] cloud-init[2127]: SHA256:b+Oqee7ifKNdCnRfR723SAnPNNqpqKUgO6Yr+qQYwT8 root@ubuntu-xenial 671 |  OK ] Reached target Multi-User System. 672 | [ 56.464954] cloud-init[2127]: The key's randomart image is: 673 | [ OK ] Reached target Graphical Interface. 674 | [ 56.577179] cloud-init[2127]: +--[ED25519 256]--+ 675 | [ 56.708264] cloud-init[2127]: | | 676 | [ 56.708565] cloud-init[2127]: | . | 677 | Starting Update UTMP about System Runlevel Changes... 678 | [ 56.708732] cloud-init[2127]: | . o. .| 679 | [ 56.885069] cloud-init[2127]: |. B.+ .| 680 | [ 56.885410] cloud-init[2127]: |.. . S ..B...| 681 | [ OK ] Started Update UTMP about System Runlevel Changes. 682 | [ 56.885548] cloud-init[2127]: | .. . . o..o.. o| 683 | [ 57.053276] cloud-init[2127]: |. .E .. o*. . . | 684 | [ 57.053747] cloud-init[2127]: |o+ o+.o+B= . | 685 | [ OK ] Created slice User Slice of ubuntu. 686 | [ 57.054509] cloud-init[2127]: |*+=...*@*o. | 687 | [ 57.252339] cloud-init[2127]: +----[SHA256]-----+ 688 | [ 57.293578] cloud-init[2254]: Generating locales (this might take a while)... 689 | [ 57.361198] cloud-initStarting User Manager for UID 1000...[2254]: 690 | en_US.UTF-8... done 691 | [ 57.382957] cloud-init[2254]: Generation complete. 692 | [ OK ] Started Session 1 of user ubuntu. 693 | [ 57.383463] cloud-init[2254]: Cloud-init v. 0.7.7 running 'modules:config' at Fri, 19 Aug 2016 21:37:05 +0000. Up 50.91 seconds. 694 | [ OK ] Started User Manager for UID 1000. 695 | [ 57.568508] cloud-init[2372]: Cloud-init v. 0.7.7 running 'modules:final' at Fri, 19 Aug 2016 21:37:09 +0000. Up 54.85 seconds. 696 | [ 57.720616] [ 57.721169] cloud-init[2372]: Cloud-init v. 0.7.7 finished at Fri, 19 Aug 2016 21:37:10 +0000. Datasource DataSourceNoCloud [seed=/dev/sdb][dsmode=net]. Up 56.15 seconds 697 | 698 | Ubuntu 16.04.1 LTS ubuntu-xenial ttyS0 699 | 700 | ubuntu-xenial login: --------------------------------------------------------------------------------