Re: [Lxc-users] Network problem on start
On 2011-07-02 17:03, Stuart Johnson wrote: Did you modify /etc/init/* scripts? The guest is also Natty? No, I didn't change the init scripts. Guest also Natty. Any particular script or log I should be looking at? If there is no gateway after startup, then your guest's network was not setup by guest, only by lxc, that's why there is gateway. Try this: $ cat /etc/init/lxclo.conf # description LXC vs. Upstart workarounds start on startup task console output script # As lxc 0.7's halt/reboot detection hack needs /var/run to NOT be a # tmpfs, we need to manually clean it -- esp. the ifstate file that # tells falsely tells ifupdown lo is up. # # To debug, add -printf Deleting stale file %p\n before -delete. find /var/run/ -xdev -not -path /var/run/ -delete initctl emit -n stopped JOB=udevtrigger initctl emit -n started JOB=udev # This one is needed for broken ifupdown NMU 0.6.8ubuntu29.1 initctl emit -n net-device-up IFACE=lo LOGICAL=lo ADDRFAM=inet METHOD=loopback end script Is lxcguest deb package installed? tamas -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Latest test results - Was: cgroups: support cgroups mounted in multiple places (v3)
Quoting Michael H. Warfield (m...@wittsend.com): ... F15 systemd: Passed. F12 single mount: Passed. F13 single mount: Passed. F14 single mount: Passed. F14 libcgroup:Failed. I had the default /etc/cgconfig.conf file and here are the results: [root@berserker-base ~]# cat /etc/cgconfig.conf # # Copyright IBM Corporation. 2007 # # Authors: Balbir Singh bal...@linux.vnet.ibm.com # This program is free software; you can redistribute it and/or modify it # under the terms of version 2.1 of the GNU Lesser General Public License # as published by the Free Software Foundation. # # This program is distributed in the hope that it would be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # See man cgconfig.conf for further details. # # By default, mount all separately controllers # to /cgroup/controller name mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; memory = /cgroup/memory; devices = /cgroup/devices; freezer = /cgroup/freezer; net_cls = /cgroup/net_cls; ns = /cgroup/ns; blkio = /cgroup/blkio; } [root@berserker-base ~]# uname -a Linux berserker-base.wittsend.com 2.6.35.13-92.fc14.i686 #1 SMP Sat May 21 17:39:42 UTC 2011 i686 i686 i386 GNU/Linux [root@berserker-base ~]# mount -t cgroup cgroup on /cgroup/cpuset type cgroup (rw,relatime,cpuset) cgroup on /cgroup/cpu type cgroup (rw,relatime,cpu) cgroup on /cgroup/cpuacct type cgroup (rw,relatime,cpuacct) cgroup on /cgroup/memory type cgroup (rw,relatime,memory) cgroup on /cgroup/devices type cgroup (rw,relatime,devices) cgroup on /cgroup/freezer type cgroup (rw,relatime,freezer) cgroup on /cgroup/net_cls type cgroup (rw,relatime,net_cls) cgroup on /cgroup/ns type cgroup (rw,relatime,ns) cgroup on /cgroup/blkio type cgroup (rw,relatime,blkio) [root@berserker-base ~]# lxc-start -n Ashaman lxc-start: no ns_cgroup option specified Just a thought - does F14's kernel not support clone_children? See output of ls /cgroup/cpuset and see if /cgroup/cpuset/cgroup.clone_children exists. If not, then yeah there's nothing that can be done without the ns cgroup. Thanks for testing! -serge -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Latest test results - Was: cgroups: support cgroups mounted in multiple places (v3)
On Sat, 2011-07-02 at 15:13 -0500, Serge Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): ... F15 systemd: Passed. F12 single mount: Passed. F13 single mount: Passed. F14 single mount: Passed. F14 libcgroup:Failed. I had the default /etc/cgconfig.conf file and here are the results: [root@berserker-base ~]# cat /etc/cgconfig.conf # # Copyright IBM Corporation. 2007 # # Authors: Balbir Singh bal...@linux.vnet.ibm.com # This program is free software; you can redistribute it and/or modify it # under the terms of version 2.1 of the GNU Lesser General Public License # as published by the Free Software Foundation. # # This program is distributed in the hope that it would be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # See man cgconfig.conf for further details. # # By default, mount all separately controllers # to /cgroup/controller name mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; memory = /cgroup/memory; devices = /cgroup/devices; freezer = /cgroup/freezer; net_cls = /cgroup/net_cls; ns = /cgroup/ns; blkio = /cgroup/blkio; } [root@berserker-base ~]# uname -a Linux berserker-base.wittsend.com 2.6.35.13-92.fc14.i686 #1 SMP Sat May 21 17:39:42 UTC 2011 i686 i686 i386 GNU/Linux [root@berserker-base ~]# mount -t cgroup cgroup on /cgroup/cpuset type cgroup (rw,relatime,cpuset) cgroup on /cgroup/cpu type cgroup (rw,relatime,cpu) cgroup on /cgroup/cpuacct type cgroup (rw,relatime,cpuacct) cgroup on /cgroup/memory type cgroup (rw,relatime,memory) cgroup on /cgroup/devices type cgroup (rw,relatime,devices) cgroup on /cgroup/freezer type cgroup (rw,relatime,freezer) cgroup on /cgroup/net_cls type cgroup (rw,relatime,net_cls) cgroup on /cgroup/ns type cgroup (rw,relatime,ns) cgroup on /cgroup/blkio type cgroup (rw,relatime,blkio) [root@berserker-base ~]# lxc-start -n Ashaman lxc-start: no ns_cgroup option specified Just a thought - does F14's kernel not support clone_children? See output of ls /cgroup/cpuset and see if /cgroup/cpuset/cgroup.clone_children exists. If not, then yeah there's nothing that can be done without the ns cgroup. 1) The ns cgroup does exist and is mounted. 2) It works with the single mount point and clone children is not present. To answer your question... [mhw@berserker-base ~]$ ls /cgroup/cpuset/ cgroup.event_controlcpuset.memory_spread_page cgroup.procscpuset.memory_spread_slab cpuset.cpu_exclusivecpuset.mems cpuset.cpus cpuset.sched_load_balance cpuset.mem_exclusivecpuset.sched_relax_domain_level cpuset.mem_hardwall libvirt cpuset.memory_migrate notify_on_release cpuset.memory_pressure release_agent cpuset.memory_pressure_enabled tasks I guess not... Thanks for testing! If that's all I can do, I'll do the best I can. I'm currently up to my eyeballs in another OpenSource project, some XAUTH coding in Openswan. I need about 6 clones of me, I swear. :-P -serge Regards, Mike -- Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0x674627FF| possible worlds. A pessimist is sure of it! signature.asc Description: This is a digitally signed message part -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] Latest test results - Was: cgroups: support cgroups mounted in multiple places (v3)
On Sat, 2011-07-02 at 23:04 +, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): On Sat, 2011-07-02 at 15:13 -0500, Serge Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): ... F15 systemd: Passed. F12 single mount: Passed. F13 single mount: Passed. F14 single mount: Passed. F14 libcgroup:Failed. I had the default /etc/cgconfig.conf file and here are the results: [root@berserker-base ~]# cat /etc/cgconfig.conf # # Copyright IBM Corporation. 2007 # # Authors: Balbir Singh bal...@linux.vnet.ibm.com # This program is free software; you can redistribute it and/or modify it # under the terms of version 2.1 of the GNU Lesser General Public License # as published by the Free Software Foundation. # # This program is distributed in the hope that it would be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # See man cgconfig.conf for further details. # # By default, mount all separately controllers # to /cgroup/controller name mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; memory = /cgroup/memory; devices = /cgroup/devices; freezer = /cgroup/freezer; net_cls = /cgroup/net_cls; ns = /cgroup/ns; blkio = /cgroup/blkio; } [root@berserker-base ~]# uname -a Linux berserker-base.wittsend.com 2.6.35.13-92.fc14.i686 #1 SMP Sat May 21 17:39:42 UTC 2011 i686 i686 i386 GNU/Linux [root@berserker-base ~]# mount -t cgroup cgroup on /cgroup/cpuset type cgroup (rw,relatime,cpuset) cgroup on /cgroup/cpu type cgroup (rw,relatime,cpu) cgroup on /cgroup/cpuacct type cgroup (rw,relatime,cpuacct) cgroup on /cgroup/memory type cgroup (rw,relatime,memory) cgroup on /cgroup/devices type cgroup (rw,relatime,devices) cgroup on /cgroup/freezer type cgroup (rw,relatime,freezer) cgroup on /cgroup/net_cls type cgroup (rw,relatime,net_cls) cgroup on /cgroup/ns type cgroup (rw,relatime,ns) cgroup on /cgroup/blkio type cgroup (rw,relatime,blkio) [root@berserker-base ~]# lxc-start -n Ashaman lxc-start: no ns_cgroup option specified Just a thought - does F14's kernel not support clone_children? See output of ls /cgroup/cpuset and see if /cgroup/cpuset/cgroup.clone_children exists. If not, then yeah there's nothing that can be done without the ns cgroup. 1) The ns cgroup does exist and is mounted. Yes but it needs to be composed with the others :) 2) It works with the single mount point and clone children is not present. Ok, cool. So the results make perfect sense. Sounds like we are in violent agreement then. Acked-by: Michael H. Warfield m...@wittsend.com thanks, -serge Regards, Mike -- Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0x674627FF| possible worlds. A pessimist is sure of it! signature.asc Description: This is a digitally signed message part -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users