Cisco VIRL to study for CCNP Routing, Switch and Troubleshoot certification

This post is my notes for my installation.  Official installation and other options can be found here http://virl-dev-innovate.cisco.com/

VIRL Virtual Internet Routing Lab nodes overlay
VIRL Virtual Internet Routing Lab nodes overlay

Start Here – Welcome to VIRL

VIRL is Cisco’s easy-to-use, powerful, and extensible network modeling and simulation environment that enables users to:

  • Build highly-accurate models of existing or planned networks.
  • Design, configure, and operate networks using authentic versions of Cisco’s network operating systems, including IOSv, IOSv Layer-2, IOS-XRv, NX-OSv, CSR1000v and ASAv.
  • Integrate 3rd-party virtual machines, appliances, VNFs, and servers.
  • Connect real and virtual networks to form high-fidelity development and test environments.
  • Design and test anywhere – VIRL is portable!

(…)

For standalone deployments use:

  • virl.1.n.n.pc.ova (VMWare Fusion, Workstation, or Player)
  • virl.1.n.n.esxi.ova (VMWare vSphere ESXi)
  • virl.1.n.n.iso (Bare-Metal)

For cluster deployments add one of:

  • virl-computeN.1.n.n.ova (For vSphere ESXi deployments, compute nodes 1 through 4)
  • computeN.1.n.n.iso (For bare-metal deployments, compute nodes 1 through 4)

Installing VIRL to Bare-Metal using an ISO Boot Image

Step 1:  Get Started

Before attempting to use the VIRL ISO installer with a Bare-Metal server please ensure that these key requirements are met.

  • The target host must support Intel VT-x/EPT or AMD-V/RVI virtualization extensions and these must be enabled in the BIOS.
Enabling VT-x / AMDv.

Instructions for enabling VT-x or AMD-V virtualization extensions are machine specific and beyond the scope of this document.  Information about processor capabilities can be found at Intel and AMD

  • A disk 100GB or larger that does not contain any irreplaceable data – it will be repartitioned and erased during installation.
  • A minimum of 2 CPU cores and 4GB of memory
    • 4 CPUs and 8GB of memory is or more is highly recommended.  Additional resources will allow for larger simulations.
  • Internet access must be possible, and if static IP addressing or Internet proxies are required in your organization then you must carefully follow the relevant installation steps below to complete the VIRL installation.
  • TCP ports 4505 and 4506 must be permitted outbound through your organization’s firewall to allow connections to the Cisco Salt servers.
  • The server should optimally have five physical network interfaces, the first of which must be configured for Internet access.

>> Less than five interfaces?

If the server to which you are deploying has fewer than five physical interfaces then you must carefully follow the instruction below covering interface-constrained installations.

Step 2:  Download the VIRL ISO

(…) link send to your email…

Step 3:  Install VIRL

(…) Boot LiveCD the ISO file, on desktop click “Install do Hardware”… normal Linux menu installation follows…

Boot ISO, LiveCD

default username: virl
default password: VIRL

click "Install System to HDD"

...normal Linux menu installation follows...
- Erase disk and install System
- Use LVM with the new System installation

your name: virl
computer name: virl
username: virl
password: VIRL
... reboot when completed

Step 4:  Prepare for an Interface-Constrained Installation (Optional)

For full functionality VIRL requires the following five network interfaces:

  • eth0: used for management access with an IP address assigned via DHCP or via manual static IP address configuration
  • eth1: used for external layer-2 management and data-plane access (Flat) with a default IP address of 172.16.1.254/24
  • eth2: used for external layer-2 management and data-plane access (Flat1) with a default IP address of 172.16.2.254/24
  • eth3: used for external layer-3 management and data-plane connectivity (SNAT) with a default IP address of 172.16.3.254/24
  • eth4: used to anchor OpenStack services and for inter-host communications with a default IP address of 172.16.10.250/24

>> details to setup dummy interfaces on the VIRL website

Step 5:  Configure Static IP (Optional)

If there is no DHCP addressing facility on the subnet to which the VIRL host or virtual machine is connected via ‘eth0’ it is necessary to assign a static IP address before proceeding.

sudo nano /etc/network/interfaces

# Change the 'eth0' addressing method to static:
iface eth0 inet static

