Cisco IOS-XR(ASR-9k) Router emulation in VirtualBox and Integration with GNS

Recently, I needed to use some advanced features of the Cisco IOS-XR router within the GNS topology. However, GNS doesn't have any ASR 9k series router and also, getting the IOS-XR iso/bin image is very difficult. I decided to use IOS-XRv software to emulate the VM in Oracle virtual box. However, the implementation drove me nuts. It ain't so easy as it looks.

Here are the proper steps which ensure IOS-XR router emulation without any issues.  

To emulate cisco asr9k router in VirtualBox for GNS, follow these steps:
  1. Download  asr9k ova image from the link: https://upload.cisco.com/cgi-bin/swc/fileexg/main.cgi?CONTYPES=Cisco-IOS-XRv. You need to provide Cisco credentials (or register if not present)
  2. Install & configure VirtualBox, follow the link: http://www.if-not-true-then-false.com/2010/install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/comment-page-3/
    Alternatively, follow these two steps:
    1.    Install VirtualBox rpm:     rpm -Uvh VirtualBox-4.3-4.3.20_96996_el6-1.x86_64.rpm
  3. Launch VirtualBox & import the asr9k ova image downloaded in step1. Follow the steps in link: http://www.noshutdown.ma/ios-xrv-step-step-install-gns3-integration/
Few Important Points to be noted during IOS XR emulation via ova image in VirtualBox & integration with GNS:
    1. Launch GNS & Virtual Box as ROOT.
    2. Use Network adaptor as host-only-adaptor in VM.( U need to first add host-only-adaptor from preferences-> network)
    3. Provide all the available Graphics memory for each VM.
    4. Use OS as Type=Linux & Version=Other Linux(64bit)
    5. Enable Serial Port=Com1, mode=host pipe
    6. In GNS, from preferences-> VirtualBox-> VirtualBoxGuest subtab, add the VM with following options:
        1. Enable Console Support
        2. Start in headless mode(Without GUI)  
    7. Add the VirtualGuest in GNS, start & console to it from GNS. Then it will prompt from root-system username & password. Enter any arbitrary username (For e.g. you own name )
    8. Enter password as [hit delete button] [any_arbitrary_password]
    9. After Configuring the IPs/Interfaces in IOS XR, Delete & re-create links to make the connectivity working.
    10. To Increase the no of Interfaces in IOS XR, click on Router-> Configuration, Change the NICs. After this stop the IOS XR router & start.

That's all you need to do to leverage IOS-XR functionality in GNS. 

Comments

Sudeb Das said…
https://community.gns3.com/community/forum/blog/2015/08/24/ios-xr-on-gns3-vmbox-ping-working
Unknown said…
How about proper steps on Windows 7, I have run from one issue to another, it starts on VM but does not start on GNS3.
Unknown said…
I have added asr 9k in gns3.I have added total 3 interfaces.But in CLI ,I can only se Gi 0/0/0/0.Where are the other two interfaces ?

Unknown said…
integrate that in GNS virtualbox vm section and make sure you tick the allow gns3 to use any confgured.... under network tab
varaynya.c said…
How do i attach these adapters to TenGigE of the ASR router?
varaynya.c said…
How do i attach these adapters to TenGigE of the ASR router?
John Graue said…
I followed all steps, brought up the XRv, but there is no commands for ASR9k. Just L3 XR commands. For example I was not able to configure Spanning Tree. Any idea if there is a specific ASR9k ova or VMDK?
John Graue said…
BTW, thanks for the post :)


For antivirus protection call toll free now at +1 (877) 822 6231 - facing virus issues at home or office computer/laptop get instant support for antivirus protection
The arris router setup process begins with accessing the arris router setup wizard on your
web browser. On more information arris setupplease visit!!
The Linksys Extender Login process deals with accessing the linksys extender login page so as the linksys extender setup wizard can be gained access to for network configuration and more. The extender login page can be accessed using the default URL online on your web browser. Visit the website for more information.
Kale Johnson said…
In some cases, your Epson printer runs out of dark ink during a significant venture. What's more terrible is that you don't have an extra dark Epson ink cartridge or the additional chance to buy one. At this time, Go to the Control Panel and select Printers and Devices, then you must find and then seek for right-click your printer from the list of devices and click on properties, Go to Ink set and select Color, and last, Go to the Color Setting option and click Apply. Users keep on facing technical issues like Epson Printer Print without Black ink, know the issues.