DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of...

17
WHAT IS CISCO VIRL Whether you are a networking professional or a student trying to learn and pass Cisco certifications, one of the challenges is getting your hands on the equipment. It is always a chicken or egg problem. You will have access to bunch of routers and switches after you landed a job but how do you gain the experience necessary to land on your dream job? There is no doubt that the best way to learn a technology is practicing in a lab. Without spending hundreds of dollars on eBay (like I did) buying used routers and switches to practice, not mentioning the space and power you’ll need to keep that physical rack running, people started looking for a solution to virtualize the lab environment. Cisco Virtual Internet Routing Lab (VIRL) is a software tool Cisco developed to build and run network simulations without the need for physical hardware. Under the hood, VIRL is an OpenStack-based platform that runs IOSv, IOSvL2, IOS XRv, NS-OSv, CSR1000v, and ASAv software images on its built-in hypervisor. VIRL provides a scalable, extensible network design and simulation environment using the VM Maestro GUI. Recently, I have seen extensive development and improvement made on the browser based operations using HTML5. If you want to run non-Cisco virtual machines, VIRL also has extensive ability to integrate with third-party vendor virtual machines such as MS Windows, Juniper, Palo Alto Networks, Fortinet, F5 BigIP, Extreme Networks, Arista, Alcatel, Citrix and more. VIRL comes in two different editions – Personal Edition and Academic Edition. Both have the same features except the Academic Edition is cheaper. At the time of writing, Academic Edition costs $79.99 USD per year and Personal Edition costs $199.99 USD per year. VIRL has a license limit to simulate up to 20 Cisco nodes at a time. You may pay extra $100 USD to upgrade to 30 Cisco nodes maximum. To qualify purchasing the Academic Edition, you must be faculty, staff and students of any public or private K-12 institution or Higher Education institution. Cisco VIRL is community-supported and is designed for individual users. For enterprise users who want TAC support, in-depth documentation, training and more, there is Cisco Modeling Labs (CML), an enterprise version of VIRL. Of course the CML costs much more. FORMS OF INSTALLING VIRL There are three main ways you can install and run a Cisco VIRL lab – installing as a Virtual Machine, on bare-metal hardware, and on the cloud. It is often a better option if you have access to enterprise-grade VM environment with high performance CPU, memory and storage system in a datacenter. If you just want to try VIRL or having a mobile lab that always goes with you, you can also install VIRL on your PC or Mac as a VM running in parallel with your existing system. Read Cisco VIRL Installation on VMware ESXi. The second option is installing VIRL on a dedicated bare-metal computer to achieve maximum performance. If you are a student trying to learn network technologies, and you don’t need to simulate as many nodes at the same time, the second option may work better for you. The third option is hosting your Cisco VIRL lab on the cloud. If you don’t have any servers or PCs to use, or you don’t want to deal with any hardware and the up keeping work, you can rent bare-metal servers on the cloud and pay an hourly rate as you go. “Packet” (Packet.net) is a cloud based bare-metal and container hosting company that Cisco partnered with. It provides a fast and powerful on-demand bare-metal platform. In this session, I’ll be focusing on a step-by-step tutorial installing Cisco VIRL on Packet.net. DEPLOYING CISCO VIRL ON PACKET.NET

Transcript of DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of...

Page 1: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

WHAT IS CISCO VIRL

Whether you are a networking professional or a student trying to learn and pass Cisco certifications, one of the challenges is getting your hands on the equipment. It is always a chicken or egg problem. You will have access to bunch of routers and switches after you landed a job but how do you gain the experience necessary to land on your dream job? There is no doubt that the best way to learn a technology is practicing in a lab. Without spending hundreds of dollars on eBay (like I did) buying used routers and switches to practice, not mentioning the space and power you’ll need to keep that physical rack running, people started looking for a solution to virtualize the lab environment.

Cisco Virtual Internet Routing Lab (VIRL) is a software tool Cisco developed to build and run network simulations without the need for physical hardware.

