Create Vagrant Boxes for Libvirt/KVM Environment¶
Vagrant starts virtual machines from prepackaged VM images called boxes. While it’s possible to download some network device images from Vagrant Cloud, you’ll have to build most of the boxes you’d want to use in your lab.
You have to use the following box names when installing or building the Vagrant boxes (see supported platforms and netlab show images for more details):
| Virtual network device | Vagrant box name |
|---|---|
| Arista vEOS | arista/veos |
| Cisco IOSv | cisco/iosv |
| Cisco CRS 1000v | cisco/csr1000v |
| Cisco Nexus 9300v | cisco/nexus9300v |
| Dell OS10 | dell/os10 |
| Fortinet FortiOS | fortinet/fortios |
| Juniper vSRX 3.0 | juniper/vsrx3 |
| Mikrotik RouterOS 6 | mikrotik/chr |
| Mikrotik RouterOS 7 | mikrotik/chr7 |
The following Vagrant boxes are automatically downloaded from Vagrant Cloud when you’re using them for the first time in your lab topology:
| Virtual network device | Vagrant box name |
|---|---|
| Cumulus VX | CumulusCommunity/cumulus-vx:4.4.0 |
| Cumulus VX 5.0 (NVUE) | CumulusCommunity/cumulus-vx:5.0.1 |
| Generic Linux | generic/ubuntu2004 |
| VyOS | vyos/current |
NOTE: Even if a new box version is available from Vagrant Cloud, Vagrant will only output a warning to the user letting them know an update is available. That user can choose to ignore the warning for now, or can update the box by running vagrant box update.
Vagrant can not and does not automatically download the updated box and update the machine because boxes can be relatively large (See: https://www.vagrantup.com/docs/boxes/versioning).
However, we recommend to periodically download the updated box for:
vyos/current
Building Your Own Boxes¶
Mikrotik RouterOS 7 - based on the original Mikrotik RouterOS by Stefano Sasso
VyOS by Stefano Sasso - if you don’t want to use the one from Vagrant Cloud.
Notes:
For more Vagrant details, watch the Network Simulation Tools part of Network Automation Tools webinar.