Nokia VSR Multi Line cards

Versions this guide is based on Nokia VSR multi line cards node deployment:

EVE Image Foldename Role Downloaded Filename Version vCPUs vRAM Console NIC Type Interfaces Hdd Format QEMU version
timoscpm-ng-22.2.R2-L1 CPM Nokia-VSR-KVM-22.2.R2.zip 22.2.R2 2 4096 telnet virtio-pci 2 hda 5.2.0
timosiom-ng-21.10.R2 IOM Nokia-VSR-KVM-22.2.R2.zip 22.2.R2 2 4096 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 : [timoscpm-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 CPM foldername will be: [timoscpm-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: [timoscpm-ng-22.2.R2.L2]. L2 is another license for your Nokia node image. For line card will be used same image loaded in the different folder: [timosiom-ng-]

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 CPM 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/timoscpm-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 newly created directory using, for example, FileZilla or WinSCP.

4. Rename it to: hda.qcow2

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

5. Fix permissions:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Creating VSR IOM 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/timosiom-ng-22.2.R2-L1

2. Use the same extracted sros-vsr.qcow2 image obtained for CPM node above.

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

4. Rename it to: hda.qcow2

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

5. Fix permissions:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Nokia VSR CPM node template settings:

Template area Value Notes
UIDD Customizable. Releated to your VSR CPM license. Very important. It is related to your Nokia VSR CPM 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 CPM 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-12 card=cpm5
Customizable value per your VSR CPM 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 CPM from preloaded license in the VSR CPM image.

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

Preloaded license path in the VSR CPM:

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

Nokia VSR IOM Line card node template settings:

Template area Value Notes
Timos Line

1st IOM Line card

Default template value: chassis=sr-12 slot=1 card=iom4-e mda/1=me10-10gb-sfp+
Customizable value per your VSR CPM setup and Nokia documentation.
This line can be customized per Nokia documentation for VSR IOM boot parameters and version settings. Please refer the Nokia vSIM Guide v22.2.R1
Timos Line

2nd IOM Line card (otional)

Default template value: chassis=sr-12 slot=2 card=iom4-e mda/1=me10-10gb-sfp+
Customizable value per your VSR CPM setup and Nokia documentation.
Optional second Line card. This line can be customized per Nokia documentation for VSR IOM boot parameters and version settings. Please refer the Nokia vSIM Guide v22.2.R1

Permanent Nokia license deployment into VSR CPM node:

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

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

2. Load license in the VSR CPM. 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/timoscpm-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

Nokia VSR CPM node configuration:

Nokia VSR CPM configuration
1. Create the EVE lab and connect CPM node with IOM via SF interface. In the dual IOM cards connection to CPM please use EVE Network bridge  (Add network/bridge).
2. Login in the VSR CPM, default image login is admin/admin:

Login: admin
Password: admin
A:vSIM#

3. Configure IOM Line card 1:

A:vSIM# configure card 1 card-type "iom4-e"
*A:vSIM# configure sfm 1 sfm-type m-sfm5-12 
*A:vSIM# configure card 1 mda 1 mda-type "me10-10gb-sfp+"
*A:vSIM#

4. Configure IOM Line card 2, if your lab setup has dual IOM cards:

A:vSIM# configure card 2 card-type "iom4-e"
*A:vSIM# configure sfm 2 sfm-type m-sfm5-12 
*A:vSIM# configure card 2 mda 1 mda-type "me10-10gb-sfp+"
*A:vSIM# show mda
===============================================================================
MDA Summary
===============================================================================
Slot Mda Provisioned Type Admin Operational
Equipped Type (if different) State State
-------------------------------------------------------------------------------
1 1 me10-10gb-sfp+ up up
2 1 me10-10gb-sfp+ up up
===============================================================================
*A:vSIM#

5. Configure Line card interfaces:

### Interface on Line card 1 ###
*A:vSIM# 

configure router 
interface lan1 
address 10.3.3.3/24 
port 1/1/1
exit all

configure port 1/1/1
ethernet
exit
no shutdown

### Interface on Line card 2 ###
configure router 
interface lan2 
address 10.2.2.2/24 
port 2/1/1 
exit all

configure port 2/1/1
ethernet
exit
no shutdown  

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

6. 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/1 Up Yes Up 8704 8704 - netw null xgige 10GBASE-LR *
1/1/2 Down No Down 8704 8704 - netw null xgige 10GBASE-LR *
1/1/3 Down No Down 8704 8704 - netw null xgige 10GBASE-LR *
1/1/4 Down No Down 8704 8704 - netw null xgige 10GBASE-LR *
---Output Omitted---
===============================================================================
Ports on Slot 2
===============================================================================
Port Admin Link Port Cfg Oper LAG/ Port Port Port C/QS/S/XFP/
Id State State MTU MTU Bndl Mode Encp Type MDIMDX
-------------------------------------------------------------------------------
2/1/1 Up Yes Up 8704 8704 - netw null xgige 10GBASE-LR *
2/1/2 Down No Down 8704 8704 - netw null xgige 10GBASE-LR *
2/1/3 Down No Down 8704 8704 - netw null xgige 10GBASE-LR *
2/1/4 Down No Down 8704 8704 - netw null xgige 10GBASE-LR *
---Output Omitted---
A:vSIM# show router interface ipv4
===============================================================================
Interface Table (Router: Base)
===============================================================================
Interface-Name Adm Opr(v4/v6) Mode Port/SapId
IP-Address PfxState
-------------------------------------------------------------------------------
lan1 Up Up/Down Network 1/1/1
10.3.3.3/24 n/a
lan2 Up Up/Down Network 2/1/1
10.2.2.2/24 n/a
system Up Down/Down Network system
- -
-------------------------------------------------------------------------------
Interfaces : 3
===============================================================================

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#