Under the hood, VIRL is an OpenStack-based platform that runs IOSv, IOSvL2, IOS XRv, NS-OSv, CSR1000v, and ASAv software images on its built-in hypervisor. VIRL provides a scalable, extensible network design and simulation environment using the VM Maestro GUI. Recently, I have seen extensive development and improvement made on the browser based operations using HTML5. If you want to run non-Cisco virtual machines, VIRL also has extensive ability to integrate with third-party vendor virtual machines such as MS Windows, Juniper, Palo Alto Networks, Fortinet, F5 BigIP, Extreme Networks, Arista, Alcatel, Citrix and more.

VIRL comes in two different editions – Personal Edition and Academic Edition. Both have the same features except the Academic Edition is cheaper. At the time of writing, Academic Edition costs $79.99 USD per year and Personal Edition costs $199.99 USD per year. VIRL has a license limit to simulate up to 20 Cisco nodes at a time. You may pay extra $100 USD to upgrade to 30 Cisco nodes maximum. To qualify purchasing the Academic Edition, you must be faculty, staff and students of any public or private K-12 institution or Higher Education institution.

Cisco VIRL is community-supported and is designed for individual users. For enterprise users who want TAC support, in-depth documentation, training and more, there is Cisco Modeling Labs (CML), an enterprise version of VIRL. Of course the CML costs much more.

FORMS OF INSTALLING VIRL

There are three main ways you can install and run a Cisco VIRL lab – installing as a Virtual Machine, on bare-metal hardware, and on the cloud.

It is often a better option if you have access to enterprise-grade VM environment with high performance CPU, memory and storage system in a datacenter. If you just want to try VIRL or having a mobile lab that always goes with you, you can also install VIRL on your PC or Mac as a VM running in parallel with your existing system. Read Cisco VIRL Installation on VMware ESXi.

The second option is installing VIRL on a dedicated bare-metal computer to achieve maximum performance. If you are a student trying to learn network technologies, and you don’t need to simulate as many nodes at the same time, the second option may work better for you.

The third option is hosting your Cisco VIRL lab on the cloud. If you don’t have any servers or PCs to use, or you don’t want to deal with any hardware and the up keeping work, you can rent bare-metal servers on the cloud and pay an hourly rate as you go. “Packet” (Packet.net) is a cloud based bare-metal and container hosting company that Cisco partnered with. It provides a fast and powerful on-demand bare-metal platform. In this session, I’ll be focusing on a step-by-step tutorial installing Cisco VIRL on Packet.net.

DEPLOYING CISCO VIRL ON PACKET.NET

Page 2: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

PLANNING VIRL INSTALLATION ON PACKET.NET

With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build and simulate a more complex and demanding network, where your in-house system would struggle for performance.

Packet.net offers four types of server options: Type 0 through Type 4. Use Cisco VIRL’s resource calculator to estimate the amount of the CPU and memory you would need. To meet VIRL’s minimum system requirements Type 0 would be fine. Type 0 only costs $0.05/hour or $33.60/month, a lot less than most of dedicated server hosting options on the market. It is an extremely cost-effective way to get you started.

For network engineers want to mock up a production network, I recommend Type 1, which has enough CPU and amount memory to simulate up to 30 routers. (More memory is needed to run IOSXRv)

Page 3: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

INSTALLING VIRL ON PACKET.NET

There are two ways of deploying and managing VIRL on Packet.net. You can run VIRL on Packet.net from your existing in-house VIRL server or run VIRL or Packet.net directly from your workstation and laptop.

Before you start, make sure you have a valid VIRL license, and registered a Packet.net account. Generate an API key on Packet.net in your account portal. The API key will be used by the Terraform toolset from Hashicorp to provision and manage the VIRL install on Packet.net. The installation examples were based on VIRL version 1.2.64.

RUN VIRL ON PACKET FROM YOUR EXISTING VIRL SERVER

This instruction is based on the assumption that you already have a working VIRL server in your environment. You wanted to “borrow” more computing power from Packet.net. You may be struggled by the performance issue on your local VIRL server or just wanted to try out the Cloud deployment option. Here are the steps to follow.

Step 1: Provision a VIRL remote server in UWM

Login to your local VIRL server UWM management console. http://IP-address/. Navigate to “VIRL Server > Remote Server”.

