12/1/2021

Csr1000v Virtualbox

README-CSR1000v.md iosxeiso2vbox.py is a tool to create an IOS XE Vagrant VirtualBox box from an IOS XE ISO image. The ISO will be installed into a VM, booted and configured. It can then be used as a box within Vagrant to bring up an IOS XE router that is fully configured to. I'm wondering if this a limitation with CSR1000V and VirtualBox integration mostly in encapsulating non-native vlans. Reason i used VirtualBox is my host machine a MacOS.

  1. Csr1000v Virtualbox No Interfaces
  2. Csr1000v Virtualbox Download
  3. Cisco Csr1000v Virtualbox
  4. Csr1000v Virtualbox Install
  5. Csr1000v Virtualbox Mac

This post is a brief translation of my previous post published in Chinese. It introduces how to install Cisco CSR1000v on GNS3, which provide a platform for various labs, such as DMVPN, FlexVPN, Performance routing, multicast, OTV, MPLS, VPLS and etc.

I finished writing 4 FlexVPN labs by far, but in Chinese. I will gradually translate them into English.

  • CSR1000v Overview (VM requirements, evaluation license, supported features and etc.): http://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/configuration/csr1000Vswcfg/csroverview.html
  • CSR1000v FAQ: http://www.cisco.com/c/en/us/products/collateral/routers/cloud-services-router-1000v-series/qa_c67-729558.html
  • VirtualBox (free): I am using v5.0. Download link: https://www.virtualbox.org
  • GNS3 (free): I am using mac v1.4.0 Download link: https://www.gns3.com/software/download
  • CSR1000v (free): ISO or OVA version. I am using ISO (csr1000v-universalk9.03.16.01a.S.155-3.S1a-ext.iso). Download link: https://software.cisco.com/download/release.html?mdfid=284364978&softwareid=282046477&release=3.16.1aS&relind=AVAILABLE&rellifecycle=ED&reltype=latest

The following installation uses ISO.

  1. Install VirtualBox (not introduced in this post)
  2. Install GNS3 (not introduced in this post)
  3. Create VM on VirtualBox with following specs:
  • OS: Other Linux (64-bit)
  • RAM: 2.5-4GB, I tried 2GB it worked as well
  • Hard disk: 8GB IDE
  1. Upon finishing creation and before power on the VM, open ‘Settings’ and add the CSR ISO file (csr1000v-universalk9.03.16.01a.S.155-3.S1a-ext.iso) in ‘Storage’.
  1. Open ‘Settings’ and configure adapters under ‘Network’. I configured ‘Adapter 1’ as ‘Bridged’ mode for sake of obtaining DHCP. Enable the rest adapters but keep the settings as default ‘Not Attached’
  1. Power on the VM and CSR will be automatically installed.
  1. Upon finishing the installation, CSR VM will automatically reboot. ‘Router>’ prompt will show after installation being completed. Since Adapter 1 is configured as attached. It should have ‘up’ status.

Csr1000v Virtualbox No Interfaces

  1. Add the newly built CSR VM to GNS3, under GNS3 ‘Preferences’. For MAC ‘Preferences’ sits under ‘GNS3’ menu; while it may be under ‘Edit’ menu for Windows.Select ‘linked base VM’, so that we can drag and drop multiple CSR instances based on one VM built in VirtualBox.
  1. Edit CSR VM template in GNS3 and tick ‘Enable remote console’ under ‘General settings’ tab. Adapters can be modified under ‘Network’ tab – means you can add additional ports here.
Virtualbox
  1. Shut down CSR VM in VirtualBox first (it will cause error in GNS3 if not shut down the VM in VirtualBox) and then drag-n-drop CSR VM from GNS3 to use. Since ‘linked base’ has been configured before, we can drag and drop multiple CSR instances to use. The default VM symbol is a computer, but we can change it to router symbol.
  1. Shut down CSRs from GNS3 first before adding any cables. Configure management interface IP (using Adapter 1 i.e. interface G1) and telnet. Happy labbing~!

I particularly like using lab to understand how things work, such as protocols and concepts, which may appear abstract when first look, instead of just remembering configuration. Configuration syntax can always be Googled, but concepts and protocols are universally applicable. In addition, it is the new concepts that constitutes new technology, but not the configuration details.

