Nokia VSR Single node

Versions this guide is based on Single Nokia VSR node deployment:

EVE Image Foldename Downloaded Filename Version vCPUs vRAM Console NIC Type Interfaces Hdd Format QEMU version
timos-ng-21.10.R2.L1 Nokia-VSR-KVM-21.10.R2.zip 21.10.R2 4 6144 telnet virtio-pci 10 hda 5.2.0
timos-ng-22.2.R2.L1 Nokia-VSR-KVM-22.2.R2.zip 22.2.R2 4 6144 telnet virtio-pci 10 hda 5.2.0
Notes
Template: If you have the EVE Professional v5.0.20 or Community v5.0.19 or earlier, you have to update your EVE templates, and icons.Obtain the Nokia Timos templates, icon and config_script. Please follow the update GIT link before you start deploy Nokia Timos VSR node!  GIT Update for templates, icons and config scripts.

Other versions of Timos: VSR 19, 20, 21 also are supported following by instructions below. Current image Nokia-VSR-KVM-21.2.R2 and License is provided by Nokia.

EVE Image foldername: For EVE-NG Qemu devices mandatory is the first part of foldername : [timos-ng-] . After the hyphen (-) you can add any of your image version or custom name (License nr). Example for version 22.2.R2 with License, VSR foldername will be: [timos-ng-22.2.R2.L1]. L1 means, it is licensed image with my first Nokia image license. You can create several images with different license loaded in it. Example for another image foldername is: [timos-ng-22.2.R2.L2]. L2 is another license for your Nokia node image.

VSR License: Each Nokia VSR node has its own “UUID-locked” license file, all the license records in that license file are locked to a specific UUID value (readable as cleartext), and this license file is intended for the specific VSR system that runs in a KVM with that UUID value. Nokia VSR image is not in use if you have not a valid license for it. Please contact to your sales or support representative.

Creating VSR image:

Instructions
1. SSH to EVE and login as root, from cli and create image directory in the EVE’s /opt/unetlab/addons/qemu:

mkdir /opt/unetlab/addons/qemu/timos-ng-22.2.R2-L1

2. Extract/Unzip the Nokia-VSR-KVM-22.2.R2.zip

Unzip downloaded Nokia-VSR-KVM-22.2.R2.zip to obtain sros-vsr.qcow2. You can either use your native host (windows PC), or use EVE cli to unzip Nokia image zip package.
In the example below, Nokia-VSR-KVM-22.2.R2.zip is extracted by native PC using unzip tool, and necessary image is located in directory: Nokia-VSR-KVM-22.2.R2\vm\VSR-KVM\sros-x86-64\sros-vsr.qcow2.

3. Upload the sros-vsr.qcow2 image into the EVE using, for example, FileZilla or WinSCP.

4. Rename it to: hda.qcow2

cd /opt/unetlab/addons/qemu/timos-ng-22.2.R2-L1
mv sros-vsr.qcow2 hda.qcow2
root@eve-ng-master:/opt/unetlab/addons/qemu/timos-ng-22.2.R2-L1# ls
hda.qcow2

5. Fix permissions:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Single Nokia VSR node template settings:

Template area Value Notes
UIDD Customizable. Releated to your VSR license. Very important. It is related to your Nokia VSR license. Usually it is first part of your license text string. Example for this Nokia license UIDD is: 4a2aa800-282d-45dc-a0b3-ce0c05ab9df. It must be set in VSR template before you start the node.
Management Address Default template value IP: 10.1.1.1/24

Customizable IP per your network needs.

Management IP address field is used to connect your VSR to the management network. During the boot the VSR, management IP can be used as FTP, SFTP or TFPT server to obtain and boot VSR from license located on remote server.
Timos Line Default template value: slot=A chassis=sr-1s card=cpm-1s slot=1 card=xcm-1s mda/1=s18-100gb-qsfp28

Customizable value per your VSR setup and Nokia documentation.

This line can be customized per Nokia documentation for VSR boot parameters and version settings. Please refer the Nokia vSIM Guide v22.2.R1
Timos License Path Default template value: cf3:lic.

Customizable. The  cf3:lic value is used to boot VSR from preloaded license in the VSR image.

To boot VSR from remote License, edit the license path with management IP address and protocol respectively.

Preloaded license path in the VSR:

cf3:lic

Remote license path is related to the configured Management IP:

ftp://admin:admin@10.1.1.1/lic.tx

tftp://10.1.1.1/lic.txt

Permanent Nokia license deployment into VSR node:

License deployment
1. SSH to the EVE and login as root, from cli and navigate to the newly created VSR image directory.

root@eve-ng-master:~# cd /opt/unetlab/addons/qemu/timos-ng-22.2.R2-L1
root@eve-ng-master:/opt/unetlab/addons/qemu/timos-ng-22.2.R2-L1# ls
hda.qcow2
root@eve-ng-master:/opt/unetlab/addons/qemu/timos-ng-22.2.R2-L1# 

2. Load license in the VSR. After command vi /lic, use vi command i for insert. Copy/Paste your license to CLI (green) then hit key “esc” and save and close your image with vi command “:wq!“. Type exit to finish work with guestfish.