Note: VIRL installation on Packet.net requires you have a valid license and verified by SALT masters. It is a good idea to confirm the SALT status (“VIRL Server > Salt Configuration and Status”) before proceed.

Page 4: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

• API Key: copy and paste from your account on Packet.net• Location: choose a closet datacenter to you to minimize the latency• Machine Type: check Packet.net pricing and machine types. Select a machine type meet your simulation needs.• Dead Man’s Timer: in how many hours the machine shall be terminated by the system.

The DMT (Dead Man’s Timer) is a safeguard to avoid extensive charges in case you forgot terminiating your machine. Default value is 4 hours.

The drawback is that all you data will be lost upon termination. Make sure you back up everything before the timer is up. Read how to import and export VIRL topology files.

Next you need to generate random passwords for your VIRL server or make your own ones.

Click on “Save” and the jobs will be scheduled to run. Press “Refresh” to check status and “OK” to return to the previous screen. Click “Launch” to trigger the provision process on Packet.net. The process takes a while to complete.

You can now see a server instance has been created under your Packet.net account.

Step 2: Access VIRL server on Packet.net

Once your VIRL server has been provisioned by Packet.net, we can access it remotely. The recommended way of accessing the remote VIRL server is using OpenVPN.

Download a free OpenVPN desktop client for Windows or Tunnel Blick for Mac OSX.

Next we go back to your local VIRL’s UWM management GUI and go to “VIRL Server > Remote Server” and click on “Status” tab. Note you won’t be presented with this option until the provisioning tasks finished.

Here you may find all the parameters used to build the VIRL server on Packet.net. Take a note of the OpenVPN access IP address and login credentials at the bottom of Terraform secsion.

Page 5: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

Scroll all the way to the bottom of the page. Download .OVPN profile. Now launch your desktop OpenVPN client and import the .OVPN profile. Double click on the profile to connect the VPN.

Now you have access to the VIRL server hosted on Packet.net. Login the UWM console by going to http://172.16.11.254/. Credentials can be found on your local VIRL server, in “VIRL Server > Remote Server”, Terraform under Status tab. Now you have a fully working VIRL server hosted on Packet.net.

Step 3: Terminate VIRL server on Packet.net

Packet.net starts charging you from the moment the provisioning trigger started. Do not forget terminiating your server after finishing your tasks. Be sure to save all your work before termination or they will be lost.

Go to you local VIRL server UWM, “VIRL Server > Remote Server” and click on “Terminate”.

Page 6: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

Go to your account on Packet.net and confirm the server has been terminated.

As you can see, Cisco has built and automated the provisioning process into VIRL server itself. It made the process a lot easier. If you do not have a local VIRL server, there will be a bit more involved.

RUN VIRL ON PACKET DIRECTLY FROM YOUR WORKSTATION / LAPTOP

If you don’t already have a VIRL server, and wanted to run everything on the cloud, follow the instructions below to deploy VIRL on Packet.net. As you will find that it is a lot more complicated to do this way. Many tools (free) needed to be downloaded and installed on your workstation. And you will need to type quite a few commands.

Before we get started, here are some terms and tools that we are going to use.

Virl_boxcutter: a self-contained “launcher” virtual machine image, used to bring up a VIRL Server on the Packet.net platform.

Vagrant: is used to set up one or more virtual machines by importing pre-made images (called "boxes"), setting VM-specific settings (IP address, hostnames, port forwarding, memory, etc.) and running provisioning software like Puppet or Chef.

The “launcher” uses Vagrant (from Hashicorp) to control the operation of the “launcher VM”. Vagrant offers free plugin support for Virtualbox and for VMware AppCatalyst.

Step 1: Install tools on your workstation or laptop

Install either Virtualbox for Windows, Mac or Linux, or Vmware AppCatalyst for Mac. (I used Virtualbox in this example)

Install Vagrant for Windows, Mac or Linux. (For the current VIRL release, Windows users should install Vagrant 1.7.4. 1.8.x is not supported.)

Once both tools are loaded, install Vagrant plugin from Windows PowerShell.

vagrant plugin install virtualbox orvagrant plugin install vagrant-vmware-appcatalyst

Page 7: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

It’ll download a folder called “virl_boxcutter” from GitHub to your local computer. Browse to the “virl_boxcutter\salt” directory.

