Erro ao criar o contêiner lxc no Ubuntu 16.0.4LTS 32bit

0

Estou executando o Ubuntu 32-bit 16.0.4.

> cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

> uname -a
Linux manik 4.4.0-36-generic #55 SMP Tue Sep 13 15:51:05 PDT 2016 i686 i686 i686 GNU/Linux

Eu instalei o lxc package através do seguinte:

sudo apt-get install lxc

Depois disso, criei um arquivo de configuração para unprivileged container in ~/.config/lxc/default.conf as:

lxc.id_map = u 0 100000 65536
lxc.id_map = g 0 100000 65536
lxc.network.type = veth
lxc.network.link = lxcbr0

Eu tentei criar um contêiner sem privilégios, mas recebi erros:

lxc-create -t download -n game_container -l DEBUG -o /tmp/lxc-create -- --no-validate -d ubuntu -r xenial -a i386
Downloading the image index
ERROR: Failed to download http://images.linuxcontainers.org//meta/1.0/index-user
lxc-create: lxccontainer.c: create_run_template: 1290 container creation template for game_container failed
lxc-create: tools/lxc_create.c: main: 318 Error creating container game_container

Eu olhei para o arquivo de log /tmp/lxc-create e ele tinha as seguintes entradas:

     lxc-create 20160914131038.765 INFO     lxc_confile - confile.c:config_idmap:1500 - read uid map: type u nsid 0 hostid 100000 range 65536
     lxc-create 20160914131038.765 INFO     lxc_confile - confile.c:config_idmap:1500 - read uid map: type g nsid 0 hostid 100000 range 65536
     lxc-create 20160914131038.876 INFO     lxc_confile - confile.c:config_idmap:1500 - read uid map: type u nsid 0 hostid 100000 range 65536
     lxc-create 20160914131038.876 INFO     lxc_confile - confile.c:config_idmap:1500 - read uid map: type g nsid 0 hostid 100000 range 65536
     lxc-create 20160914131052.728 ERROR    lxc_container - lxccontainer.c:create_run_template:1290 - container creation template for game_container failed
     lxc-create 20160914131052.732 INFO     lxc_container - lxccontainer.c:container_destroy:2387 - Destroyed rootfs for game_container
     lxc-create 20160914131052.735 INFO     lxc_container - lxccontainer.c:container_destroy:2403 - Destroyed directory for game_container
     lxc-create 20160914131052.735 ERROR    lxc_create_ui - tools/lxc_create.c:main:318 - Error creating container game_container

Alguma ideia do que está acontecendo aqui? Há algo que eu esteja fazendo errado?

    
por Monku 14.09.2016 / 22:20

1 resposta

0

Consegui corrigir este problema. O problema foi com a instalação openssl na minha distribuição. Poucos dias atrás, eu estava brincando com o openssl e seus certificados de ca. que parece ter bagunçado o meu sistema de todo o openssl. Eu reinstalei o openssl e tudo funcionou bem.

Foi pouco trabalho descobrir a causa. o script de modelo lxc-download não apresenta nenhum erro informativo, então eu tive que olhar um pouco. E, finalmente, descobriu que a verificação do certificado ca estava falhando.

    
por Monku 15.09.2016 / 23:45