From: Eugene Prokopiev <enp@itx.ru> To: ALT Linux Sisyphus discussions <Sisyphus@lists.altlinux.org> Subject: [sisyphus] delayed network start in systemd-nspawn container Date: Sun, 6 Sep 2015 17:40:44 +0300 Message-ID: <CANM4Ruhaa4w=ncdYJwfFW7xWn0KsRS-aL8Bhysha=K6OJ-CJhw@mail.gmail.com> (raw) Здравствуйте! Создаю и запускаю контейнер примерно так: machinectl import-tar container.tar.xz box0 machinectl enable box0 cp /lib/systemd/system/systemd-nspawn\@.service /etc/systemd/system/systemd-nspawn@box0.service subst 's/veth/ipvlan=enp0s3/g' /etc/systemd/system/systemd-nspawn@box0.service cp /etc/systemd/network/static.network /var/lib/machines/box0/etc/systemd/network/static.network subst 's/enp0s3/iv-enp0s3/g' /var/lib/machines/box0/etc/systemd/network/static.network subst 's/10.0.0.1/10.0.0.11/g' /var/lib/machines/box0/etc/systemd/network/static.network machinectl start box0 После этого можно ждать сколь угодно долго, но с других физических хостов из сети 10.0.0.0/24 контейнер не будет пинговаться, пока не сделать machinectl login box0 и пинг кого-нибудь (сразу удачный). После machinectl reboot box0 (но только в том случае, если до ребута делали логин) контейнер пингуется сразу, хотя через некоторое время может снова пропасть из сети. Ну и из хост-системы (как я писал в предыдущем письме) он вообще не пингуется. Это у кого-нибудь воспроизводится? -- WBR, Eugene Prokopiev
next reply other threads:[~2015-09-06 14:40 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-09-06 14:40 Eugene Prokopiev [this message] 2015-09-08 17:33 ` Eugene Prokopiev 2015-09-08 18:59 ` Sergey Alembekov 2015-09-09 12:26 ` Eugene Prokopiev 2015-09-09 13:49 ` Eugene Prokopiev 2015-09-10 9:28 ` Anton Farygin 2015-09-10 13:05 ` Eugene Prokopiev 2015-09-10 13:33 ` Eugene Prokopiev 2015-09-09 9:34 ` Anton Farygin
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='CANM4Ruhaa4w=ncdYJwfFW7xWn0KsRS-aL8Bhysha=K6OJ-CJhw@mail.gmail.com' \ --to=enp@itx.ru \ --cc=Sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git