Re: [Lxc-users] lxc-start on openvz tempate
On Thu, 2010-06-24 at 08:55 +0200, Daniel Lezcano wrote: : - snip Console output is not defaulting to the current tty, so you have to specify lxc-start -n fsn -s lxc.console=$(tty) That will be fixed for 0.7.1, I will release probably tomorrow. Will that also be including the ro bind mount options as discussed in some other threads? I would like to deploy and test that and test to see if remounting still propagates ro/rw changes between containers. Thanks -- Daniel 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 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-start on openvz tempate
Papp Tamás wrote, On 2010. 06. 24. 21:43: Daniel Lezcano wrote, On 2010. 06. 24. 8:55: Console output is not defaulting to the current tty, so you have to specify lxc-start -n fsn -s lxc.console=$(tty) That will be fixed for 0.7.1, I will release probably tomorrow. I've just realized, what do you mean. My problem is not the lack of console messages, but the functionality. It's just not working, for example I can't ping it. But right now this is the smaller problem. The bigger is that I cannot stop or destroy it properly: $ lxc-start -l DEBUG -o $(tty) -n fsn -s lxc.console=$(tty) lxc-start 1277408070.110 DEBUGlxc_conf - allocated pty '/dev/pts/1' (4/5) lxc-start 1277408070.110 DEBUGlxc_conf - allocated pty '/dev/pts/2' (6/7) lxc-start 1277408070.110 DEBUGlxc_conf - allocated pty '/dev/pts/3' (8/9) lxc-start 1277408070.110 DEBUGlxc_conf - allocated pty '/dev/pts/4' (10/11) lxc-start 1277408070.110 INFO lxc_conf - tty's configured lxc-start 1277408070.111 DEBUGlxc_start - sigchild handler set lxc-start 1277408070.111 INFO lxc_start - 'fsn' is initialized lxc-start 1277408070.184 DEBUGlxc_cgroup - using cgroup mounted at '/cgroup' lxc-start 1277408070.184 ERRORlxc_cgroup - Device or resource busy - failed to remove previous cgroup '/cgroup/fsn' lxc-start: Device or resource busy - failed to remove previous cgroup '/cgroup/fsn' lxc-start 1277408070.184 ERRORlxc_start - failed to spawn 'fsn' lxc-start: failed to spawn 'fsn' lxc-start 1277408070.184 DEBUGlxc_cgroup - using cgroup mounted at '/cgroup' lxc-start 1277408070.184 ERRORlxc_cgroup - Device or resource busy - failed to remove cgroup '/cgroup/fsn' lxc-start: Device or resource busy - failed to remove cgroup '/cgroup/fsn' $ ls /cgroup/fsn cgroup.procs cpuset.mem_exclusive cpuset.sched_relax_domain_level memory.limit_in_bytes memory.swappiness cpuacct.stat cpuset.mem_hardwall cpu.shares memory.max_usage_in_bytes memory.usage_in_bytes cpuacct.usage cpuset.memory_migrate devices.allowmemory.memsw.failcnt memory.use_hierarchy cpuacct.usage_percpu cpuset.memory_pressure devices.deny memory.memsw.limit_in_bytes net_cls.classid cpu.rt_period_us cpuset.memory_spread_page devices.list memory.memsw.max_usage_in_bytes notify_on_release cpu.rt_runtime_us cpuset.memory_spread_slab freezer.statememory.memsw.usage_in_bytes tasks cpuset.cpu_exclusive cpuset.mems memory.failcnt memory.soft_limit_in_bytes cpuset.cpus cpuset.sched_load_balance memory.force_empty memory.stat $ lxc-destroy -n fsn $ ls /cgroup/fsn cgroup.procs cpuset.mem_exclusive cpuset.sched_relax_domain_level memory.limit_in_bytes memory.swappiness cpuacct.stat cpuset.mem_hardwall cpu.shares memory.max_usage_in_bytes memory.usage_in_bytes cpuacct.usage cpuset.memory_migrate devices.allowmemory.memsw.failcnt memory.use_hierarchy cpuacct.usage_percpu cpuset.memory_pressure devices.deny memory.memsw.limit_in_bytes net_cls.classid cpu.rt_period_us cpuset.memory_spread_page devices.list memory.memsw.max_usage_in_bytes notify_on_release cpu.rt_runtime_us cpuset.memory_spread_slab freezer.statememory.memsw.usage_in_bytes tasks cpuset.cpu_exclusive cpuset.mems memory.failcnt memory.soft_limit_in_bytes cpuset.cpus cpuset.sched_load_balance memory.force_empty memory.stat I'm really confused:( I user lxc on other Lucid servers with no problem. BTW, I don't know whether it matters or not, this morning: Jun 24 09:24:24 sopranos kernel: [142852.638965] BUG: unable to handle kernel paging request at ffb3 Jun 24 09:24:24 sopranos kernel: [142852.643127] IP: [812b4045] kref_put+0x25/0x70 Jun 24 09:24:24 sopranos kernel: [142852.643127] PGD 1003067 PUD 1004067 PMD 0 Jun 24 09:24:24 sopranos kernel: [142852.643127] Oops: 0002 [#14] SMP Jun 24 09:24:24 sopranos kernel: [142852.643127] last sysfs file: /sys/devices/platform/i5k_amb.0/temp4_alarm Jun 24 09:24:24 sopranos kernel: [142852.643127] CPU 5 Jun 24 09:24:24 sopranos kernel: [142852.643127] Modules linked in: bridge stp xfs exportfs i5000_edac edac_core i5k_amb fbcon tileblit font bitblit softcursor vga16fb vgastate lp serio_raw shpchp parport raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor async_memcpy async_tx raid1 raid0 multipath linear dm_raid45
Re: [Lxc-users] lxc-start on openvz tempate
Daniel Lezcano wrote, On 2010. 06. 24. 22:38: That's probably mean the container is already running. Did you checked with lxc-ps --name fsn ? Well, you are right. But shouldn't it also show it with lxc-ps --lxc ? $ lxc-destroy -n fsn That will destroy the container, remove the container's configuration, rootfs, etc ... The cgroup is destroyed when the container exits not with lxc-destroy. I just write it, as nothing cat help. At this point, you will have to create your container again. Of course I did, but lxc-stop don't stop it. Also I tried with 0.7.1. [..] I'v just successfully stopped the container after trying it a couple of times. Finally I could start it successfully. Thank for your help, tamas -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-start on openvz tempate
On 06/24/2010 11:16 PM, Papp Tamás wrote: Daniel Lezcano wrote, On 2010. 06. 24. 22:38: That's probably mean the container is already running. Did you checked with lxc-ps --name fsn ? Well, you are right. But shouldn't it also show it with lxc-ps --lxc ? Yes, correct. The --lxc option will show all the containers. [ ... ] Finally I could start it successfully. Cool :) Thank for your help, You are welcome. -- Daniel -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-start on openvz tempate
Serge E. Hallyn wrote, On 2010. 06. 23. 15:32: Quoting Daniel Lezcano (dlezc...@fr.ibm.com): On 06/23/2010 11:57 AM, Papp Tamás wrote: Daniel Lezcano wrote, On 2010. 06. 23. 11:55: What version of lxc are you using ? Sorry:0 This is an Ubuntu 10.04 and lxc 0.6.5. I think it is fixed with the 0.7.0 version. Can you check against this version ? It is probable it will hit the ubuntu update very soon. I'm waiting for the debian package to be released, and that will be pulled in for maverick. I do have a lxc 0.7.0 package in my own ppa for maverick (10.10) at ppa:serge-hallyn/virt, if you don't want to install from git, but install from git worked perfectly for me. If you prefer, I can put a lucid package up in my ppa. But 0.7.0 isn't likely to hit lucid itself. Well, I tried this, and now it's btter, but still not good enough: $ lxc-start -l DEBUG -o $(tty) -n fsn lxc-start 1277328390.348 DEBUGlxc_conf - allocated pty '/dev/pts/1' (4/5) lxc-start 1277328390.348 DEBUGlxc_conf - allocated pty '/dev/pts/2' (6/7) lxc-start 1277328390.348 DEBUGlxc_conf - allocated pty '/dev/pts/3' (8/9) lxc-start 1277328390.348 DEBUGlxc_conf - allocated pty '/dev/pts/4' (10/11) lxc-start 1277328390.348 INFO lxc_conf - tty's configured lxc-start 1277328390.348 DEBUGlxc_start - sigchild handler set lxc-start 1277328390.348 INFO lxc_start - 'fsn' is initialized lxc-start 1277328390.431 DEBUGlxc_cgroup - using cgroup mounted at '/cgroup' lxc-start 1277328390.431 DEBUGlxc_cgroup - '/cgroup/24650' renamed to '/cgroup/fsn' lxc-start 1277328390.431 INFO lxc_conf - 'fsn' hostname has been setup lxc-start 1277328390.432 DEBUGlxc_cgroup - using cgroup mounted at '/cgroup' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.deny' set to 'a' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 1:3 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 1:5 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 5:1 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 5:0 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 4:0 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 4:1 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 1:9 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 1:8 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 136:* rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 5:2 rwm' lxc-start 1277328390.432 DEBUGlxc_conf - cgroup 'devices.allow' set to 'c 254:0 rwm' lxc-start 1277328390.432 INFO lxc_conf - cgroup has been setup lxc-start 1277328390.432 INFO lxc_conf - mount points have been setup lxc-start 1277328390.432 INFO lxc_conf - no console output required lxc-start 1277328390.432 INFO lxc_conf - 4 tty(s) has been setup lxc-start 1277328390.432 DEBUGlxc_conf - mounted '/data/lxc/fsn/rootfs' on '/usr/lib/lxc/lxc/rootfs' lxc-start 1277328390.432 DEBUGlxc_conf - mountpoint for old rootfs is '/usr/lib/lxc/lxc/rootfs/mnt' lxc-start 1277328390.432 DEBUGlxc_conf - pivot_root syscall to '/usr/lib/lxc/lxc/rootfs' successful lxc-start 1277328397.743 DEBUGlxc_conf - umounted '/mnt/dev/pts' lxc-start 1277328399.953 DEBUGlxc_conf - umounted '/mnt/dev/shm' lxc-start 1277328404.433 DEBUGlxc_conf - umounted '/mnt/sys/fs/fuse/connections' lxc-start 1277328406.983 DEBUGlxc_conf - umounted '/mnt/sys/kernel/debug' lxc-start 1277328409.363 DEBUGlxc_conf - umounted '/mnt/sys/kernel/security' lxc-start 1277328411.663 DEBUGlxc_conf - umounted '/mnt/proc' lxc-start 1277328413.923 DEBUGlxc_conf - umounted '/mnt/var/run' lxc-start 1277328416.253 DEBUGlxc_conf - umounted '/mnt/var/lock' lxc-start 1277328418.553 DEBUGlxc_conf - umounted '/mnt/lib/init/rw' lxc-start 1277328423.043 DEBUGlxc_conf - umounted '/mnt/data/ftp/oktatas' lxc-start 1277328425.313 DEBUGlxc_conf - umounted '/mnt/data/ftp/pub' lxc-start 1277328427.553 DEBUGlxc_conf - umounted '/mnt/data/mailman/archives' lxc-start 1277328429.793 DEBUGlxc_conf - umounted '/mnt/tmp' lxc-start 1277328434.293 DEBUGlxc_conf - umounted '/mnt/var/lib/ldap' lxc-start 1277328436.503 DEBUGlxc_conf - umounted '/mnt/cgroup' lxc-start 1277328438.743 DEBUGlxc_conf - umounted '/mnt/data/lxc/fsn/rootfs/dev/tty1' lxc-start 1277328441.063 DEBUGlxc_conf - umounted