[lxc-users] error: Failed to initialize NSS library

Serge E. Hallyn serge at hallyn.com
Mon Dec 23 17:52:09 UTC 2019


On Mon, Dec 23, 2019 at 11:17:16AM +0100, Jorge Samuel wrote:
> Hi folks, I tried to create a LXC container on CentOS7.5 with centos
> template and lxc-create
> It works with a minimal Centos 7.5 minimal ISO.
> So I tried to make a Kickstart to install Centos 7.5. It works.
> But now when I tried to  create a LXC container on CentOS7.5  with centos
> template  and lxc-create, I have an error message like this:
> 
> 
> 
> I am getting error when installing updates or patches in RHEL-7.7.3..
> 
> error: Failed to initialize NSS library

This is a tell-tale sign that your container does not have /dev/urandom.
Providing that should fix it.  (You can use an lxc.mount.entry to bind
mount the host one, or mknod it in the rootfs)

> There was a problem importing one of the Python modules
> 
> required to run yum. The error leading to this problem was:
> 
> 
>    cannot import name ts.
> 
> Yum seems broken.
> 
> 
> Why I have this differences from normal installation from an ISO and
> Kickstart Install because I have the same packages core installed?
> 
> Many Thanks.

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list