Use Notepad or any text editor and create a text format file named “minion.pem”. Copy and paste your license key from “xxxx.virl.info.pem”. Make sure the “minion.pem” file does not have a “txt” extension.

In “virl_boxcutter” directory, rename “id.conf.orig” file to “id.conf”. Update the license ID and append domain name. The “id” field must be set to be the value from your VIRL license key xxxx (xxxxxxxx.virl.info.pem without “virl.info.pem” extensions). The “append_domain” field is the domain field from your VIRL license key “virl.info” or “virl30.info”. Save the changes and close. Here is how it looks like on mine. (I have a 30-node license)

Make a copy of “settings.tf.orig” and rename it to “settings.tf”. Open with a Notepad. You will need to update the “default” values to match your environment.

Step 2: Prepare “virl_boxcutter” virtual machine

Launch SmartGit and “clone” the repo at

Step 3: Launch Vagrant and build virl_boxcutter VM

On Windows PowerShell, go to “virl_boxcutter” directory. Issue the command “vagrant up”. It will launch Vagrant and pull down virl_boxcutter virtual machine, execute the provisioning scripts.

I ran into an issue when I issued the “vagrant up” command. My Vagrant version 1.7.4 does not support the latest Virtualbox 5.1. I had to downgrade to Virtualbox 5.0.

Install a Git client (i.e. SmartGit)

https://github.com/Snergster/virl_boxcutter

id: 2D03FXXXappend_domain: virl30.info

vagrant up

packet_api_key: copy and paste the API key from your account at Packet.net

packet_machine_type: baremetal_1 through 4. Check Packet.net for machine types and pricing

dead_mans_timer: automatic machine termination in number of hours, default is 4 hours

packet_location: where you want your VIRL server to be hosted from the available Packet.net data centers. EWR1 == New York, SJC1 == San Jose, CA, AMS1 == Amsterdam.

salt_master: specify SALT master datacenter

packet_project_id: by default Packet.net automatically creates a new project each time, if you don’t want this, insert project id and change the two variables in virl.tf

Page 8: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

Once I resolved the issue, “vagrant up” started working. It takes a while to complete.

Step 4: Login virl_boxcutter VM and prepare for VIRL launch

Now virl_boxcutter virtual machine has been built. To login to it, we issue the command “vagrant ssh”. On a Windows computer, it does not have a native SSH client. Vagrant shows you how to use a SSH client to login instead.

Here we use Putty as our SSH client. Create a session host IP: 127.0.0.1 over port 2222. Don’t forget attaching the private key.

Username: vagrantPassword: vagrant

PS D:\ISO\VIRL\virl_boxcutter> vagrant ssh`ssh` executable not found in any directories in the %PATH% variable. Is anSSH client installed? Try installing Cygwin, MinGW or Git, all of whichcontain an SSH client. Or use your favorite SSH client with the followingauthentication information shown below:

Host: 127.0.0.1Port: 2222Username: vagrantPrivate key: D:/ISO/VIRL/virl_boxcutter/.vagrant/machines/default/virtualbox/private_key

Page 9: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

Step 5: Provision VIRL server on Packet.net

This command will instruct the boxcutter to start provisioning on Packet.net and install the VIRL server.

Expect it to take ~30 minutes. When it completes, the system will report the IP address of your Remote VIRL server and login info.

Now we are connected to the boxcutter. Go in to “virl_packet” directory.

cd virl_packet

Edit the password.tf file to suite your needs.

vi password.tf

Edit or review the “terraform.tf” file

Vi terraform.tf

Once done, validate the “terraform.tf” file and make sure there is no errors.

terraform plan .

If you missed the screen, you can bring up the information again using command “terraform show”.t

terraform show

To access the VIRL server on Packet.net, you can go to the UWM on web browser or SSH directly to it.

root@<ip address> or ssh virl@<ip address>

terraform apply .

Page 10: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

Step 6: Terminate VIRL server on Packet.net

To suspend the virl_boxcutter virtual machine. use “vagrant halt”.

Use OpenVPN to connect to the VIRL server and the simulated nodes. You can find the OpenVPN configuration file under virl_packet directory after VIRL server has been provisioned. You can import it into your OpenVPN desktop client.