# Provide the static IP address:
address n.n.n.n

# Provide the static IP address netmask:
netmask mmm.mmm.mmm.mmm

# If needed the default IP gateway address:
gateway g.g.g.g

# If no default IP gateway address is provided
# do not configure any DNS name-server addresses unless
# they are reachable on the local subnet.
# Doing otherwise will lead to unpredictable behavior
# as various VIRL services fruitlessly attempt to resolve names.

# Provide valid reachable DNS name-server addresses:
dns-nameservers a.a.a.a b.b.b.b

# save, exit, reboot
sudo reboot now

Step 6:  Configure Internet Proxies (Optional)

(…)

Step 7:  Prepare VIRL for Activation

(…)

When installing from the VIRL ISO image you must reset the SSH server’s RSA key:

sudo apt-get remove -y openssh-server
sudo apt-get install -y openssh-server

Confirm that ‘KVM acceleration can be used‘ is returned by the KVM capabilities checker:

sudo kvm-ok

Use a method of your choice to confirm Internet connectivity and name resolution:

ping -c 4 www.cisco.com
curl http://curltools.com/get-ip
wget --spider --no-verbose http://www.google.com

Step 8:  Activate VIRL

Open a web browser and navigate to the VIRL host’s IP address.

Choose ‘User Workspace Management‘ from the VIRL Server web-page.

Login to the User Workspace Management using username ‘uwmadmin‘ and password ‘password‘.

Select ‘VIRL Server‘ from the menu that appears on the left.

Select ‘Salt Configuration and Status‘ from the menu on the left.

Select ‘Reset Keys and ID‘ from the main window.

Cut and paste the name of the license key file (not including ‘.pem’) provided with your purchase as the ‘Salt ID and Domain‘. For example ‘AB12CD35.virl.info’.

Enter your email address for the ‘Customer Email Address‘ field.

Enter two or more names for the VIRL salt servers appropriate to your geography – for example:

us-1.virl.info, us-2.virl.info, us-3.virl.info, us-4.virl.info

eu-1.virl.info, eu-2.virl.info, eu-3.virl.info, eu-4.virl.info

Delete the existing contents of the ‘Minion private RSA key‘ field.

Open the license key file in a text-editor appropriate to your platform.

Select and copy the entire contents of the license key file.

Close the text editor.

 

Paste the contents of the license key file into the ‘Minion private RSA key‘ field.

Select ‘Reset‘ and wait for the page to refresh.

Ignore any indications of failure at this point. The status will be re-checked in the next steps.

 

Locate and select ‘Check status now‘.

Step 9: Customize the VIRL Configuration (Optional)

Open a web browser and navigate to the VIRL host’s IP address.

Choose ‘User Workspace Management‘ from the VIRL Server web-page.

Login to the User Workspace Management using username ‘uwmadmin‘ and password ‘password‘.

Select ‘VIRL Server‘ from the menu that appears on the left.

Select the ‘System Configuration‘ sub-menu.

Step 10: Validate the VIRL Installation

neutron agent-list

if necessary, restart the OpenStack services:

sudo salt-call state.sls openstack-restart

Verify that both the VIRL STD and UWM services are active and in a ‘listening‘ state:

sudo virl_health_status | grep listening

If either service is not listening take the following steps, restart the VIRL services:

sudo service virl-std restart
sudo service virl-uwm restart

Display the VIRL license configuration:

sudo virl_health_status | grep -A 4 -e hostid -e product

Step 11: Install and Configure VM Maestro

navigate to the VIRL host or virtual machine’s IP address…Select ‘VM Maestro Clients‘ from the list of options.

default password: guest
default username: guest

One last thing.

You must download all of the node sub-types available on the VIRL host to VM Maestro:

  • Select from the menu ‘File‘, then ‘Preferences‘, then ‘Node Subtypes‘.
  • Select ‘Restore Defaults‘, then ‘OK‘, then ‘Apply’.
  • Select ‘Fetch from Server‘, then ‘OK‘.
  • Select ‘OK‘ to finish.

Do these steps anytime new sub-types are added to your VIRL host.

End of Installation

 

VIRL Virtual Internet Routing Lab topology
VIRL Virtual Internet Routing Lab topology

Happy studies!