Giter VIP home page Giter VIP logo

vagrant-libvirt-nxos-9k's Introduction

Testing Cisco Nexus 9k VM using Vagrant-libvirt

This project is composed of the following parts

  • lib/ folder and .gemspec file Vagrant guest plugin for nxos so that vagrant-libvirt completes successfully
  • vagrant_box/ folder with base files to build a custom nexus 9k vagrant box for vagrant-libvirt
  • tests/ folder with a section to generate a custom Nexus 9k initial config

Prerequisites

  • Vagrant
  • Vagrant-libvirt
  • Ruby development tools

Create a Custom vagrant box

Follow the README found in the vagrant_box/ directory to create and install the custom nexus 9k vagrant box for a libvirt environment.

Create and install the vagrant-nxos plugin

gem build vagrant-nxos.gemspec
vagrant plugin install  vagrant-nxos-1.0.gem

Create a Test environment

  • change directory to the tests/ folder.
  • modify the iso/nxos_config.txt to your liking. The default value allows the vagrant and admin user to login using the same vagrant insecure key. Its a good idea to set the boot nxos <bootfile> command to the version of nexus 9k software you are using. This way on reboot of the VM it will boot the image and not send show the loader> prompt.
  • Create a ISO image with the modified config
  cd tests
  rm nxosv_config.iso
  mkisofs -l -o nxosv_config.iso iso 
  • Download the GNS3 OVMF file to the tests directory. This adds UEFI support.

  • Run "vagrant init " to generate a initial vagrant file.

  • Start the vagrant VM. Here is an example showing how to pass the necessary variables for the UEFI and NXOS config files

NXOS_CONFIG_PATH=/home/linuxsimba/git/vagrant-nxos/tests/ UEFI_LOADER_PATH=/home/linuxsimba/git/vagrant-nxos/tests//OVMF.fd vagrant up

vagrant-libvirt-nxos-9k's People

Contributors

linuxsimba avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

petercrocker

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.