Issue #4995 has been updated by Krzysztof Wilczynski. Assignee changed from Jonas Genannt to John Warburton
Unfortunately, looking only for a "/groups" mount point is not enough to detect whether a particular systems is indeed running LXC or not. Control Groups are used by many other projects and/or software solutions to control resources allocation e.g. Linux VServer; which is very close in terms of what it does and how it works to LXC (albeit more complex and way more mature). There are few tricks you can use to detect whether LXC is installed and enabled, and also whether you are inside a container (guest) or on a host system, yet there is not a single "silver bullet" -- so to speak -- to use at this point in time that allows for accurate detection and support in user-space tools is also quite weak at the moment. In other words -- doable but for any decent accuracy we need to use more than one source of information upon which a decision would be made, etc ... Said that, I am looking at LXC to use it at work, and therefore started looking on how to detect things properly which might turn into correct fact source for LXC :-) KW ---------------------------------------- Feature #4995: LXC Container support https://projects.puppetlabs.com/issues/4995 Author: Jonas Genannt Status: Investigating Priority: Low Assignee: John Warburton Category: library Target version: Keywords: virtual,lxc Branch: Affected Facter version: The virtual fact for facter should support lxc containers. For more information about lxc: http://lxc.sourceforge.net/ We can detect an running lxc master system, if /cgroup is mounted on the system. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