root@eve-ng-master:~# cd /opt/unetlab/addons/qemu/timos-ng-22.2.R2-L1
eve-guestfish -a hda.qcow2
><fs> run
100% ⟦▒▒▒▒▒▒▒▒â---Output Ommitted---
><fs> mount /dev/sda1 /
><fs> touch /lic
><fs> vi /lic
###Hit letter i for insert###
###Copy/Paste your Lic Key###
4a2aa800-282d-45dc-a0b3-ce0c05ab9df0 ---Output Ommitted---, the first part of the Lic key is your node UIDD and will be used in template as UUID
"/tmp/libguestfsFUq9tM" 1L, 947C written
###Hit ESC key###
###Save your file and quit###
:wq!
><fs>
###Exit from guestfish##
><fs> exit
root@eve-ng-master:~#/opt/unetlab/addons/qemu/timos-ng-22.2.R2-L1

Single Nokia VSR node configuration:

Single Nokia VSR configuration
1. Login in the VSR, default image login is admin/admin:

Login: admin
Password: admin
A:vSIM#

2. Configure powershell for VSR:

A:vSIM# configure system power-shelf 1 power-shelf-type "ps-a4-shelf-dc"
*A:vSIM# configure system power-shelf 1 power-module [1..4] power-module-type ps-a-dc-6000
*A:vSIM# show chassis power-shelf
===============================================================================
Power Shelf Summary
===============================================================================
Slot Provisioned Type Admin Operational Zone Input Output
Equipped Type (if diff) State State Mode 
-------------------------------------------------------------------------------
1 ps-a4-shelf-dc up up 1 60A on
===============================================================================
*A:vSIM# show chassis power-shelf 1 power-module
===============================================================================
Power Shelf Summary
===============================================================================
Slot Provisioned Type Admin Operational Zone Input Output
Equipped Type (if diff) State State Mode 
-------------------------------------------------------------------------------
1 ps-a4-shelf-dc up up 1 60A on
===============================================================================
===============================================================================
Power Module Summary
===============================================================================
Slot Provisioned Type Admin Operational Input Zone
Equipped Type (if diff) State State A B 
-------------------------------------------------------------------------------
1 ps-a-dc-6000 up up Y Y 1
2 ps-a-dc-6000 up up Y Y 1
3 ps-a-dc-6000 up up Y Y 1
4 ps-a-dc-6000 up up Y Y 1
===============================================================================

3. Configure Line card:

*A:vSIM# configure card 1 mda 1 mda-type "s18-100gb-qsfp28" level "he1200g+"
*A:vSIM# show card state
###After some time it will come up###
===============================================================================
Card State
===============================================================================
Slot/ Provisioned Type Admin Operational Num Num Comments
Id Equipped Type (if different) State State Ports MDA 
-------------------------------------------------------------------------------
1 xcm-1s up up 1 
1/1 s18-100gb-qsfp28:he1200g+ up up 18 
A cpm-1s up up Active
===============================================================================
*A:vSIM#

4. Configure Line card interfaces:

*A:vSIM# configure port 1/1/c1 
*A:vSIM>config>port# connector breakout c4-10g 
*A:vSIM>config>port# no shutdown 
*A:vSIM>config>port# exit 
*A:vSIM# configure port 1/1/c1/1 
*A:vSIM>config>port# ethernet 
*A:vSIM>config>port>ethernet# exit 
*A:vSIM>config>port# no shutdown 
*A:vSIM>config>port# exit 

*A:vSIM# echo "Router (Network Side) Configuration"
Router (Network Side) Configuration
*A:vSIM# configure router Base 
*A:vSIM>config>router# interface "p1/1/c1/1" 
*A:vSIM>config>router>if# no shutdown 
*A:vSIM>config>router>if# address 192.168.20.20/24 
*A:vSIM>config>router>if# port 1/1/c1/1 
*A:vSIM>config>router>if# no shutdown 
*A:vSIM>config>router>if# exit

*A:vSIM>config>router# interface "system"
*A:vSIM>config>router>if# no shutdown 
*A:vSIM>config>router>if# exit all 

*A:vSIM# admin save 
Writing configuration to cf3:\config.cfg
Saving configuration ... OK
Completed.
A:vSIM#

5. Show Commands:

A:vSIM# show port
===============================================================================
Ports on Slot 1
===============================================================================
Port Admin Link Port Cfg Oper LAG/ Port Port Port C/QS/S/XFP/
Id State State MTU MTU Bndl Mode Encp Type MDIMDX
-------------------------------------------------------------------------------
1/1/c1 Up Link Up conn 100GBASE-LR4*
1/1/c1/1 Up Yes Up 9212 9212 - netw null xgige
---Output Omitted---
===============================================================================
Ports on Slot A
===============================================================================
Port Admin Link Port Cfg Oper LAG/ Port Port Port C/QS/S/XFP/
Id State State MTU MTU Bndl Mode Encp Type MDIMDX
-------------------------------------------------------------------------------
A/1 Up Yes Up 1514 1514 - netw null faste MDI
A/3 Down No Down 1514 1514 - netw null faste 
A/4 Down No Down 1514 1514 - netw null faste 
===============================================================================

A:vSIM# show router interface ipv4
===============================================================================
Interface Table (Router: Base)
===============================================================================
Interface-Name Adm Opr(v4/v6) Mode Port/SapId
IP-Address PfxState
-------------------------------------------------------------------------------
p1/1/c1/1 Up Up/Down Network 1/1/c1/1
192.168.20.20/24 n/a
---Output Omitted---
A:vSIM#

A:vSIM# show bof 
===============================================================================
BOF (Memory)
===============================================================================
primary-image cf3:\timos\
primary-config cf3:\config.cfg
license-file cf3:\lic
address 10.1.1.1/24 active
autonegotiate
duplex full
speed 100
wait 3
persist off
no li-local-save
no li-separate
no fips-140-2
console-speed 115200
===============================================================================
A:vSIM#