Multiple Ostinato nodes in Containerlab

15 views
Skip to first unread message

Aninda Chatterjee

unread,
Mar 3, 2025, 7:47:55 AMMar 3
to osti...@googlegroups.com
Hi -

I am trying to instantiate multiple Ostinato nodes in Containerlab, example below:

    src1:
      kind: linux
      image: ostinato/ostinato:v1.3.0-1
      ports:
        - 5900:5900/tcp
    src2:
      kind: linux
      image: ostinato/ostinato:v1.3.0-1
      ports:
        - 5901:5901/tcp

However, it appears that only the port 5900 is made available. I cannot access the second node. Nor can I access the first node if I change its port number to anything other than 5900. 

Any help is much appreciated!

Regards,
Aninda

Sent with Proton Mail secure email.

Srivats P

unread,
Mar 3, 2025, 8:45:36 AMMar 3
to Aninda Chatterjee, osti...@googlegroups.com
Hi Aninda,

Please change your config as shown below and try -

    src1:
      kind: linux
      image: ostinato/ostinato:v1.3.0-1
      ports:
        - 5900:5900/tcp
    src2:
      kind: linux
      image: ostinato/ostinato:v1.3.0-1
      ports:
        - 5901:5900/tcp

The only change is that for src2 host port 5901 is mapped to container port 5900. The container port to access VNC will always be 5900. You can change the host port, but not the container port.

This change should fix the access problem.

That said, why do you need multiple Ostinato nodes?

One Ostinato node with multiple links is the recommended and easier deployment so that you can access everything through a single GUI.

Let me know if this fixes the problem.

Srivats



--
Get Ostinato News and Updates on Twitter - Follow @ostinato (http://twitter.com/ostinato)
---
You received this message because you are subscribed to the Google Groups "ostinato" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ostinato+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ostinato/Yq6RF_2gmKuX-OyZgyeTfI0WHVhmSS9lRu3b15fHCJ83tWZdi5-kRVDDLtJ6bkw04J1Ur0Q1CKtT7lqeT33LHoePY8BgBDuayUdggAp9CCU%3D%40protonmail.com.

Srivats P

unread,
Mar 5, 2025, 6:48:36 AMMar 5
to Aninda Chatterjee, osti...@googlegroups.com
Hi Aninda,

Did the .yml file change I suggested in my previous email help with VNC access for the second node?

Srivats

Aninda Chatterjee

unread,
Mar 5, 2025, 8:36:45 AMMar 5
to Srivats P, osti...@googlegroups.com
Hi Srivats, 

Yes, that worked. But like you said, it made more sense to just use one node with multiple interfaces connecting to different parts of the network. 

Regards,
Aninda

Sent with Proton Mail secure email.

Srivats P

unread,
Mar 5, 2025, 8:37:53 AMMar 5
to Aninda Chatterjee, osti...@googlegroups.com
Thanks for the confirmation Aninda!

Happy Labbing!

Srivats
Reply all
Reply to author
Forward
0 new messages