From: Aleksey Avdeev <solo@solin.spb.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Cc: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [Sysadmins] ovz+veth+bridge Date: Mon, 17 Sep 2007 02:51:44 +0400 Message-ID: <46EDB380.7060401@solin.spb.ru> (raw) In-Reply-To: <46ED5E28.3030708@solin.spb.ru> Aleksey Avdeev пишет: > Dmitry V. Levin пишет: >> On Tue, Jul 03, 2007 at 01:33:59PM +0400, Aleksey Avdeev wrote: >>> Alexey Borovskoy пишет: >>>> Добрый день. >>>> >>>> Надо при старте контейнера ovz добавлять veth в бридж. >> А при выключении контейнера -- удалять? >> >>>> Вопрос что и куда прописать? Не дайте дойти до правки скриптов, >>>> ибо не кошерно это. >>> Как без правки скриптов -- не знаю. :-( >>> >>> Правил: >>> >>> 1. etcnet, setup-bri для возможности запуска setup-bri из командной >>> строки (см. >>> <http://git.altlinux.ru/people/solo/packages/?p=etcnet.git;a=commitdiff;h=aa23fe582ab7b0d7a2955b39c517327d570c4e4b>). > > NMU с данной правкой залил в виде etcnet-0.9.3-alt3.1 (см. ^^^^^^^^^^^^^^^^^^^ > <http://git.altlinux.ru/people/solo/packages/?p=etcnet.git;a=commitdiff;h=4c13196debd81e628d38f33012310fb7d7de54e4>) > отправил в incoming/Daedalus. > >>> 2. Скрипты ovz (к письму прилагаю) >> А можно в виде патча к пакету vzctl? Сделал, см. <http://git.altlinux.ru/people/solo/packages/?p=vzctl.git;a=commitdiff;h=21a7b04af6fea5597f351d09d9aa521c04a4355f>. Оно-же -- vzctl-3.0.18-alt1.1.src.rpm в incoming/Daedalus. Что сделано: 1. В /usr/sbin/vznetcfg добавлен вызов скрипта заданного в переменной POST_EXTERNAL_SCRIPT (саму переменную можно определить в /etc/vz/vznet.conf). Вызов происходит после поднятия veth. 2. Добавлен скрипт /usr/share/vzctl/scripts/venet-update_bri, пробегающий по всем активным bri и вызывающий setup-bri для оных. Внимание: Для работы скрипта venet-update_bri требуется setup-bri одаптированная для запуска из командной строки (содержится в etcnet-0.9.3-alt3.1, ушедшим в incoming/Daedalus ранее). PS: Чуть позже смогу выложить vzctl с поддержкой поднятия venet0 штатными средствами etcnet при загрузке (что позволяет повесить на данный интерфейс ip :-)). -- С уважением. Алексей.
next prev parent reply other threads:[~2007-09-16 22:51 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-07-03 9:01 Alexey Borovskoy 2007-07-03 9:33 ` Aleksey Avdeev 2007-07-03 9:42 ` Dmitry V. Levin 2007-07-03 9:50 ` Aleksey Avdeev 2007-07-03 10:18 ` Dmitry V. Levin 2007-07-03 9:50 ` Alexey Borovskoy 2007-09-16 16:47 ` Aleksey Avdeev 2007-09-16 16:51 ` Aleksey Avdeev 2007-09-16 22:51 ` Aleksey Avdeev [this message] 2007-09-16 23:41 ` Aleksey Avdeev 2007-07-04 5:36 ` Eugene Prokopiev
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=46EDB380.7060401@solin.spb.ru \ --to=solo@solin.spb.ru \ --cc=devel@lists.altlinux.org \ --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