To terminate the server on Packet.net, use “terraform destroy .” Go to your Packet.net account to confirm the server has been terminated so that it does not generate fees for you.

Next time to launch the VIRL server on Packet.net, in Windows PowerShell and send command “vagrant up”. SSH to Vagrant by “vagrant ssh” or using Putty. “terraform plan .” to prepare and “terraform apply .” to deploy the serve on Packet.net.

A heck of fun!

I wish Cisco would develop a more streamlined process without having to install VirutalBox and Vagrant on the computer. For those having trouble or do not want to install these tools on the computer, you might want to consider setting up a local copy of VIRL to just use its remote VIRL deployment feature. Since it is the server on Packet.net doing the hard work simulating routers, you shouldn’t be too concerned about your local computer’s performance.

vagrant halt

Page 11: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

Also, verify your VIRL server can reach one of the Cisco SALT licensing servers on Internet.

Cisco offers multiple SALT instances in the U.S. as well as in E.U. regions. Choose the one that is close to you.

We first try to ping the SALT server to make sure it is alive. Next, we Telnet to TCP port 4505 and 4506 to verify that your Internet firewall allows outbound traffic on those ports.

virl@virl:~$ ping google.com

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

virl@virl:~$ ping us-1.virl.infoPING us-1.virl.info (173.36.210.196) 56(84) bytes of data.64 bytes from ejk-toast.cisco.com (173.36.210.196): icmp_seq=1 ttl=128 time=40.4 ms64 bytes from ejk-toast.cisco.com (173.36.210.196): icmp_seq=2 ttl=128 time=49.6 ms^C--- us-1.virl.info ping statistics ---3 packets transmitted, 2 received, 33% packet loss, time 2003msrtt min/avg/max/mdev = 40.474/45.072/49.671/4.603 ms

virl@virl:~$ telnet us-1.virl.info 4505Trying 173.36.210.196...Connected to us-1.virl.info.Escape character is '^]'.^]

telnet> quitConnection closed.virl@virl:~$virl@virl:~$ telnet us-1.virl.info 4506Trying 173.36.210.196...Connected to us-1.virl.info.Escape character is '^]'.^]

telnet> quitConnection closed.virl@virl:~$

PLANNING VIRL INSTALLATION ON PACKET.NET

Prepare for license activation

Check if you have Internet connectivity by pinging Google.com.

Page 12: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

If you got results similar to above, you are good to go to the next step. Check if “KVM acceleration” can be used.

virl@virl:~$ sudo kvm-okINFO: /dev/kvm existsKVM acceleration can be usedvirl@virl:~$

If your KVM check fails as shown below, go to the troubleshooting session for more information.

virl@virl:~$ sudo kvm-ok INFO: Your CPU does not support KVM extensions KVM acceleration can NOT be used.

Restart NTP service.

sudo service ntp stopsudo ntpd –gqsudo service ntp start

The next step is to make sure NTP server is configured and system time is being synchronized.

SSH to the VIRL server. Make sure NTP is configured and the system is able to synch time. Verify the NTP service configuration file.

Use the NTP query command to ensure that NTP peering is established. It may take several minutes for the NTP daemon to establish peers. You may need to reenter the NTP Query command multiple times over the period of several minutes before a peer is indicated. You should see something like this when NTP peers are established. Note VIRL displays GMT time instead your local time.

If you passed all the tests above, you can attempt to activate the VIRL license.

sudo vi /etc/ntp.conf

You should find the following NTP servers defined at the bottom of the file. If not, add them.

server pool.ntp.org iburstserver pool.ntp.org iburstserver pool.ntp.org iburstserver pool.ntp.org iburst

Page 13: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

License Activation

If you haven’t already, follow the instruction in the previous chapter (Planning VIRL Installation – Obtaining VIRL Installation Images} and download your license key from your Cisco VIRL account portal. The VIRL license Salt-Key has the format “key-id.domain.pem”, for example “2D03F127.virl30.info.pem”.

Now we need to access the VIRL server’s management console to complete the remaining tasks. Fortunately it is all web-browser based. On any computer that has network connectivity to the VIRL server, could be your workstation, or any computer on the network.

