[Lxc-users] centos6 container and root login

olx69 ope-linux at gmx.de
Tue Oct 23 05:52:28 UTC 2012


>>> basically I did follow
>>> http://wiki.1tux.org/wiki/Centos6/Installation/Minimal_installation_using_yum
>>>
>>> Additionally I added
>>>
>>> echo "pts/0" >> /etc/securetty
>>>
>>> to the lxc container to allow root login,
>
> You shouldn't need that.

So I will remove it.

>>> but it doesn't allow me this.
>>> Any hints for this? The goal is to run postgresql 9.x, bacula 5.x and
>>> others inside the lxc env.
>>>
>
> As papp mentioned, you'd probably have problems there (at least if the
> host is ubuntu) since postgres use shared memory and apparmor doesn't
> allow setting it.

this is really sad, therefore I've to use a dedicated kvm instance which 
is another story ...

>> to be more precise, I've got after root/passwd phrase the option:
>>
>> Would you like to enter a security context? [N]
>
> Looks like selinux problem? Can you try disabling selinux in the host
> (and possibly in the guest as well) with "setenforce 0".
>

I''ve seen this in some web articles but it doesn't help. Anway, I check 
it again.

Thanks,
Olaf





More information about the lxc-users mailing list