ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Vladimir D. Seleznev" <vseleznv@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] alt server 9 beta1
Date: Fri, 30 Aug 2019 22:38:13 +0300
Message-ID: <20190830193812.GA17696@portlab> (raw)
In-Reply-To: <20190830192837.GA25656@portlab>

On Fri, Aug 30, 2019 at 10:28:37PM +0300, Vladimir D. Seleznev wrote:
> On Sat, Aug 31, 2019 at 01:43:43AM +0700, Gleb Kulikov wrote:
> > В письме от 2019 August 30  (11:01:45) тов. Sergey V Turchin написал:
> > 
> > > 29.08.2019 21:59, Gleb Kulikov пишет:
> > > 
> > > [...]
> > > 
> > > > Это неприятно, так как acc через ssh -C -Y у нас не работает: падает на
> > > > GLX.
> > 
> > > У меня работает acc на p9, ssh -Y на Sisyphus. Intel/modesetting.
> > 
> > И не падает при попытке ввести пароль? У меня стабильно, повторяемость 100%
> > Вообще, с пробросом opengl/glx у нас давняя беда. Что очень жалко: другого 
> > способа, кроме ssh, запустить что-то графическое из lxc, сходу не 
> > придумывается.
> 
> Можно пробросить X11 unix-сокет внутрь контейнера:
> 
> lxc.mount.entry = /tmp/.X11-unix/X0 tmp/.X11-unix/X0 none bind,create=file 0 0
> 
> Если хочется ускорения, то можно внутри контейнера создать
> dri-устройство, но это ещё дополнительный вектор атаки из контейнера на
> хост. Создать скрипт devices.sh c чем-то наподобие:
> 
>     #!/bin/sh
> 
>     mkdir -p "$LXC_ROOTFS_MOUNT/dev/shm"
      ^^^
      Ненужная строчка

>     for dev in $(find /dev/dri -maxdepth 1 -type b -o -type c); do
>         major="$((16#$(stat -c "%t" "$dev")))"
>         minor="$((16#$(stat -c "%T" "$dev")))"
>         type="$(stat -c "%F" "$dev")"
>         mkdir -p "$LXC_ROOTFS_MOUNT/$(dirname $dev)"
>         mknod "$LXC_ROOTFS_MOUNT/$dev" "${type:0:1}" "$major" "$minor"
>     done
> 
> И прописать в конфиге:
> 
> lxc.hook.autodev = /var/lib/lxc/container/devices.sh

-- 
   С уважением,
   Владимир Селезнев


  reply	other threads:[~2019-08-30 19:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-24 10:20 Anton V. Boyarshinov
2019-08-16 10:59 ` Gleb Kulikov
2019-08-16 11:38     ` Gleb Kulikov
2019-08-16 12:06         ` Gleb Kulikov
2019-08-17 10:36         ` Gleb Kulikov
2019-08-29 18:59             ` Gleb Kulikov
2019-08-30  8:01               ` Sergey V Turchin
2019-08-30 18:43                 ` Gleb Kulikov
2019-08-30 19:28                   ` Vladimir D. Seleznev
2019-08-30 19:38                     ` Vladimir D. Seleznev [this message]
2019-09-10  7:21                   ` Sergey V Turchin
2019-08-20 10:14       ` Evgeny Sinelnikov
2019-08-29 18:45         ` Gleb Kulikov
2019-08-16 12:04     ` Anton V. Boyarshinov

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=20190830193812.GA17696@portlab \
    --to=vseleznv@altlinux.org \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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