Copyright © 2020 HashiCorp
Deploying Cisco NXOSv with Vagrant
Hoon Jo (조훈) - CCIE DC, CKA&D, VCIX-NV6
What is Cisco NXOS and v(Virtual)?
Which OS is for NXOSv?
NXOS9
bash-4.3$ cat /etc/os-release
ID=nexus
ID_LIKE=cisco-wrlinux
NAME=Nexus
VERSION="9.3(5)I9(1)"
VERSION_ID="9.3(5)I9"
PRETTY_NAME="Nexus 9.3(5)I9"
HOME_URL=http://www.cisco.com
BUILD_ID="9.3(5)I9(1)"
CISCO_RELEASE_INFO=/etc/os-release
NXOS7
bash-4.2$ cat /etc/os-release
ID=nexus
ID_LIKE=cisco-wrlinux
NAME=Nexus
VERSION="7.0(3)I7(8)"
VERSION_ID="7.0(3)I7"
PRETTY_NAME="Nexus 7.0(3)I7"
HOME_URL=http://www.cisco.com
BUILD_ID="7.0(3)I7(8)"
CISCO_RELEASE_INFO=/etc/os-release
cisco-wrlinux???
Wind Liver Linux customized by Cisco (Probably?)
vm.guest = :is_os
How to deploy Non-Support OS!!!
Hoon Jo�(He/Him)
Cloud Solutions Architect at Megazone
My Journey
Vagrantfile for NXOSv
Lesson Learned
My Journey
Vagrantfile for NXOSv
Lesson Learned
When I wrote a Python Book...
Manually installed every time.
Python for Sys - Net Admin
When I wrote a book for Python, I setup manually those environment with Virtualbox.
It was very boring matter and consumed tremendous times too.
Leverage vagrant for ansible lab env
Auto-Provisioning
Ansible for IT automation
Vagrant help to build most of infra environment automatically. However it is very limited utilization with documents due to some OS doesn’t cover in vagrant.
Minor User, No Porting Guide (2018)
Line by Line Test and Deploy it (in 2018)
Line by Line Test and Deploy it (in 2018)
Plan: re-use and easy to get! (in 2021)
What happen??? Which one change?
I have to dig again even 3 years later.
Plan B: Build new code(i.e. Start exploring)
Anyhow made it :)
Anyhow made it.
My Journey
Vagrantfile for NXOSv
Lesson Learned
Vagrantfile (Line 1-21)
Vagrant run as privileged Vagrant user
ssh authorized_keys already in vagrant user
a
Vagrantfile (Line 1-21)
Vagrant try to find proper OS. but it failed
Vagrantfile (Line 30-46)
Serial Port Config
Vagrantfile (Line 30-46)
Code Run
Hide vm.guest type in the code
My Journey
Vagrantfile for NXOSv
Lesson Learned
Don’t trust anyone
Build as TDD
Creative Thinking
Thank You!!!