07-27-2023 01:07 PM
I have been trying to install NSO trial version 6.1 following the downloaded git clone. The readme stipulates to run the self extracting file ending in signed.bin. It then says "for example running `bash nso-5.3.linux.x86_64.signed.bin` will produce a number of files, among them the install `nso-5.3.linux.x86_64.installer.bin`".
It does not produce the above mentioned installer.bin file but instead produces a tar.gz file and a signature file.
I tried to downgrade the version 6.1 to the older 5.3 but it is not available.
I have checked throughout the internet for upgraded correct instructions but none are to be found.
Thanks.
Glenn...
07-28-2023 06:52 AM
Hi Glenn,
I'm not aware of the git repo you are commenting, but you if you are starting with NSO I recommend looking at this guide to get more familiar with the installation process. https://developer.cisco.com/docs/nso/#!getting-and-installing-nso/download-your-nso-free-trial-installer-and-cisco-neds
The guide above has a link to download the Free Trial version of NSO 6. Try if the guide and the link and let us know if you have more issues.
If possible, please share the process you were following.
07-28-2023 07:31 AM
07-28-2023 11:14 AM
Hi Glen
Thanks for sharing the repo, I can see the instructions are a bit old for 5.x, but still applicable for 6.x.
I also see that NSO free trial is for 6.1 only. This will continue to change as more versions become available.
In case you don't know, there is a native docker version of NSO, the first version available is 6.1 and can be download from software.cisco.com you can find more information here https://developer.cisco.com/docs/nso/guides/#!running-nso-in-containers just keep in mind, this docker image is not a free trial.
Since you commented about 6.0 I tested the build process. Below you can see the steps I did. First I download nso-6.0.linux.x86_64.signed.bin (md5: 9fdefe579fba764ba89240d9a21d13a2) from software.cisco.com
╭─ ~/DevRel/tmp/test-nso-docker ───
╰─ ls -l
total 404592
-rw-r--r--@ 1 jillesca staff 207149839 Jul 28 18:43 nso-6.0.linux.x86_64.signed.bin
drwxr-xr-x 14 jillesca staff 448 Jul 28 18:23 nso-docker
╭─ ~/DevRel/tmp/test-nso-docker ──
╰─ chmod u+x nso-6.0.linux.x86_64.signed.bin
╭─ ~/DevRel/tmp/test-nso-docker ──
╰─ ls -l
total 404592
-rwxr--r--@ 1 jillesca staff 207149839 Jul 28 18:43 nso-6.0.linux.x86_64.signed.bin
drwxr-xr-x 14 jillesca staff 448 Jul 28 18:23 nso-docker
╭─ ~/DevRel/tmp/test-nso-docker ───
╰─ bash nso-6.0.linux.x86_64.signed.bin
Unpacking...
Verifying signature...
Retrieving CA certificate from http://www.cisco.com/security/pki/certs/crcam2.cer ...
Successfully retrieved and verified crcam2.cer.
Retrieving SubCA certificate from http://www.cisco.com/security/pki/certs/innerspace.cer ...
Successfully retrieved and verified innerspace.cer.
Successfully verified root, subca and end-entity certificate chain.
Successfully fetched a public key from tailf.cer.
Successfully verified the signature of nso-6.0.linux.x86_64.installer.bin using tailf.cer
╭─ ~/DevRel/tmp/test-nso-docker ──
╰─ ls -l
total 832384
-rw-r--r-- 1 jillesca staff 4054 Oct 3 2022 README.signature
-rw-r--r-- 1 jillesca staff 15598 Mar 9 2021 cisco_x509_verify_release.py
-rw-r--r-- 1 jillesca staff 15447 Mar 9 2021 cisco_x509_verify_release.py3
-rwxr-xr-x 1 jillesca staff 207136030 Oct 3 2022 nso-6.0.linux.x86_64.installer.bin
-rw-r--r-- 1 jillesca staff 256 Oct 3 2022 nso-6.0.linux.x86_64.installer.bin.signature
-rwxr--r--@ 1 jillesca staff 207149839 Jul 28 18:43 nso-6.0.linux.x86_64.signed.bin
drwxr-xr-x 14 jillesca staff 448 Jul 28 18:23 nso-docker
-rw-r--r-- 1 jillesca staff 1383 Mar 9 2021 tailf.cer
╭─ ~/DevRel/tmp/test-nso-docker ────
╰─ ls -l | grep installer
-rwxr-xr-x 1 jillesca staff 207136030 Oct 3 2022 nso-6.0.linux.x86_64.installer.bin
-rw-r--r-- 1 jillesca staff 256 Oct 3 2022 nso-6.0.linux.x86_64.installer.bin.signature
╭─ ~/DevRel/tmp/test-nso-docker ────
╰─ cd nso-docker
╭─ ~/DevRel/tmp/test-nso-docker/nso-docker │ master ────
╰─ git pull
Already up to date.
╭─ ~/DevRel/tmp/test-nso-docker/nso-docker │ master ────
╰─ cd nso-install-files
╭─ ~/DevRel/tmp/test-nso-docker/nso-docker/nso-install-files │ master ───
╰─ cp ../../nso-6.0.linux.x86_64.installer.bin .
╭─ ~/DevRel/tmp/test-nso-docker/nso-docker/nso-install-files │ master ?1 ───
╰─ ls -l
total 404568
-rwxr-xr-x 1 jillesca staff 207136030 Jul 28 18:46 nso-6.0.linux.x86_64.installer.bin
╭─ ~/DevRel/tmp/test-nso-docker/nso-docker/nso-install-files │ master ?1 ───
╰─ cd ..
╭─ ~/DevRel/tmp/test-nso-docker/nso-docker │ master ?1 ────────────────────
╰─ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
╭─ ~/DevRel/tmp/test-nso-docker/nso-docker │ master ?1 ────────────────────
╰─ make
The default make target will build Docker images out of all the NSO
versions found in nso-install-files/. To also run the test
suite for the built images, run 'make test-all'
/Library/Developer/CommandLineTools/usr/bin/make build-all
/Library/Developer/CommandLineTools/usr/bin/make FILE=/Users/jillesca/DevRel/tmp/test-nso-docker/nso-docker/nso-install-files/nso-6.0.linux.x86_64.installer.bin build-file
/Library/Developer/CommandLineTools/usr/bin/make -C docker-images DOCKER_TAG=6.0-jillesca build
Building NSO development Docker image cisco-nso-dev:6.0 based on /Users/jillesca/DevRel/tmp/test-nso-docker/nso-docker/nso-install-files/nso-6.0.linux.x86_64.installer.bin
rm -f *.bin
cp /Users/jillesca/DevRel/tmp/test-nso-docker/nso-docker/nso-install-files/nso-6.0.linux.x86_64.installer.bin nso-6.0.linux.x86_64.installer.bin
docker build --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy --build-arg NSO_INSTALL_FILE=nso-6.0.linux.x86_64.installer.bin --target dev -t cisco-nso-dev:6.0-jillesca .
[+] Building 165.5s (20/20) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 5.86kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/debian:buster 2.9s
=> [auth] library/debian:pull token for registry-1.docker.io 0.0s
=> [internal] load build context 7.1s
=> => transferring context: 207.23MB 7.1s
=> [nso_install 1/4] FROM docker.io/library/debian:buster@sha256:7cd85d3d51a435062010581f14c5e3f9428388ac7234c 9.1s
=> => resolve docker.io/library/debian:buster@sha256:7cd85d3d51a435062010581f14c5e3f9428388ac7234cc9a1e23dd14d 0.0s
=> => sha256:1df4474660a180f2a805d8477b78f9774d302afb2d31118106bffc0cb144e910 1.46kB / 1.46kB 0.0s
=> => sha256:9918064ebccea7fc961fe71dad46105b217763b4b1b3a9dfa7bee2ab29d2039b 50.50MB / 50.50MB 5.3s
=> => sha256:7cd85d3d51a435062010581f14c5e3f9428388ac7234cc9a1e23dd14d7e4e914 984B / 984B 0.0s
=> => sha256:8c7190125b08680a41cae69dc3eb521d44af3b2addc6351ab6c27ab733668422 529B / 529B 0.0s
=> => extracting sha256:9918064ebccea7fc961fe71dad46105b217763b4b1b3a9dfa7bee2ab29d2039b 3.3s
=> [deb_base 2/2] RUN apt-get update && apt-get install -qy default-jre-headless iputils-ping less 61.0s
=> [nso_install 2/4] RUN apt-get update && apt-get install -qy openssh-client openssl libexpat1 && 14.7s
=> [nso_install 3/4] COPY nso-6.0.linux.x86_64.installer.bin /tmp/nso 1.1s
=> [nso_install 4/4] RUN sh /tmp/nso --system-install --non-interactive --run-dir /nso/run --log-dir /log & 17.9s
=> [dev 1/9] COPY ncs_pycli-1.3.4.zip /tmp 0.0s
=> [dev 2/9] RUN echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/bust 81.4s
=> [dev 3/9] COPY --from=nso_install /etc/profile.d /etc/profile.d 0.0s
=> [dev 4/9] COPY --from=nso_install /etc/init.d/ncs /etc/init.d/. 0.0s
=> [dev 5/9] COPY --from=nso_install /etc/logrotate.d/ncs /etc/logrotate.d/. 0.0s
=> [dev 6/9] COPY --from=nso_install /etc/ncs /etc/ncs/ 0.0s
=> [dev 7/9] COPY --from=nso_install /opt/ncs /opt/ncs/ 3.4s
=> [dev 8/9] COPY --from=nso_install /nso /nso 0.0s
=> [dev 9/9] COPY extra-files/ / 0.0s
=> exporting to image 7.1s
=> => exporting layers 7.1s
=> => writing image sha256:2c5a111b8e76e5af01183e2fc63d00b723bbc06df4a74b8663bc420fcf9414f5 0.0s
=> => naming to docker.io/library/cisco-nso-dev:6.0-jillesca 0.0s
docker build --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy --build-arg NSO_INSTALL_FILE=nso-6.0.linux.x86_64.installer.bin --target base -t cisco-nso-base:6.0-jillesca .
[+] Building 7.7s (19/19) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/debian:buster 1.0s
=> [internal] load build context 0.0s
=> => transferring context: 929B 0.0s
=> [nso_install 1/4] FROM docker.io/library/debian:buster@sha256:7cd85d3d51a435062010581f14c5e3f9428388ac7234c 0.0s
=> CACHED [deb_base 2/2] RUN apt-get update && apt-get install -qy default-jre-headless iputils-ping l 0.0s
=> CACHED [nso_install 2/4] RUN apt-get update && apt-get install -qy openssh-client openssl libexpat1 0.0s
=> CACHED [nso_install 3/4] COPY nso-6.0.linux.x86_64.installer.bin /tmp/nso 0.0s
=> CACHED [nso_install 4/4] RUN sh /tmp/nso --system-install --non-interactive --run-dir /nso/run --log-dir /l 0.0s
=> [nso_stripped 1/1] RUN rm -f /etc/ncs/ncs.crypto_keys rm -rf /etc/ncs/ssh rm -rf /etc/ncs/ssl && mk 1.5s
=> [base 1/8] COPY --from=nso_stripped /etc/profile.d /etc/profile.d 0.1s
=> [base 2/8] COPY --from=nso_stripped /etc/init.d/ncs /etc/init.d/. 0.0s
=> [base 3/8] COPY --from=nso_stripped /etc/logrotate.d/ncs /etc/logrotate.d/. 0.0s
=> [base 4/8] COPY --from=nso_stripped /etc/ncs /etc/ncs/ 0.0s
=> [base 5/8] COPY --from=nso_stripped /opt/ncs /opt/ncs/ 0.7s
=> [base 6/8] COPY --from=nso_stripped /nso /nso 0.1s
=> [base 7/8] COPY --from=nso_stripped /nid /nid 0.0s
=> [base 8/8] COPY extra-files/ / 0.0s
=> exporting to image 1.1s
=> => exporting layers 1.1s
=> => writing image sha256:2e87ad4548202e83467726138081647433023fbf05cac0606021075758923add 0.0s
=> => naming to docker.io/library/cisco-nso-base:6.0-jillesca 0.0s
rm -f *.bin
╭─ ~/DevRel/tmp/test-nso-docker/nso-docker │ master ?1 ───────────────────
╰─ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
cisco-nso-base 6.0-jillesca 2e87ad454820 22 seconds ago 678MB
cisco-nso-dev 6.0-jillesca 2c5a111b8e76 38 seconds ago 1.43GB
The only issue I had when building the image was when I wanted to specify the container tag using NSO_VERSION=6.0 make build
but that can be done separately using docker commands.
07-28-2023 11:22 AM
07-28-2023 02:37 PM
07-29-2023 06:23 AM
Hello,
You are missing NSO binary. You have only the NED. You need the nso-6.1-freetrial.linux.x86_64.signed.bin.
The install instruction are also available here (file nso_getting_started-6.1-freetrial.pdf ) and also here .
Here an example:
╭─root@LAPTOP-0TFRHDUN ~/test-nso ╰─# ls ncs-6.1-cisco-ios-6.92.8-freetrial.signed.bin nso-6.1-freetrial.linux.x86_64.signed.bin ╭─root@LAPTOP-0TFRHDUN ~/test-nso ╰─# sh nso-6.1-freetrial.linux.x86_64.signed.bin Unpacking... Verifying signature... Retrieving CA certificate from http://www.cisco.com/security/pki/certs/crcam2.cer ... Successfully retrieved and verified crcam2.cer. Retrieving SubCA certificate from http://www.cisco.com/security/pki/certs/innerspace.cer ... Successfully retrieved and verified innerspace.cer. Successfully verified root, subca and end-entity certificate chain. Successfully fetched a public key from tailf.cer. Successfully verified the signature of nso-6.1.linux.x86_64.installer.bin using tailf.cer ╭─root@LAPTOP-0TFRHDUN ~/test-nso ╰─# ls README.signature ncs-6.1-cisco-ios-6.92.8-freetrial.signed.bin nso-6.1.linux.x86_64.installer.bin tailf.cer cisco_x509_verify_release.py3 nso-6.1-freetrial.linux.x86_64.signed.bin nso-6.1.linux.x86_64.installer.bin.signature ╭─root@LAPTOP-0TFRHDUN ~/test-nso ╰─#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide