Community discussions

MikroTik App
 
User avatar
infabo
Forum Guru
Forum Guru
Topic Author
Posts: 1465
Joined: Thu Nov 12, 2020 12:07 pm

Netinstall CLI on Linux

Tue Dec 14, 2021 1:55 pm

I can't get any version of netinstall for CLI running on Linux.

Using the latest netinstall 7.1, there the call and output.
$ ./netinstall -a 192.168.0.222 routeros-7.1-arm.npk
Using server IP: 192.168.0.14
Starting PXE server
Segmentation fault (core dumped)
In Journal I find this stacktrace:
Dez 14 12:50:44 MACHINE systemd-coredump[157411]: [🡕] Process 157406 (netinstall) of user 1000 dumped core.
                                                      
                                                      Found module /home/user/mikrotik/netinstall without build-id.
                                                      Found module linux-gate.so.1 with build-id: 55670f57053c268093fdc5e12c73b0bbb833fcf9
                                                      Stack trace of thread 157406:
                                                      #0  0x0000000008049af3 n/a (/home/user/mikrotik/netinstall + 0x1af3)
                                                      #1  0x000000000804976e n/a (/home/user/mikrotik/netinstall + 0x176e)
Dez 14 12:50:44 MACHINE audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@14-157408-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dez 14 12:50:44 MACHINE audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@15-157409-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dez 14 12:50:44 MACHINE systemd-coredump[157410]: [🡕] Process 157407 (netinstall) of user 1000 dumped core.
                                                      
                                                      Found module /home/user/mikrotik/netinstall without build-id.
                                                      Found module linux-gate.so.1 with build-id: 55670f57053c268093fdc5e12c73b0bbb833fcf9
                                                      Stack trace of thread 157407:
                                                      #0  0x000000000804a2e6 n/a (/home/user/mikrotik/netinstall + 0x22e6)
                                                      #1  0x000000000804af6e n/a (/home/user/mikrotik/netinstall + 0x2f6e)
                                                      #2  0x0000000008049214 n/a (/home/user/mikrotik/netinstall + 0x1214)
                                                      #3  0x000000000804975f n/a (/home/user/mikrotik/netinstall + 0x175f)
I can't figure out why this binary crashes. Anyone ever had this and knows how to resolve?
$ uname -a
Linux MACHINE 5.15.6-2-MANJARO #1 SMP PREEMPT Sat Dec 4 11:11:58 UTC 2021 x86_64 GNU/Linu
 
User avatar
infabo
Forum Guru
Forum Guru
Topic Author
Posts: 1465
Joined: Thu Nov 12, 2020 12:07 pm

Re: Netinstall CLI on Linux

Tue Dec 14, 2021 2:05 pm

And even the docker-version exists with SIGSEGV (segmentation fault). So it seems to be a platform issue here.
docker run --rm -it --network=host -v `pwd`:/root easen/mikrotik-netinstall:7.1rc3 -a 192.168.0.222 /root/routeros-7.1-arm.npk
Using server IP: 192.168.0.14
Starting PXE server
 
User avatar
patrikg
Member
Member
Posts: 362
Joined: Thu Feb 07, 2013 6:38 pm
Location: Stockholm, Sweden

Re: Netinstall CLI on Linux

Tue Dec 14, 2021 2:07 pm

Have you tried to disable all your interfaces that are not connected to the router device ?
Like the wifi.

And have you tried to run the netinstall as root ?

I was running this program fine yesterday on my arch linux.
Its a 32bit ELF file, do you have support for that, like multilib ?


Linux arch 5.15.7-arch1-1 #1 SMP PREEMPT Wed, 08 Dec 2021 14:33:16 +0000 x86_64 GNU/Linux

netinstall: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
 
User avatar
infabo
Forum Guru
Forum Guru
Topic Author
Posts: 1465
Joined: Thu Nov 12, 2020 12:07 pm

Re: Netinstall CLI on Linux

Tue Dec 14, 2021 3:23 pm

I did run as root too. Same issue.

Who is online

Users browsing this forum: sindy, tornadoro and 30 guests