ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Maxim Vetsalo <mvetsalo@fcss.org.ru>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] Не запускается образ alt/p9 в контейнере LXC/LXD
Date: Mon, 05 Aug 2019 14:01:26 +0300
Message-ID: <22705831565002886@myt6-add70abb4f02.qloud-c.yandex.net> (raw)

Добрый день!

Решил попробовать LXC/LXD контейнеры: 
 - поставил на свободную машину alt-p9-jeos-20190626-x86_64;
 - запустил zFS и настроил монитрование CGroups через пакет cgroup (включил демон cgconfig, cgred - не включал);
 - установил lxd и то, что попросил lxd init;
 - поправил /etc/subuid и /etc/subgid.

В результате удалось запустить в контейнере Ubuntu/18.10 Ubuntu/18.04 и ALT/p8. А вот ALT/p9 стартовать наотрез отказывается. Причем, как тот, который лежит на linuxcontainers.org, так и ALT/p8 обновленный до p9 внутри работающего контейнера.

В отладку выдается:
INFO[08-05|13:54:29] Container initiated stop                 stateful=false project=default name=alt-p9 action=stop created=2019-08-05T11:47:13+0300 ephemeral=false used=2019-08-05T13:54:28+0300
DBUG[08-05|13:54:29] Scheduler: container alt-p9 stopped: re-balancing

В логе:
lxc alt-p9 20190805105429.122 NOTICE   conf - conf.c:lxc_setup:3692 - The container "alt-p9" is set up
lxc alt-p9 20190805105429.122 NOTICE   start - start.c:start:2025 - Exec'ing "/sbin/init"
lxc alt-p9 20190805105429.124 NOTICE   start - start.c:post_start:2036 - Started "/sbin/init" with pid "3932"
lxc alt-p9 20190805105429.124 NOTICE   start - start.c:signal_handler:430 - Received 17 from pid 3933 instead of container init 3932
lxc alt-p9 20190805105429.178 INFO     error - error.c:lxc_error_set_and_log:49 - Child <3932> ended on error (255)
lxc alt-p9 20190805105429.178 WARN     network - network.c:lxc_delete_network_priv:2589 - Operation not permitted - Failed to remove interface "eth0" with index 16
lxc alt-p9 20190805105429.178 WARN     conf - conf.c:lxc_map_ids:2919 - newuidmap is lacking necessary privileges
lxc alt-p9 20190805105429.178 WARN     conf - conf.c:lxc_map_ids:2925 - newgidmap is lacking necessary privileges
lxc alt-p9 20190805105429.180 INFO     conf - conf.c:run_script_argv:356 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "alt-p9", config section "lxc"
lxc alt-p9 20190805105429.694 INFO     conf - conf.c:run_script_argv:356 - Executing script "/usr/bin/lxd callhook /var/lib/lxd 4 stop" for container "alt-p9", config section "lxc"

Подскажите, куда копать...


С уважением,
М.П. Вецало.
---


                 reply	other threads:[~2019-08-05 11:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22705831565002886@myt6-add70abb4f02.qloud-c.yandex.net \
    --to=mvetsalo@fcss.org.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git