cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5551
Views
15
Helpful
9
Replies

NSO - Problem creating a NETSIM device

i finish install my NSO 5.1 on ubuntu.

i try to create a device in NETSIM and i get this error:

 

rafael@ubuntu:~/nso-lab$ ncs-netsim create-device cisco-ios CE0

*** The NED package called <cisco-ios> doesn't have a
*** netsim directory. ncs-netsim cannot emulate
*** devices that do not have a netsim directory.
Try ncs-netsim --help or man ncs-netsim to get usage text
rafael@ubuntu:~/nso-lab$ ls
logs ncs-cdb ncs.conf packages README.ncs scripts state storedstate target
rafael@ubuntu:~/nso-lab$ ls packages/
cisco-ios-cli-3.0 cisco-ios-cli-3.8 cisco-iosxr-cli-3.0 cisco-iosxr-cli-3.5
rafael@ubuntu:~/nso-lab$ ncs-netsim create-device cisco-ios-cli-3.8 CE0
env: ‘make’: No such file or directory

*** Failed to install
Try ncs-netsim --help or man ncs-netsim to get usage text
rafael@ubuntu:~/nso-lab$ ncs-netsim create-device cisco-ios-cli-3.0 CE0

*** A netsim network already exists in directory netsim
*** Please use 'ncs-netsim delete-network' to remove it before
*** creating a new network, or 'ncs-netsim add-to-network' to
*** add devices to the existing network.
Try ncs-netsim --help or man ncs-netsim to get usage text
rafael@ubuntu:~/nso-lab$ ncs-netsim delete-network
/home/rafael/nso-5.1/bin/ncs-netsim: line 1259: ./stop.sh: No such file or directory
DEVICE CE0 already STOPPED
rafael@ubuntu:~/nso-lab$ ncs-netsim create-device cisco-ios-cli-3.0 CE0
env: ‘make’: No such file or directory

*** Failed to install
Try ncs-netsim --help or man ncs-netsim to get usage text
rafael@ubuntu:~/nso-lab$ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
rafael@ubuntu:~/nso-lab$

9 Replies 9

daspicer
Level 1
Level 1

same thing happened to me.  I did the "source $HOME/nso-5.1/ncsrc" command again, even though I didn't think I needed to since I'd already done it......voila.

yfherzog
Cisco Employee
Cisco Employee

You need to point to the NED package location.

If your NED is in ./packages/cisco-ios-cli-3.8, then the line should be:

ncs-netsim create-device packages/cisco-ios-cli-3.8 CE0