In this sense, verify, observe and understand results are much more important than configuration itself in lab study. This approach also import in CCIE exams and real work. Step-by-step verification and troubleshooting also help mitigate human errors and avoid mess up in the end – all configuration has been done, but not working then start random troubleshooting.

It has been quite some time since the Cisco’s Cloud Services Router CSR1000v was publicly released. CSR1000v is a virtual router or in other words it run’s the IOS software inside a Virtual Environment (in a Virtual Machine), and that’s not all because it can run the latest IOS XE software which is the successor of the classic IOS software. Basically all the IOS XE releases which start from 3.x correspond to the new classic IOS 15.x releases, however we will not talk this time about the mappings of IOS to IOS XE software version, if you are interested you can visit the official link on Cisco.

Now running CSR1000v on GNS3 is not difficult as long as you know what you are doing, all you need is some basic knowledge of Virtual Machines and how to install one, because the CSR1000v run’s as a VM instance and we will map this instance with GNS3 so that in the background the CSR run’s on a VM but in GNS3 we can use it as a normal Router by creating different kind of network topologies to your needs.

What we need is, VirtualBox, GNS3, and the ISO image of CSR1000v. The image you can simply download from Cisco Products page, of course you need to have a user account, but I believe even with a free guest account it’s still possible to download the image file, give it a try.

Today the latest IOS XE for CSR1000v is 3.12 so I downloaded this one and proceeded with installing it on VirtualBox. See the VM settings below on the picture, I decided to give it 3Gig of RAM to the VM which should be a minimum requirement for running the CSR1000v, having a more powerfull machine and giving it more memory would tackle for better performance of the VM for sure, that’s up to you. Make sure the IDE Secondary Master is configured to boot the CSR image from your disk at the beginning until it is fully installed and than you can remove this one. Network adapters, according to your needs you can add or remove but just make sure you have them configured settings as per the picture below:

After starting the VM machine you should see the installation progress, there’s nothing you have to do at this time, if you see an output similar to the one below that’s a sign you are in a good way:

Csr1000v Virtualbox Download

Csr1000v Virtualbox

Next thing you should see as the installation is finishing is the System Configuration Dialog, if error’s doesn’t show up until now it means the CSR1000v software was installed successfully as per the picture below:

Now you can start and play with the IOS XE based Cloud Services Router (CSR1000v).

After successfully installing the CSR on VirtualBox we would like to run it and use on GNS3, and that’s the easiest part, open GNS3 and go to Edit>Preferences, click on the VirtualBox section and you General Settings tab and VirtualBox Guest tab. I would suggest at this point to stay on General Settings tab and click on the “Test Settings” button so that GNS3 detects your current VirtualBox settings, after completing this step click on the VirtualBox Guest tab and configure the settings as per below example on the picture (hint: click the Refresh VM List if the VM List doesn’t show the CSR1000v).

By now we should be able to fire up the CSR1000v and use in GNS3 via the VirtualBox guest icon on the Devices List in GNS3. As you can see on the Picture below I have added one CSR1000V and a Cisco 2691 Router and connected them together for testing purposes:

After starting both the Routers on GNS3 you can access the CSR1000v via console the same way as you would with other types of Routers on GNS3, in this way you don’t have to work on the VirtualBox console anymore instead use your preferred console access application. Picture is an example of show version command I ran on the CSR1000v from console on GNS3:

This is a good way to have CSR1000v working via GNS3 because a lot of people are struggling to have them working but seem’s like it’s not so hard to do it.

Cisco Csr1000v Virtualbox

And last, for all CCIE R&S candidates this would be very beneficial since the v5.0 LAB exam runs based on IOS XE software, so having CSR1000v running on your own is the best thing you can do without having to buy Real devices. And most of the CCIE R&S training vendors as I see run the CSR1000v on their training sessions, so I believe having a powerful machine running Virtualization you can create your own lab topologies or run the topologies from the Training vendors without any problem using the CSR1000v.

Csr1000v Virtualbox Install

NOTE: VirtualBox is not officially a supported Hypervisor for CSR1000v according to Cisco, so you should expect having issues from time to time. In order to have a fully operational CSR1000v use one of the official supported Hypervisors by Cisco like VMware ESXi, Citrix XenServer, Microsoft Hyper-V or KVM.

Csr1000v Virtualbox Mac

Running CSR1000v on a VMware ESXi Hypervisor ›

Categories: General Networking