[Lxc-users] Howto detect we are in LXC contener

2011-05-25 Thread David Touzeau
Dear all to detect if we are inside an OpenVZ, openvzve,xen machine we can check the presence of : /proc/vz/veinfo /proc/vz/version /proc/sys/xen /sys/bus/xen /proc/xen But i did not find any information inside the LXC contener in order to detect We are really in an LXC contener. Is there a tip

Re: [Lxc-users] Howto detect we are in LXC contener

2011-05-25 Thread Stéphane Graber
On Thu, 2011-05-26 at 01:51 +0200, David Touzeau wrote: Dear all to detect if we are inside an OpenVZ, openvzve,xen machine we can check the presence of : /proc/vz/veinfo /proc/vz/version /proc/sys/xen /sys/bus/xen /proc/xen But i did not find any information inside the LXC contener

Re: [Lxc-users] Howto detect we are in LXC contener

2011-05-25 Thread Brian K. White
On 5/25/2011 7:51 PM, David Touzeau wrote: Dear all to detect if we are inside an OpenVZ, openvzve,xen machine we can check the presence of : /proc/vz/veinfo /proc/vz/version /proc/sys/xen /sys/bus/xen /proc/xen But i did not find any information inside the LXC contener in order to

Re: [Lxc-users] Howto detect we are in LXC contener

2011-05-25 Thread Ulli Horlacher
On Thu 2011-05-26 (01:51), David Touzeau wrote: But i did not find any information inside the LXC contener in order to detect We are really in an LXC contener. My trick is to mount cgroup into the container at /lxc/cgroup: root@vms2:/lxc# grep cgroup flupp.fstab /cgroup/flupp