otherwise, ncs-netsim is looking for the NED under the current directory, which is usually not the case (you don't create netsim devices inside your packages directory).

mat3
Level 1
Level 1
Hi, same type of problem/error with NSO 5.3 on ubuntu. How have you resolved your pb ?

Here the log, any idea ? :

 

mat@mat-VirtualBox:~/nso-5.3$ pwd
/home/mat/nso-5.3
mat@mat-VirtualBox:~/nso-5.3$ source ncsrc
mat@mat-VirtualBox:~/nso-5.3$ ls packages/neds/
a10-acos-cli-3.0 cisco-iosxr-cli-3.0 juniper-junos-nc-3.0
alu-sr-cli-3.4 cisco-iosxr-cli-3.5 ncs-5.3-cisco-ios-6.42.1.tar.gz
cisco-asa-cli-6.6 cisco-iosxr-cli-7.18 ncs-5.3-cisco-iosxr-7.18.2.tar.gz
cisco-ios-cli-3.0 cisco-nx-cli-3.0 ncs-5.3-cisco-nx-5.13.1.1.tar.gz
cisco-ios-cli-3.8 cisco-nx-cli-5.13
cisco-ios-cli-6.42 dell-ftos-cli-3.0
mat@mat-VirtualBox:~/nso-5.3$ cd ~
mat@mat-VirtualBox:~$ ncs-netsim create-device nso-5.3/packages/neds/cisco-ios-cli-3.0 mydevice
env: «make»: Aucun fichier ou dossier de ce type

*** Failed to install
Try ncs-netsim --help or man ncs-netsim to get usage text

mat@mat-VirtualBox:~$ ncs-netsim delete-network
/home/mat/nso-5.3/bin/ncs-netsim: ligne 1262: ./stop.sh: Aucun fichier ou dossier de ce type
DEVICE mydevice already STOPPED
mat@mat-VirtualBox:~$ pwd
/home/mat
mat@mat-VirtualBox:~$ cd nso-5.3/
mat@mat-VirtualBox:~/nso-5.3$ ls
bin etc lib ncsrc.tcsh README var
CHANGES examples.ncs LICENSE nso-instance1 scripts VERSION
doc include man nso-instance-ex1 src
erlang java ncsrc packages support
mat@mat-VirtualBox:~/nso-5.3$ ncs-netsim create-device packages/neds/cisco-ios-cli-3.0/ mydevice
env: «make»: Aucun fichier ou dossier de ce type

*** Failed to install
Try ncs-netsim --help or man ncs-netsim to get usage text

 

mat@mat-VirtualBox:~/nso-5.3$ ls
bin etc lib ncsrc.tcsh packages support
CHANGES examples.ncs LICENSE netsim README var
doc include man nso-instance1 scripts VERSION
erlang java ncsrc nso-instance-ex1 src
mat@mat-VirtualBox:~/nso-5.3$ cd netsim/
mat@mat-VirtualBox:~/nso-5.3/netsim$ ls
mydevice
mat@mat-VirtualBox:~/nso-5.3/netsim$ cd mydevice/
mat@mat-VirtualBox:~/nso-5.3/netsim/mydevice$ ls
mydevice
mat@mat-VirtualBox:~/nso-5.3/netsim/mydevice$ cd mydevice/
mat@mat-VirtualBox:~/nso-5.3/netsim/mydevice/mydevice$ ls
mat@mat-VirtualBox:~/nso-5.3/netsim/mydevice/mydevice$

lmanor
Cisco Employee
Cisco Employee

Going off this error message:

mat@mat-VirtualBox:~$ ncs-netsim create-device nso-5.3/packages/neds/cisco-ios-cli-3.0 mydevice
env: «make»: Aucun fichier ou dossier de ce type

I took a quick look at the ncs-netsim script (ncs-5.3/bin/ncs-netsim) looking for a a potential issue with 'make' on an 'env' command:

I found this:

 

if missing_cmd gmake; then
MAKE=make
else
MAKE=gmake
fi

<..snip..>

env DEST_DIR="${destdir}" NAME=${rname} COUNTER=${rno} \
TWO_DIGIT_COUNTER=${counter} ${MAKE} -s install

 

If gmake is not available it will default to make...

If make is not available will cause and error in this env command.

 

I'd guess that make (or lack of) on your ubuntu system may be the cultprit.

 

 

Hi thanks, I have done an #apt install build-essential, ...but I've got another error :

 

mat@mat-VirtualBox:~/nso-5.3$ pwd
/home/mat/nso-5.3
mat@mat-VirtualBox:~/nso-5.3$ ls
bin etc lib ncsrc.tcsh README var
CHANGES examples.ncs LICENSE nso-instance1 scripts VERSION
doc include man nso-instance-ex1 src
erlang java ncsrc packages support
mat@mat-VirtualBox:~/nso-5.3$ source ncsrc
mat@mat-VirtualBox:~/nso-5.3$ ncs-netsim create-device packages/neds/cisco-ios-cli-3.0/ mydevice
/bin/sh: 1: cannot open /home/mat/nso-5.3/netsim/confd/var/confd/cdb/aaa_init.xml: No such file
Makefile:36: recipe for target 'install' failed
make: *** [install] Error 2

*** Failed to install
Try ncs-netsim --help or man ncs-netsim to get usage text
mat@mat-VirtualBox:~/nso-5.3$

marcmedi
Cisco Employee
Cisco Employee

Its lacks OS components. For ubuntu 20, you need to install "build-essential" as the example below:

nso5@nso5:~/nso-run$ ncs-netsim create-network packages/cisco-iosxr-cli-3.5/ 3 XR

env: ‘make’: No such file or directory

 

*** Failed to install

Try ncs-netsim --help or man ncs-netsim to get usage text

nso5@nso5:~/nso-run$ sudo apt install build-essential

[sudo] password for nso5:

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following additional packages will be installed:

  binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9 gcc-9-base

  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils

  libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libfakeroot

  libfile-fcntllock-perl libgcc-9-dev libgomp1 libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev

  libtsan0 libubsan1 linux-libc-dev make manpages-dev

Suggested packages:

  binutils-doc cpp-doc gcc-9-locales debian-keyring g++-multilib g++-9-multilib gcc-9-doc gcc-multilib autoconf

  automake libtool flex bison gdb gcc-doc gcc-9-multilib glibc-doc bzr libstdc++-9-doc make-doc

The following NEW packages will be installed:

  binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc

  gcc-9 gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1

  libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libfakeroot

  libfile-fcntllock-perl libgcc-9-dev libgomp1 libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev

  libtsan0 libubsan1 linux-libc-dev make manpages-dev

0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded.

Need to get 45.4 MB of archives.

After this operation, 202 MB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-common amd64 2.34-6ubuntu1.3 [207 kB]

Get:2 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libbinutils amd64 2.34-6ubuntu1.3 [474 kB]

Get:3 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf-nobfd0 amd64 2.34-6ubuntu1.3 [47.4 kB]

Get:4 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf0 amd64 2.34-6ubuntu1.3 [46.6 kB]

Get:5 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.34-6ubuntu1.3 [1,613 kB]

Get:6 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils amd64 2.34-6ubuntu1.3 [3,380 B]

Get:7 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc-dev-bin amd64 2.31-0ubuntu9.9 [71.8 kB]

Get:8 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-132.148 [1,120 kB]

Get:9 http://br.archive.ubuntu.com/ubuntu focal/main amd64 libcrypt-dev amd64 1:4.4.10-10ubuntu4 [104 kB]

Get:10 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dev amd64 2.31-0ubuntu9.9 [2,519 kB]

Get:11 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-base amd64 9.4.0-1ubuntu1~20.04.1 [19.4 kB]

Get:12 http://br.archive.ubuntu.com/ubuntu focal/main amd64 libisl22 amd64 0.22.1-1 [592 kB]

Get:13 http://br.archive.ubuntu.com/ubuntu focal/main amd64 libmpc3 amd64 1.1.0-1 [40.8 kB]

Get:14 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 cpp-9 amd64 9.4.0-1ubuntu1~20.04.1 [7,500 kB]

Get:15 http://br.archive.ubuntu.com/ubuntu focal/main amd64 cpp amd64 4:9.3.0-1ubuntu2 [27.6 kB]                

Get:16 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcc1-0 amd64 10.3.0-1ubuntu1~20.04 [48.8 kB]

Get:17 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgomp1 amd64 10.3.0-1ubuntu1~20.04 [102 kB]

Get:18 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libitm1 amd64 10.3.0-1ubuntu1~20.04 [26.2 kB]

Get:19 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libatomic1 amd64 10.3.0-1ubuntu1~20.04 [9,284 B]

Get:20 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libasan5 amd64 9.4.0-1ubuntu1~20.04.1 [2,751 kB]

Get:21 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 liblsan0 amd64 10.3.0-1ubuntu1~20.04 [835 kB]

Get:22 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libtsan0 amd64 10.3.0-1ubuntu1~20.04 [2,009 kB]

Get:23 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libubsan1 amd64 10.3.0-1ubuntu1~20.04 [784 kB]

Get:24 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libquadmath0 amd64 10.3.0-1ubuntu1~20.04 [146 kB]

Get:25 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgcc-9-dev amd64 9.4.0-1ubuntu1~20.04.1 [2,359 kB]

Get:26 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.4.0-1ubuntu1~20.04.1 [8,274 kB]

Get:27 http://br.archive.ubuntu.com/ubuntu focal/main amd64 gcc amd64 4:9.3.0-1ubuntu2 [5,208 B]                

Get:28 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libstdc++-9-dev amd64 9.4.0-1ubuntu1~20.04.1 [1,722 kB]

Get:29 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.4.0-1ubuntu1~20.04.1 [8,420 kB]

Get:30 http://br.archive.ubuntu.com/ubuntu focal/main amd64 g++ amd64 4:9.3.0-1ubuntu2 [1,604 B]                

Get:31 http://br.archive.ubuntu.com/ubuntu focal/main amd64 make amd64 4.2.1-1.2 [162 kB]                       

Get:32 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 libdpkg-perl all 1.19.7ubuntu3.2 [231 kB]   

Get:33 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 dpkg-dev all 1.19.7ubuntu3.2 [679 kB]       

Get:34 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 build-essential amd64 12.8ubuntu1.1 [4,664 B]

Get:35 http://br.archive.ubuntu.com/ubuntu focal/main amd64 libfakeroot amd64 1.24-1 [25.7 kB]                  

Get:36 http://br.archive.ubuntu.com/ubuntu focal/main amd64 fakeroot amd64 1.24-1 [62.6 kB]                     

Get:37 http://br.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-diff-perl all 1.19.03-2 [46.6 kB]      

Get:38 http://br.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-diff-xs-perl amd64 0.04-6 [11.3 kB]    

Get:39 http://br.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]        

Get:40 http://br.archive.ubuntu.com/ubuntu focal/main amd64 libfile-fcntllock-perl amd64 0.22-3build4 [33.1 kB]

Get:41 http://br.archive.ubuntu.com/ubuntu focal/main amd64 manpages-dev all 5.05-1 [2,266 kB]                  

Fetched 45.4 MB in 40s (1,123 kB/s)                                                                             

Extracting templates from packages: 100%

Selecting previously unselected package binutils-common:amd64.

(Reading database ... 110619 files and directories currently installed.)

Preparing to unpack .../00-binutils-common_2.34-6ubuntu1.3_amd64.deb ...

Unpacking binutils-common:amd64 (2.34-6ubuntu1.3) ...

Selecting previously unselected package libbinutils:amd64.

Preparing to unpack .../01-libbinutils_2.34-6ubuntu1.3_amd64.deb ...

Unpacking libbinutils:amd64 (2.34-6ubuntu1.3) ...

Selecting previously unselected package libctf-nobfd0:amd64.

Preparing to unpack .../02-libctf-nobfd0_2.34-6ubuntu1.3_amd64.deb ...

Unpacking libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...

Selecting previously unselected package libctf0:amd64.

Preparing to unpack .../03-libctf0_2.34-6ubuntu1.3_amd64.deb ...

Unpacking libctf0:amd64 (2.34-6ubuntu1.3) ...

Selecting previously unselected package binutils-x86-64-linux-gnu.

Preparing to unpack .../04-binutils-x86-64-linux-gnu_2.34-6ubuntu1.3_amd64.deb ...

Unpacking binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...

Selecting previously unselected package binutils.

Preparing to unpack .../05-binutils_2.34-6ubuntu1.3_amd64.deb ...

Unpacking binutils (2.34-6ubuntu1.3) ...

Selecting previously unselected package libc-dev-bin.

Preparing to unpack .../06-libc-dev-bin_2.31-0ubuntu9.9_amd64.deb ...

Unpacking libc-dev-bin (2.31-0ubuntu9.9) ...

Selecting previously unselected package linux-libc-dev:amd64.

Preparing to unpack .../07-linux-libc-dev_5.4.0-132.148_amd64.deb ...

Unpacking linux-libc-dev:amd64 (5.4.0-132.148) ...

Selecting previously unselected package libcrypt-dev:amd64.

Preparing to unpack .../08-libcrypt-dev_1%3a4.4.10-10ubuntu4_amd64.deb ...

Unpacking libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...

Selecting previously unselected package libc6-dev:amd64.

Preparing to unpack .../09-libc6-dev_2.31-0ubuntu9.9_amd64.deb ...

Unpacking libc6-dev:amd64 (2.31-0ubuntu9.9) ...

Selecting previously unselected package gcc-9-base:amd64.

Preparing to unpack .../10-gcc-9-base_9.4.0-1ubuntu1~20.04.1_amd64.deb ...

Unpacking gcc-9-base:amd64 (9.4.0-1ubuntu1~20.04.1) ...

Selecting previously unselected package libisl22:amd64.

Preparing to unpack .../11-libisl22_0.22.1-1_amd64.deb ...

Unpacking libisl22:amd64 (0.22.1-1) ...

Selecting previously unselected package libmpc3:amd64.

Preparing to unpack .../12-libmpc3_1.1.0-1_amd64.deb ...

Unpacking libmpc3:amd64 (1.1.0-1) ...

Selecting previously unselected package cpp-9.

Preparing to unpack .../13-cpp-9_9.4.0-1ubuntu1~20.04.1_amd64.deb ...

Unpacking cpp-9 (9.4.0-1ubuntu1~20.04.1) ...

Selecting previously unselected package cpp.

Preparing to unpack .../14-cpp_4%3a9.3.0-1ubuntu2_amd64.deb ...

Unpacking cpp (4:9.3.0-1ubuntu2) ...

Selecting previously unselected package libcc1-0:amd64.

Preparing to unpack .../15-libcc1-0_10.3.0-1ubuntu1~20.04_amd64.deb ...

Unpacking libcc1-0:amd64 (10.3.0-1ubuntu1~20.04) ...

Selecting previously unselected package libgomp1:amd64.

Preparing to unpack .../16-libgomp1_10.3.0-1ubuntu1~20.04_amd64.deb ...

Unpacking libgomp1:amd64 (10.3.0-1ubuntu1~20.04) ...

Selecting previously unselected package libitm1:amd64.

Preparing to unpack .../17-libitm1_10.3.0-1ubuntu1~20.04_amd64.deb ...

Unpacking libitm1:amd64 (10.3.0-1ubuntu1~20.04) ...

Selecting previously unselected package libatomic1:amd64.

Preparing to unpack .../18-libatomic1_10.3.0-1ubuntu1~20.04_amd64.deb ...

Unpacking libatomic1:amd64 (10.3.0-1ubuntu1~20.04) ...

Selecting previously unselected package libasan5:amd64.

Preparing to unpack .../19-libasan5_9.4.0-1ubuntu1~20.04.1_amd64.deb ...

Unpacking libasan5:amd64 (9.4.0-1ubuntu1~20.04.1) ...

Selecting previously unselected package liblsan0:amd64.

Preparing to unpack .../20-liblsan0_10.3.0-1ubuntu1~20.04_amd64.deb ...

Unpacking liblsan0:amd64 (10.3.0-1ubuntu1~20.04) ...

Selecting previously unselected package libtsan0:amd64.

Preparing to unpack .../21-libtsan0_10.3.0-1ubuntu1~20.04_amd64.deb ...

Unpacking libtsan0:amd64 (10.3.0-1ubuntu1~20.04) ...

Selecting previously unselected package libubsan1:amd64.

Preparing to unpack .../22-libubsan1_10.3.0-1ubuntu1~20.04_amd64.deb ...

Unpacking libubsan1:amd64 (10.3.0-1ubuntu1~20.04) ...

Selecting previously unselected package libquadmath0:amd64.

Preparing to unpack .../23-libquadmath0_10.3.0-1ubuntu1~20.04_amd64.deb ...

Unpacking libquadmath0:amd64 (10.3.0-1ubuntu1~20.04) ...

Selecting previously unselected package libgcc-9-dev:amd64.

Preparing to unpack .../24-libgcc-9-dev_9.4.0-1ubuntu1~20.04.1_amd64.deb ...

Unpacking libgcc-9-dev:amd64 (9.4.0-1ubuntu1~20.04.1) ...

Selecting previously unselected package gcc-9.

Preparing to unpack .../25-gcc-9_9.4.0-1ubuntu1~20.04.1_amd64.deb ...

Unpacking gcc-9 (9.4.0-1ubuntu1~20.04.1) ...

Selecting previously unselected package gcc.

Preparing to unpack .../26-gcc_4%3a9.3.0-1ubuntu2_amd64.deb ...

Unpacking gcc (4:9.3.0-1ubuntu2) ...

Selecting previously unselected package libstdc++-9-dev:amd64.

Preparing to unpack .../27-libstdc++-9-dev_9.4.0-1ubuntu1~20.04.1_amd64.deb ...

Unpacking libstdc++-9-dev:amd64 (9.4.0-1ubuntu1~20.04.1) ...

Selecting previously unselected package g++-9.

Preparing to unpack .../28-g++-9_9.4.0-1ubuntu1~20.04.1_amd64.deb ...

Unpacking g++-9 (9.4.0-1ubuntu1~20.04.1) ...

Selecting previously unselected package g++.

Preparing to unpack .../29-g++_4%3a9.3.0-1ubuntu2_amd64.deb ...

Unpacking g++ (4:9.3.0-1ubuntu2) ...

Selecting previously unselected package make.

Preparing to unpack .../30-make_4.2.1-1.2_amd64.deb ...

Unpacking make (4.2.1-1.2) ...

Selecting previously unselected package libdpkg-perl.

Preparing to unpack .../31-libdpkg-perl_1.19.7ubuntu3.2_all.deb ...

Unpacking libdpkg-perl (1.19.7ubuntu3.2) ...

Selecting previously unselected package dpkg-dev.

Preparing to unpack .../32-dpkg-dev_1.19.7ubuntu3.2_all.deb ...

Unpacking dpkg-dev (1.19.7ubuntu3.2) ...

Selecting previously unselected package build-essential.

Preparing to unpack .../33-build-essential_12.8ubuntu1.1_amd64.deb ...

Unpacking build-essential (12.8ubuntu1.1) ...

Selecting previously unselected package libfakeroot:amd64.

Preparing to unpack .../34-libfakeroot_1.24-1_amd64.deb ...

Unpacking libfakeroot:amd64 (1.24-1) ...

Selecting previously unselected package fakeroot.

Preparing to unpack .../35-fakeroot_1.24-1_amd64.deb ...

Unpacking fakeroot (1.24-1) ...

Selecting previously unselected package libalgorithm-diff-perl.

Preparing to unpack .../36-libalgorithm-diff-perl_1.19.03-2_all.deb ...

Unpacking libalgorithm-diff-perl (1.19.03-2) ...

Selecting previously unselected package libalgorithm-diff-xs-perl.

Preparing to unpack .../37-libalgorithm-diff-xs-perl_0.04-6_amd64.deb ...

Unpacking libalgorithm-diff-xs-perl (0.04-6) ...

Selecting previously unselected package libalgorithm-merge-perl.

Preparing to unpack .../38-libalgorithm-merge-perl_0.08-3_all.deb ...

Unpacking libalgorithm-merge-perl (0.08-3) ...

Selecting previously unselected package libfile-fcntllock-perl.

Preparing to unpack .../39-libfile-fcntllock-perl_0.22-3build4_amd64.deb ...

Unpacking libfile-fcntllock-perl (0.22-3build4) ...

Selecting previously unselected package manpages-dev.

Preparing to unpack .../40-manpages-dev_5.05-1_all.deb ...

Unpacking manpages-dev (5.05-1) ...

Setting up manpages-dev (5.05-1) ...

Setting up libfile-fcntllock-perl (0.22-3build4) ...

Setting up libalgorithm-diff-perl (1.19.03-2) ...

Setting up binutils-common:amd64 (2.34-6ubuntu1.3) ...

Setting up linux-libc-dev:amd64 (5.4.0-132.148) ...

Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...

Setting up libgomp1:amd64 (10.3.0-1ubuntu1~20.04) ...

Setting up libfakeroot:amd64 (1.24-1) ...

Setting up fakeroot (1.24-1) ...

update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode

Setting up make (4.2.1-1.2) ...

Setting up libquadmath0:amd64 (10.3.0-1ubuntu1~20.04) ...

Setting up libmpc3:amd64 (1.1.0-1) ...

Setting up libatomic1:amd64 (10.3.0-1ubuntu1~20.04) ...

Setting up libdpkg-perl (1.19.7ubuntu3.2) ...

Setting up libubsan1:amd64 (10.3.0-1ubuntu1~20.04) ...

Setting up libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...

Setting up libisl22:amd64 (0.22.1-1) ...

Setting up libbinutils:amd64 (2.34-6ubuntu1.3) ...

Setting up libc-dev-bin (2.31-0ubuntu9.9) ...

Setting up libalgorithm-diff-xs-perl (0.04-6) ...

Setting up libcc1-0:amd64 (10.3.0-1ubuntu1~20.04) ...

Setting up liblsan0:amd64 (10.3.0-1ubuntu1~20.04) ...

Setting up libitm1:amd64 (10.3.0-1ubuntu1~20.04) ...

Setting up gcc-9-base:amd64 (9.4.0-1ubuntu1~20.04.1) ...

Setting up libalgorithm-merge-perl (0.08-3) ...

Setting up libtsan0:amd64 (10.3.0-1ubuntu1~20.04) ...

Setting up libctf0:amd64 (2.34-6ubuntu1.3) ...

Setting up libasan5:amd64 (9.4.0-1ubuntu1~20.04.1) ...

Setting up cpp-9 (9.4.0-1ubuntu1~20.04.1) ...

Setting up libc6-dev:amd64 (2.31-0ubuntu9.9) ...

Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...

Setting up binutils (2.34-6ubuntu1.3) ...

Setting up dpkg-dev (1.19.7ubuntu3.2) ...

Setting up libgcc-9-dev:amd64 (9.4.0-1ubuntu1~20.04.1) ...

Setting up cpp (4:9.3.0-1ubuntu2) ...

Setting up gcc-9 (9.4.0-1ubuntu1~20.04.1) ...

Setting up libstdc++-9-dev:amd64 (9.4.0-1ubuntu1~20.04.1) ...

Setting up gcc (4:9.3.0-1ubuntu2) ...

Setting up g++-9 (9.4.0-1ubuntu1~20.04.1) ...

Setting up g++ (4:9.3.0-1ubuntu2) ...

update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode

Setting up build-essential (12.8ubuntu1.1) ...

Processing triggers for man-db (2.9.1-1) ...

Processing triggers for libc-bin (2.31-0ubuntu9.9) ...

nso5@nso5:~/nso-run$ ncs-netsim delete-network

nso5@nso5:~/nso-run$

nso5@nso5:~/nso-run$ ncs-netsim create-network ../nso-5-7-1/packages/cisco-iosxr-cli-3.5/ 3 XR

 

*** The NED package called <../nso-5-7-1/packages/cisco-iosxr-cli-3.5/> doesn't have a

*** netsim directory. ncs-netsim cannot emulate

*** devices that do not have a netsim directory.

Try ncs-netsim --help or man ncs-netsim to get usage text

nso5@nso5:~/nso-run$ ncs-netsim create-network packages/cisco-iosxr-cli-3.5/ 3 XR

DEVICE XR0 CREATED

DEVICE XR1 CREATED

DEVICE XR2 CREATED

nso5@nso5:~/nso-run$

u.avsec
Spotlight
Spotlight

This is what we run when creating images on ubuntu-latest (container stuff but applicable to your situation too).

apt install python3 python3-pip libxml2-utils curl make ant xsltproc

 What exactly is or is not in ubuntu-latest compared to image you used to spin up your VM, is a different matter. If you used anything "fatter" than Ubuntu Minimal Cloud Image, not much else should be missing.

sebastian_rp
Level 1
Level 1

I had the same issue with the docker implementation:

ncs-netsim create-network /nso/run/packages/cisco-ios-6.92 2 ios, see bellow message:

*** The NED package called </nso/run/packages/cisco-ios-6.92> doesn't have a
*** netsim directory. ncs-netsim cannot emulate
*** devices that do not have a netsim directory.
Try ncs-netsim --help or man ncs-netsim to get usage text


In my case what solved it was to specify the path + full name for the package:

 

ncs-netsim create-network /nso/run/packages/ncs-6.1-cisco-ios-6.92.8.tar.gz 2 ios
DEVICE ios0 CREATED
DEVICE ios1 CREATED