The Cisco IOSv and IOSv L2 devices could be considered the standard for learning Cisco routing and switching in the confines of a virtual network environment. They’re light in resource usage and contain a vast feature set. Let’s now add them to our GNS3 device inventory.

Prerequisites

Steps

  1. Point your web browser to the CML Software Download page.

  2. Click the Download icon for Cisco Modeling Labs reference platform ISO file (February 2024).

  3. Log in with your Cisco.com credentials when prompted.

  4. Save the refplat-20240225-fcs-iso.zip file to your Downloads folder.

  5. Open your favorite terminal emulator.

  6. Change to the Downloads directory.

cd ~/Downloads
  1. Create the cml27-refplat directory.
mkdir -p cml27-refplat
  1. Uncompress the refplat-20240225-fcs-iso.zip file into the cml27-refplatdirectory.
unzip refplat-20240225-fcs-iso.zip -d cml27-refplat
  1. Attach the refplat-20240225-fcs.iso file.
open cml27-refplat/refplat-20240225-fcs.iso
  1. Create the QEMU directory.
mkdir -p ~/GNS3/images/QEMU
  1. Copy the IOSv L2 image to the QEMU directory.
cp /Volumes/REFPLAT/virl-base-images/iosvl2-2020/vios_l2-adventerprisek9-m.ssa.high_iron_20200929.qcow2 ~/GNS3/images/QEMU
  1. Copy the IOSv image to the QEMU directory.
cp /Volumes/REFPLAT/virl-base-images/iosv-159-3-m8/vios-adventerprisek9-m.spa.159-3.m8.qcow2 ~/GNS3/images/QEMU
  1. Detach the REFPLAT image file from Finder.
Detach REFPLAT iso
  1. Open the GNS3 client application.

  2. Click the Cancel button to close the Project window.

  3. Menu: FileNew template

  4. Select Install an appliance from the GNS3 server (recommended).

  5. Click the Next button.

  6. Click the Update from online registry button.

  7. Enter iosv in the Filter field.

  8. Select Cisco IOSvL2.

Select Cisco IOSvL2
  1. Click the Install button.

  2. Click the Next button.

  3. Select /usr/bin/qemu-system-x86_64 for the QEMU binary value.

  4. Click the Next button.

  5. Select the vios_l2-adventerprisek9-m.ssa.high_iron_20200929.qcow2 entry.

The IOSv L2 image file should be detected automatically from the ~/GNS3/images/QEMU directory.

Select Cisco IOSvL2 image
  1. Click the Next button.

  2. Click the Yes button when prompted to install.

  3. Click the Finish button.

  4. Click the OK button.

  5. Press the ⌘ + , key combo to open the GNS3 Preferences.

  6. Select QEMU VMs on the left side menu.

  7. Click the Edit button for the Cisco IOSvL2 template.

  8. Enter SW{0} for the Default name format value.

  9. Enter :/symbols/affinity/square/blue/switch_multilayer.svg for the Symbol value.

  10. Click the OK button.

  11. Click the Apply button to save the template.

Cisco IOSvL2 template
  1. Click the OK button to close the GNS3 Preferences window.

  2. Menu: FileNew template

  3. Select Install an appliance from the GNS3 server (recommended).

  4. Click the Next button.

  5. Enter iosv in the Filter field.

  6. Select Cisco IOSv.

  7. Click the Install button.

  8. Click the Next button.

  9. Select /usr/bin/qemu-system-x86_64 for the QEMU binary value.

  10. Click the Next button.

  11. Select the IOSv_startup_config.img entry.

The IOSv image file should be detected automatically from the ~/GNS3/images/QEMU directory, but the IOSv_startup_config.img file will need to be downloaded.

  1. Click the Download button.
Download IOSv image
  1. Save the IOSv_startup_config.img file to the ~/GNS3/images/QEMU folder.
Save IOSv boot configuration image
  1. Click the Refresh button.

The IOSv_startup_config.img file should now be detected.

  1. Select the IOSv version 15.9(3)M8 entry.

  2. Click the Next button.

  3. Click the Yes button when prompted to install.

  4. Click the Finish button.

  5. Click the OK button.

  6. Press the ⌘ + , key combo to open the GNS3 Preferences.

  7. Select QEMU VMs on the left side menu.

  8. Click the Edit button for the Cisco IOSv template.

  9. Enter R{0} for the Default name format value.

  10. Enter :/symbols/affinity/circle/blue/router2.svg for the Symbol value.

  11. Click the OK button.

  12. Click the Apply button to save the template.

Cisco IOSv template
  1. Click the OK button to close the GNS3 Preferences window.