Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation
On Fri, 16 May 2014 10:43:11 +0200 Wojciech Arabczyk ara...@gmail.com wrote: It would be best, if you'd try to create a deb package from the source package in sid, and then install via dpkg. Sorry, but i don't have time to provide specific instructions. You'll have to dig it out yourself. If needed, one can use my Debian packaging config here: https://github.com/kotnik/lxc/tree/debian-1.0.3 That is a clean 1.0.3 version with functioning debian/ package directory and it builds with python3 but without lua (since I don't need it). To quickly build and test under wheezy: dpkg-buildpackage -b -uc -us -- Nikola Kotur http://blog.kotur.org https://onename.io/kotnik signature.asc Description: PGP signature ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation
Hi, you're right on time, I was just beginning to compile lxc from the master branch and looking at options. Thanks for the package, it sounds great. Just to make sure, since I've already tried to install 1.0.3 from source and didn't get something consistent with the doc: do you get commands that actually behave like described in linuxcontainers.org? I mean `lxc-ls --fancy`, `--version` option available, etc... working like under Ubuntu 1.0.3 package? cheers Nikola Kotur mailto:kotn...@gmail.com 20 May 2014 17:02 On Fri, 16 May 2014 10:43:11 +0200 If needed, one can use my Debian packaging config here: https://github.com/kotnik/lxc/tree/debian-1.0.3 That is a clean 1.0.3 version with functioning debian/ package directory and it builds with python3 but without lua (since I don't need it). To quickly build and test under wheezy: dpkg-buildpackage -b -uc -us ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users Wojciech Arabczyk mailto:ara...@gmail.com 16 May 2014 16:43 It would be best, if you'd try to create a deb package from the source package in sid, and then install via dpkg. Sorry, but i don't have time to provide specific instructions. You'll have to dig it out yourself. With kind regards, -- pozdrawiam Wojciech Arabczyk ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users coolnodje mailto:coolno...@gmail.com 16 May 2014 11:26 apt-get remove lxc did the job before compiling 1.0.3. there's nothing left in /usr/bin and `which lxc-create` confirms it comes from /usr/local/bin So I understand, as expected, there shouldn't be any discrepancy between the Ubuntu 1.0.3 packaged version and the one I compiled on Debian, right? Something must have gone wrong then: could the option I used --with-distro=debian make a difference during ./configure? Also, I'd like to have everything in standard packaged lxc location except for the binaries. Would ./configure --prefix=/ --bindir=/usr/local would do ? The INSTALL file in the distrib is really well done and useful but a confirmation would be helpful. Thanks Wojciech Arabczyk mailto:ara...@gmail.com 15 May 2014 20:06 Hi, have you uninstalled the packaged version of lxc prior to installing the version from sources? Most probably, the /usr/bin lxc takes precedence to the one you installed to /usr/local prefix from the sources, cheers, coolnodje mailto:coolno...@gmail.com 15 May 2014 18:34 Hi, I've just compiled1.0.3 from source on Debian 7.5, without trouble. But I still get a behaviour that seem closer to v~0.8 that I got from apt-get beforehand, than to the version coming with Ubuntu 14.04. It's also not consistent with the https://linuxcontainers.org How to use it?: no `lxc-ls --fancy` option, no --version available, no man page... Did I do something wrong when compiling ? ./configure --with-distro=debian make make install ldconfig cheers -nodje ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation
On Tue, 20 May 2014 17:36:39 +0800 coolnodje coolno...@gmail.com wrote: Just to make sure, since I've already tried to install 1.0.3 from source and didn't get something consistent with the doc: do you get commands that actually behave like described in linuxcontainers.org? I mean `lxc-ls --fancy`, `--version` option available, etc... working like under Ubuntu 1.0.3 package? Yes I do: (platform)root@lab:~# lxc-attach --version 1.0.3 (platform)root@lab:~# lxc-ls --fancy NAME STATE IPV4 IPV6 AUTOSTART -- ... -- Nikola Kotur http://blog.kotur.org https://onename.io/kotnik signature.asc Description: PGP signature ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation
done, this is great and seems to be working fine, at least it's as expected. I'll copy in some container now and check that everything is all right. I understand now I wasn't probably enabling enough option during ./configure, but it seemed odd that even the very basic options like --version would not be enabled. Thanks a lot Nikola Kotur mailto:kotn...@gmail.com 20 May 2014 17:41 On Tue, 20 May 2014 17:36:39 +0800 Yes I do: (platform)root@lab:~# lxc-attach --version 1.0.3 (platform)root@lab:~# lxc-ls --fancy NAME STATE IPV4 IPV6 AUTOSTART -- ... ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users Nikola Kotur mailto:kotn...@gmail.com 20 May 2014 17:02 On Fri, 16 May 2014 10:43:11 +0200 If needed, one can use my Debian packaging config here: https://github.com/kotnik/lxc/tree/debian-1.0.3 That is a clean 1.0.3 version with functioning debian/ package directory and it builds with python3 but without lua (since I don't need it). To quickly build and test under wheezy: dpkg-buildpackage -b -uc -us ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users Wojciech Arabczyk mailto:ara...@gmail.com 16 May 2014 16:43 It would be best, if you'd try to create a deb package from the source package in sid, and then install via dpkg. Sorry, but i don't have time to provide specific instructions. You'll have to dig it out yourself. With kind regards, -- pozdrawiam Wojciech Arabczyk ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users coolnodje mailto:coolno...@gmail.com 16 May 2014 11:26 apt-get remove lxc did the job before compiling 1.0.3. there's nothing left in /usr/bin and `which lxc-create` confirms it comes from /usr/local/bin So I understand, as expected, there shouldn't be any discrepancy between the Ubuntu 1.0.3 packaged version and the one I compiled on Debian, right? Something must have gone wrong then: could the option I used --with-distro=debian make a difference during ./configure? Also, I'd like to have everything in standard packaged lxc location except for the binaries. Would ./configure --prefix=/ --bindir=/usr/local would do ? The INSTALL file in the distrib is really well done and useful but a confirmation would be helpful. Thanks Wojciech Arabczyk mailto:ara...@gmail.com 15 May 2014 20:06 Hi, have you uninstalled the packaged version of lxc prior to installing the version from sources? Most probably, the /usr/bin lxc takes precedence to the one you installed to /usr/local prefix from the sources, cheers, ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation
As far as i remember, my hand compilation experience shows, that it is really necessary to build against python3 - otherwise all those --fancy options don't work. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
[lxc-users] We need a lxc-top utility
Dear Friends I have 20+ containers with the same programs running. All of them are cpu-intensive. But one of them is eating way more CPU than the average. With top I have no idea which container owns that program. Perhaps we need a new lxc-top that would identify the process and the container, and maybe allow to sort by container-cpu or memory, or show cpu-container, memory-container, etc. Philip ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] We need a lxc-top utility
Hello CDR, .. If your containers are accessible over ssh, you can iterate through the containers and run a top or top-like command in each of them. You might need unique users though. for C in $(lxc-ls) do ssh $C top -n 1 sleep 1 done On the other hand, yes, it would be practical to see this directly on the top of the host. I think with a proper UID and GID mapping that should be possible somehow. As long we do not have unprivileged containers, and GID / UID mappings, we are still in development IMO. https://github.com/LaKing/Fedora-scripts greetings, ... On Wed, May 21, 2014 at 2:07 AM, CDR vene...@gmail.com wrote: Dear Friends I have 20+ containers with the same programs running. All of them are cpu-intensive. But one of them is eating way more CPU than the average. With top I have no idea which container owns that program. Perhaps we need a new lxc-top that would identify the process and the container, and maybe allow to sort by container-cpu or memory, or show cpu-container, memory-container, etc. Philip ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users -- Király István +36 209 753 758 lak...@d250.hu http://d250.hu ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] We need a lxc-top utility
On Wed, May 21, 2014 at 7:07 AM, CDR vene...@gmail.com wrote: Dear Friends I have 20+ containers with the same programs running. All of them are cpu-intensive. But one of them is eating way more CPU than the average. With top I have no idea which container owns that program. Perhaps we need a new lxc-top that would identify the process and the container, and maybe allow to sort by container-cpu or memory, or show cpu-container, memory-container, etc. Sure. Submit patches to create the utility. You can start from output of lxc-ps and lxc-info. In your case, you'd be most interested in CPU use. # lxc-ls --active build # lxc-info -n build -S -H CPU use:18523054463 BlkIO use: 2207232 Memory use: 12247040 Link: veth-build-0 TX bytes: 8670717 RX bytes: 227056 Total bytes: 8897773 Depending on what you're used to, it might be easier to either write something to extend snmp, or write a cacti plugin directly, and monitor the output using cacti or whatever-that-can-plot-raw-output-into-graph. -- Fajar ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users