[lxc-users] Accessing /proc files inside container

Joshua Schaeffer jschaeffer0922 at gmail.com
Mon Oct 3 14:26:59 UTC 2016


I have a user that is trying to do an "ipsec start" inside a container and
they are getting the following error:

[root at utah ~]# ipsec start
/usr/libexec/ipsec/_stackmanager: line 143:
/proc/sys/net/core/xfrm_acq_expires: No such file or directory
systemd: ipsec service is already running

When I look under the /proc/sys/net/core/ folder in the container there are
no files:

[root at utah ~]# ls -l /proc/sys/net/core
total 0

But when I look on the host I can see the xfrm_acq_expires files. How can I
get the container to see these files as well?

lxduser at kerrigan:~$ ls -l /proc/sys/net/core
total 0
-rw-r--r-- 1 root root 0 Sep 30 23:14 bpf_jit_enable
-rw-r--r-- 1 root root 0 Sep 30 23:14 busy_poll
-rw-r--r-- 1 root root 0 Sep 30 23:14 busy_read
-rw-r--r-- 1 root root 0 Sep 30 23:14 default_qdisc
-rw-r--r-- 1 root root 0 Sep 30 23:14 dev_weight
-rw-r--r-- 1 root root 0 Sep 30 23:14 flow_limit_cpu_bitmap
-rw-r--r-- 1 root root 0 Sep 30 23:14 flow_limit_table_len
-rw-r--r-- 1 root root 0 Sep 30 23:14 max_skb_frags
-rw-r--r-- 1 root root 0 Sep 30 23:14 message_burst
-rw-r--r-- 1 root root 0 Sep 30 23:14 message_cost
-rw-r--r-- 1 root root 0 Sep 30 23:14 netdev_budget
-rw-r--r-- 1 root root 0 Sep 30 23:14 netdev_max_backlog
-r--r--r-- 1 root root 0 Sep 30 23:14 netdev_rss_key
-rw-r--r-- 1 root root 0 Sep 30 23:14 netdev_tstamp_prequeue
-rw-r--r-- 1 root root 0 Sep 30 23:14 optmem_max
-rw-r--r-- 1 root root 0 Sep 30 23:14 rmem_default
-rw-r--r-- 1 root root 0 Sep 30 23:14 rmem_max
-rw-r--r-- 1 root root 0 Sep 30 23:14 rps_sock_flow_entries
-rw-r--r-- 1 root root 0 Aug  5 07:20 somaxconn
-rw-r--r-- 1 root root 0 Sep 30 23:14 tstamp_allow_data
-rw-r--r-- 1 root root 0 Sep 30 23:14 warnings
-rw-r--r-- 1 root root 0 Sep 30 23:14 wmem_default
-rw-r--r-- 1 root root 0 Sep 30 23:14 wmem_max
-rw-r--r-- 1 root root 0 Sep 30 23:14 xfrm_acq_expires
-rw-r--r-- 1 root root 0 Sep 30 23:14 xfrm_aevent_etime
-rw-r--r-- 1 root root 0 Sep 30 23:14 xfrm_aevent_rseqth
-rw-r--r-- 1 root root 0 Sep 30 23:14 xfrm_larval_drop

Thanks,
Joshua Schaeffer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161003/48f91cb8/attachment.html>


More information about the lxc-users mailing list