This project is composed of the following parts
lib/
folder and.gemspec
file Vagrant guest plugin for nxos so that vagrant-libvirt completes successfullyvagrant_box/
folder with base files to build a custom nexus 9k vagrant box for vagrant-libvirttests/
folder with a section to generate a custom Nexus 9k initial config
- Vagrant
- Vagrant-libvirt
- Ruby development tools
Follow the README found in the vagrant_box/
directory to create and install
the custom nexus 9k vagrant box for a libvirt environment.
gem build vagrant-nxos.gemspec
vagrant plugin install vagrant-nxos-1.0.gem
- 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 theboot 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 theloader>
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