Replies: 1 comment
|
Thanks a million for all the details! We don't have a good mechanism to support two variants of a device container, and we already use "iosxr" with "clab" for the XRD control-plane image (the "real" container). I will, however, add all the details you provided (and how to implement them with system defaults) to the docs/labs/iosxr.md document. Will copy you on the PR (so you can test the settings) when it's ready. Thanks again, Ivan |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello Team,
I tried to use Cisco XRD vRouter ( https://containerlab.dev/manual/kinds/cisco_xrd_vrouter/ ) in netlab, although it is not listed as a supported platform. I just wanted to share with you my findings.
I used chatgpt to help install it under containerlab, and run it, then tried to create topologies. Chatgpt guides through nicely from step 1 and interact correctly in case any error bumps up.
Containerlab on the link above, gives a quite good summary about the specialties of the xrd vrouter image. E.g.: interfaces (vmxnet3 vs igb) and the connection to interface naming.
It is a quite interesting image, as it runs inside an Ubuntu VM as a container :) So nested virtualization is a must.
So after installation we should 2 xrd-vrouter images (i already had xrd-control plane):
We need to update containerlab to the latest version (0.79) to support kind: cisco_xrd_vrouter.
After all prerequisites were met, as a quick test, I created the following simple topology file containing 2 xrd routers:
xrd2ospf.yml
Then:
(mylab) mylab :~/ContainerLabs$ netlab create xrd2ospf.ymlin the generated clab.yml file, there are few things that need to be fixed, before running it:
2.1: add to each node:
2.2: interface naming - change to:
Note:
the difference here:
XRd control-plane: Gi0-0-0-0
XRd vRouter: Gi0/0/0/0 (NIC type: igb)
XRd vRouter: Te0/0/0/0 (NIC type: vmxnet3)
I used NIC type igb for now. I don't know if there any features that are missing if we use igb instead of vmxnet3.
Now our corrected .yml looks like this:
Run it:
(mylab) fred@fred-lnx:~/ContainerLabs$ sudo containerlab deploy -t clab.ymlAfter nodes were booted up (become healthy after ~5 mins):
issue:
netlab initial...
Lets check the routers (clab / clab@123):
1 router takes 2 full cpu cores and 8-10GB of RAM, but it is still a bit lighter than a xrv9k image.
So the image works fine, but we need to fine tune few things for netlab.
I am wondering if it is possible in the future for you/your team to implement the specialities of xrd-vrouter in netlab, so that manual modifications would not needed?
To be honest, I would help, but I am not a coder, I am nowhere near on that level of knowledge for such tasks, but I am willing to help in testing.
Best Regards,
Ferenc
All reactions