Open a web browser such as Firefox and navigate to the URL using your VIRL server’s IP address. In my case it is http://192.168.16.80/. If you are not sure what IP your VIRL server has, double click on the icon named “ip-address” on VIRL’s desktop. You IP is displayed after “inet addr:” in a xterm window.

Click “User Workspace Management” under “System Operations”. Your default username and password to login is:

Username: uwmadminPassword: password

Page 14: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

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

On the left side menu, select “VIRL Server > Salt Configuration and Status”. It shows the default configuration and some errors. Expect to see those errors until your VIRL license is activated. You may ignore them.

Go and click on “Reset keys and ID”. In the next screen you’ll enter the licensing servers and key information. Here is an example of mine.

Note: I have seen the SALT server domain names changed several times over last year. If you are unable to contact the SALT servers, check Cisco VIRL office website for the latest.

Click “Reset”. It’ll take a while for VIRL to check in with the SALT server to activate its license. Sometimes it fails for the first attempt. You can click on “Check status now” to refresh the status

• Salt ID and domain: license file name without “.pem”.• Customer e-mail Address: your email address• List of Cisco salt master: insert multiple SALT server separated by comma.

• Master sign public key: keep default value• Minion private RSA key in PEM format: open your .pem file in any text editor such as Notepad, copy & paste the entire content here.

Page 15: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

sudo apt-get update # Fetches the list of available updates sudo apt-get upgrade # Strictly upgrades the current packages sudo apt-get dist-upgrade # Installs updates (new ones)

Ubuntu OS Update

VIRL runs on Ubuntu operating system. Ubuntu is a Debian-based Linux operating system. Just like you would update your Windows and Mac OS for security patches, it is a good idea to update the Ubuntu OS as well. Use the following commands to update.

VIRL must have Internet access and be able to call home to the Cisco Salt Stack to activate VIRL license. It re-evaluates your license every 7 days.

Page 16: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

You may restart VIRL related services if you did not see the results expected.

To verify the license configuration in command line interface:

Final verifications

After the OS has been updated, it is necessary to run a few more verifications to conclude that the VIRL server is ready for use.

SSH to the VIRL server. Display the status of the OpenStack Neutron agents. Verify that each Neutron agent has “alive” column shows ‘:-)’. There should be a minimum of four Neutron agents present.

virl@virl:~$ sudo reboot now

virl@virl:~$neutron agent-list

virl@virl:~$sudo virl_health_status | grep listening

virl@virl:~$sudo virl_health_status | grep -A 4 -e hostid -e product

virl@virl:~$sudo service virl-std restartvirl@virl:~$sudo service virl-uwm restart

Reboot the VIRL server after OS update

• Linux-bridge-agent• Metadata agent• DHCP agent• L3 agent

Page 17: DEPLOYING CISCO VIRL ON PACKET · PLANNING VIRL INSTALLATION ON PACKET.NET With the performance of resourceful bare-metal system Packet.net offers, you can quickly and easily build

RUN VIRL ON PACKET DIRECTLY FROM YOUR WORKSTATION / LAPTOP

For your convenience, here is a list of credentials used during our VIRL installation process. Please note username / password are case sensitive.

ABOUT THE AUTHOR

Jack Wang, CCIE #32450, is the author of Cisco VIRL Book, Network Solution Architect, Technical Writer and Consultant at Speak Network Solutions. He has been designing and implementing enterprise and large-scale service provider networks as well as teaching and blogging about advanced technologies. His current focus includes software defined networking (SDN), data centers, Amazon AWS cloud integration, wireless, WAN architectures and design. Jack holds B.S. in Engineering and M.S. in Computer Science. Read full bio.

It concludes my tutorial on how to install Cisco VIRL server on Packet.net.

Congratulations! Your VIRL server is ready.

SSH to VIRL Server: virl / VIRL (username / password)

User Workspace Management (UWM) admin: uwmadmin / password

User Workspace Management (UWM) guest: guest / guest

Live Visualization: guest (or simulation owner's user-id) / guest (or simulation owner's password)

VM Maestro: guest / guest

SSH to Vagrant: vagrant / vagrant