Ticket #202 (closed enhancement: fixed)
Opened 10 months ago
Last modified 10 months ago
[patch] Support for lxc containers
Reported by: | www.google.com/accounts/o8/id?id=aitoawkdrfjwkw0m08vjwopkly4ntpup9sqnoeq | Owned by: | roy |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | rc | Version: | 0.5 |
Keywords: | Cc: |
Description
This is patch for adding LXC ( http://lxc.sourceforge.net/) detection and '-lxc' keyword into some init.d scripts.
Most of scripts made as-in-openvz, but there is some questions with modules (they could be, or couldn't be modprobe'd depending of what tool are you using (lxc or libvirt)) procfs (which is trying to modprobe usb) and some others.
Attachments
Change History
Changed 10 months ago by www.google.com/accounts/o8/id?id=aitoawkdrfjwkw0m08vjwopkly4ntpup9sqnoeq
- attachment 0006-add-lxc-support.patch added
comment:1 Changed 10 months ago by www.google.com/accounts/o8/id?id=aitoawkdrfjwkw0m08vjwopkly4ntpup9sqnoeq
localhost night # cat /proc/self/cgroup 127:freezer,devices,memory,cpuacct,cpu,ns,cpuset:/template
That's how it looks like (for detection), where 'template' is container's name. For host it has just '/' value:
hellgate lxc-scripts # cat /proc/self/cgroup 127:freezer,devices,memory,cpuacct,cpu,ns,cpuset:/
comment:2 Changed 10 months ago by roy.marples.name
- Status changed from new to closed
- Resolution set to fixed
Fixed in 95ee39ab1c9ce313725098999cf1d05b42f9c126
I have no idea who you are, but if you want to be credited in the future include your name in the patch.
Thanks!
comment:3 Changed 10 months ago by www.google.com/accounts/o8/id?id=aitoawkdrfjwkw0m08vjwopkly4ntpup9sqnoeq
OpenID rocks =)
It was mirrored into gentoo bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=291364
Thanks for fixing.