Skip to content

OAI fails when running inside an unprivileged LXC container

Hi there,

I am trying to run OAI in an unprivileged Proxmox LXC.

At the very beginning of the gNB execution, an assertion error occurs when calling pthread_create(). It returns the errno 1 (EPERM), i.e., Operation not permitted.

The cause is that OAI is trying to create high priority threads. This action is not permitted by the host's kernel. Specifically, I noticed the following logs (from successful execution in a privileged LXC), which report the creation of two threads with priority 2 and 1:

[UTIL] threadCreate() for MAC_STATS: creating thread with affinity ffffffff, priority 2

[UTIL] threadCreate() for L1_stats: creating thread with affinity ffffffff, priority 1

I think that it is unnecessary for OAI to access these priority levels (other OAI threads have priority 50 and 97), so my intention with this issue is to propose to the OAI community to lower the priority of these threads and overcome the above error.

Bests, Oscar