12-04-2023 10:20 PM
I am having an issue with using NI-VISA API from within an LXC Linux Container. Specifically, calling the viPrintf() leads to the program aborting with the following trace.
"
libnipalu.so failed to initialize
Verify that nipalk.ko is built and loaded.
Aborted (core dumped)
"
Further investigation points to the fact that I can't write to /dev/nipalk when inside the container
"
/home/agent/build# echo 0 > /dev/nipalk
bash: /dev/nipalk: Operation not permitted
"
The program works fine from my native OS but not within the container. My setup:
Host OS: Ubuntu 20.04
Container: Ubuntu 22.04
I am also asking on the LXC forum but also trying my luck here. Some comments on what nipalk is doing underneath would also be nice.
The test program used is attached below.
Solved! Go to Solution.
12-05-2023 04:04 AM
This is an LXC setting issue and has been resolved. For reference see the LXC thread: https://discuss.linuxcontainers.org/t/writing-to-dev-nipalk-permission-not-permitted/18427/3