[Lxc-users] lxc-start on openvz tempate
Papp Tamás
tompos at martos.bme.hu
Thu Jun 24 19:47:05 UTC 2010
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 DEBUG lxc_conf - allocated pty
> '/dev/pts/1' (4/5)
> lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
> '/dev/pts/2' (6/7)
> lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
> '/dev/pts/3' (8/9)
> lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
> '/dev/pts/4' (10/11)
> lxc-start 1277408070.110 INFO lxc_conf - tty's configured
> lxc-start 1277408070.111 DEBUG lxc_start - sigchild handler set
> lxc-start 1277408070.111 INFO lxc_start - 'fsn' is initialized
> lxc-start 1277408070.184 DEBUG lxc_cgroup - using cgroup
> mounted at '/cgroup'
> lxc-start 1277408070.184 ERROR lxc_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 ERROR lxc_start - failed to spawn 'fsn'
> lxc-start: failed to spawn 'fsn'
> lxc-start 1277408070.184 DEBUG lxc_cgroup - using cgroup
> mounted at '/cgroup'
> lxc-start 1277408070.184 ERROR lxc_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.allow memory.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.state memory.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.allow memory.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.state memory.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 ffffffffffffffb3
Jun 24 09:24:24 sopranos kernel: [142852.643127] IP:
[<ffffffff812b4045>] 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 usbhid hid tg3 ahci xor
Jun 24 09:24:24 sopranos kernel: [142852.643127] Pid: 31123, comm:
apparmor_parser Tainted: G D 2.6.32-22-server #36-Ubuntu
ProLiant ML150 G3
Jun 24 09:24:24 sopranos kernel: [142852.643127] RIP:
0010:[<ffffffff812b4045>] [<ffffffff812b4045>] kref_put+0x25/0x70
Jun 24 09:24:24 sopranos kernel: [142852.643127] RSP:
0018:ffff88012cdf9df8 EFLAGS: 00010206
Jun 24 09:24:24 sopranos kernel: [142852.643127] RAX: 00000000ffffffa3
RBX: ffffffffffffffb3 RCX: ffff88001402a800
Jun 24 09:24:24 sopranos kernel: [142852.643127] RDX: ffff8800abeaff00
RSI: ffffffff81280ca0 RDI: ffffffffffffffb3
Jun 24 09:24:24 sopranos kernel: [142852.643127] RBP: ffff88012cdf9e08
R08: 0000000000000000 R09: 0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] R10: 0000000000000005
R11: 0000000000000000 R12: ffffffff81280ca0
Jun 24 09:24:24 sopranos kernel: [142852.643127] R13: ffff88012cdf9f48
R14: 0000000000000003 R15: ffffffffffffffa3
Jun 24 09:24:24 sopranos kernel: [142852.643127] FS:
00007f46c405d6f0(0000) GS:ffff880006740000(0000) knlGS:0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] CS: 0010 DS: 0000 ES:
0000 CR0: 000000008005003b
Jun 24 09:24:24 sopranos kernel: [142852.643127] CR2: ffffffffffffffb3
CR3: 0000000169409000 CR4: 00000000000006e0
Jun 24 09:24:24 sopranos kernel: [142852.643127] DR0: 0000000000000000
DR1: 0000000000000000 DR2: 0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] DR3: 0000000000000000
DR6: 00000000ffff0ff0 DR7: 0000000000000400
Jun 24 09:24:24 sopranos kernel: [142852.643127] Process apparmor_parser
(pid: 31123, threadinfo ffff88012cdf8000, task ffff8801673596f0)
Jun 24 09:24:24 sopranos kernel: [142852.643127] Stack:
Jun 24 09:24:24 sopranos kernel: [142852.643127] ffff880126290000
ffff880126290000 ffff88012cdf9ec8 ffffffff812807c9
Jun 24 09:24:24 sopranos kernel: [142852.643127] <0> ffff88012cdf9e48
ffff88012cdf9e58 0000000000004f29 ffffffffffffffe3
Jun 24 09:24:24 sopranos kernel: [142852.643127] <0> 0100000000004f29
0000000000000000 0000000000004f29 ffffffffffffffa3
Jun 24 09:24:24 sopranos kernel: [142852.643127] Call Trace:
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff812807c9>]
aa_interface_replace_profiles+0x99/0x440
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff810397a9>] ?
default_spin_lock_flags+0x9/0x10
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff8127ca2c>]
aa_profile_load+0x3c/0x60
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff81143418>]
vfs_write+0xb8/0x1a0
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff8155a033>] ?
do_page_fault+0x153/0x3b0
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff81143c81>]
sys_write+0x51/0x80
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff810131b2>]
system_call_fastpath+0x16/0x1b
Jun 24 09:24:24 sopranos kernel: [142852.643127] Code: 0f ae f0 c9 c3 90
55 48 89 e5 48 83 ec 10 48 85 f6 48 89 1c 24 4c 89 64 24 08 48 89 fb 49
89 f4 74 3e 48 81 fe 00 45 13 81 74 22 <f0> ff 0b 0f 94 c2 31 c0 84 d2
74 0b 48 89 df 41 ff d4 b8 01 00
Jun 24 09:24:24 sopranos kernel: [142852.643127] RIP
[<ffffffff812b4045>] kref_put+0x25/0x70
Jun 24 09:24:24 sopranos kernel: [142853.183771] RSP <ffff88012cdf9df8>
Jun 24 09:24:24 sopranos kernel: [142853.183771] CR2: ffffffffffffffb3
Jun 24 09:24:24 sopranos kernel: [142853.220129] ---[ end trace
4ca3b524d48547b8 ]---
Jun 24 09:24:24 sopranos kernel: [142853.255238] type=1505
audit(1277364264.611:36581): operation="profile_replace"
info="unsupported interface version" pid=31129
Thank you,
tamas
More information about the lxc-users
mailing list