GNU logs - #59069, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#59069: `guix shell -CN' failed to access GPU
Resent-From: dan <i@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 06 Nov 2022 06:47:02 +0000
Resent-Message-ID: <handler.59069.B.166771718032416 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 59069
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 59069 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.166771718032416
          (code B ref -1); Sun, 06 Nov 2022 06:47:02 +0000
Received: (at submit) by debbugs.gnu.org; 6 Nov 2022 06:46:20 +0000
Received: from localhost ([127.0.0.1]:58575 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1orZQB-0008Qm-Js
	for submit <at> debbugs.gnu.org; Sun, 06 Nov 2022 01:46:20 -0500
Received: from lists.gnu.org ([209.51.188.17]:49204)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <i@HIDDEN>) id 1orZQ7-0008Qc-5w
 for submit <at> debbugs.gnu.org; Sun, 06 Nov 2022 01:46:18 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <i@HIDDEN>) id 1orZQ5-0004G7-F1
 for bug-guix@HIDDEN; Sun, 06 Nov 2022 01:46:14 -0500
Received: from out1-smtp.messagingengine.com ([66.111.4.25])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <i@HIDDEN>) id 1orZQ3-0003DG-6i
 for bug-guix@HIDDEN; Sun, 06 Nov 2022 01:46:13 -0500
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id B8D935C00C2
 for <bug-guix@HIDDEN>; Sun,  6 Nov 2022 01:46:06 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162])
 by compute2.internal (MEProxy); Sun, 06 Nov 2022 01:46:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc
 :content-transfer-encoding:content-type:date:date:from:from
 :in-reply-to:message-id:mime-version:reply-to:sender:subject
 :subject:to:to; s=fm1; t=1667717166; x=1667803566; bh=SyWC0zBMST
 nZY4CX6EtQk3SoX34OSGRYhaBjMWE4bL8=; b=tJgCfim8T3t+y86i7IMzcuYuOK
 8LgzCryLUphp9Hr/7KXK7jEj7pu6gSoCuefUb4xeWw1EVX8uG/rFyAowpt8wWlNJ
 bcTHlZmvZUTYH9L8q+g5X/igKyeo8qIbtfe/dS0gH+3kC8D4So8I3pnR55bb98DD
 2Ns8KFU8uKb5qFtNi7d9L44aKMuJAolPtV//R9Qx8A6UFvkBMAuvGbQzAdbYByyf
 If2BVZ7N1ixMP9OMI3KCyQOH7W0Jrb6wTV4rlKyY+baT3kcEtE/I/Z7r3ZkdNINt
 1BRkpipO9AEFpUjswXRyT68zg4NvSoIEQuPgFFeUjeyPOIZcMh8o+QuxgyHg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:date:feedback-id:feedback-id:from:from:in-reply-to
 :message-id:mime-version:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; t=1667717166; x=1667803566; bh=SyWC0zBMSTnZY4CX6EtQk3SoX34O
 SGRYhaBjMWE4bL8=; b=FfsM37vMImLkSK5bHnTMjxL5Hb932S87M1sqUK0qr1Sf
 5GSh2Al1a56yrwrwLtTeGmxtZ8av6kXSnzvnoZmrofAHJ1qFghbSG8jIZv2DN19f
 oWn/HGqJgmNK4AsMuP8z9JDQDI+SkEF/rLcHqAPA0nWKYZIuv8givgs2syv8NMxm
 3+4Vi9C/BuH8pznpJlOthN4KU0t3yfAIydkXuMP6360LPhIUVj/usy/EBGW9BnNZ
 kbGBEEzRYy25+Qf9ftGJMym+NbvYKaLRMMEt6kU41Hyr3nfJGRNzNWEv2g7QzS16
 trPt+m594AW3ahORDXyhy/jIFv93vxfysSLB1yagZQ==
X-ME-Sender: <xms:LlhnY2Lh_Y1pf-UdLQkTKjBKBtxHlcCG0umniJkwWzvme_DLpb8V2A>
 <xme:LlhnY-Ie5ZfDjj5TU6nLqV40TVkqbUthKIl3isSANEEgS4BUyV2BZKdOkEkrEwThL
 _JIDQkS26pnCdbA3xY>
X-ME-Received: <xmr:LlhnY2uKBfLdhxTLH-VKf2QXBjW28VtDdX5qJjnMUNXQUyJaVgEXGg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdehgdeludcutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtgfesthhqredttd
 ertdenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgv
 rhhnpeekffdvleeggfeglefhffevkeeivdfhtdduuddtgffhgeethfdvffejieehjeduve
 enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegu
 rghnrdhgrghmvghs
X-ME-Proxy: <xmx:LlhnY7Z9P7AYWNnw_cjyH24CDW9WVpvy-jvsF2Hzt8bNkcmH7zpCmw>
 <xmx:LlhnY9bOBQrBBdd-894vqWd1sEp7sr6WYEHp0gR8F_Y1AmBoAERfiw>
 <xmx:LlhnY3Dxez4pO049e8L01E1UXwSCQoCH8W2IXonlDcC4m_6aD1cvxw>
 <xmx:LlhnY_2LJScK5LhpeWUE8-VEbXRGfxJ1DIMWpbtWXk_p3s8aFNqcmQ>
Feedback-ID: i3b5946ed:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-guix@HIDDEN>; Sun, 6 Nov 2022 01:46:05 -0500 (EST)
User-agent: mu4e 1.8.11; emacs 29.0.50
From: dan <i@HIDDEN>
Date: Sun, 06 Nov 2022 14:11:08 +0800
Message-ID: <87zgd41syf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=66.111.4.25; envelope-from=i@HIDDEN;
 helo=out1-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


I was trying to run some GUI software in a guix container, and would like t=
o have GPU access in it.  However, I later found out that if I gave network=
 access to the container, it seems like unable to properly find the GPU.  T=
he following are the commands that I run and the output I got:

=2D ------------------------------without-network-access-------------------=
-----------

$ guix shell -C mesa-utils --expose=3D/tmp/.X11-unix --expose=3D$XAUTHORITY=
 --expose=3D/dev/dri --expose=3D/etc/udev -E "DISPLAY|XAUTHORITY" -- glxinf=
o -B

name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD RENOIR (DRM 3.47.0, 5.19.15, LLVM 11.0.0) (0x1638)
    Version: 21.3.8
    Accelerated: yes
    Video memory: 1024MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 655 MB, largest block: 655 MB
    VBO free aux. memory - total: 15305 MB, largest block: 15305 MB
    Texture free memory - total: 655 MB, largest block: 655 MB
    Texture free aux. memory - total: 15305 MB, largest block: 15305 MB
    Renderbuffer free memory - total: 655 MB, largest block: 655 MB
    Renderbuffer free aux. memory - total: 15305 MB, largest block: 15305 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 1024 MB
    Total available memory: 16487 MB
    Currently available dedicated video memory: 655 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD RENOIR (DRM 3.47.0, 5.19.15, LLVM 11.0.0)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.3.8
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.3.8
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.3.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
=2D ------------------------------with-network-access----------------------=
--------

$ guix shell -CN mesa-utils --expose=3D/tmp/.X11-unix --expose=3D$XAUTHORIT=
Y --expose=3D/dev/dri --expose=3D/etc/udev -E "DISPLAY|XAUTHORITY" -- glxin=
fo -B

name of display: :1
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu: /gnu/store/83kzrpczis5s8hn=
3ly9y89mij7ngq4bw-mesa-21.3.8/lib/dri/amdgpu_dri.so: cannot open shared obj=
ect file: No such file or directory (search paths /gnu/store/83kzrpczis5s8h=
n3ly9y89mij7ngq4bw-mesa-21.3.8/lib/dri, suffix _dri)
libGL error: failed to load driver: amdgpu
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu: /gnu/store/83kzrpczis5s8hn=
3ly9y89mij7ngq4bw-mesa-21.3.8/lib/dri/amdgpu_dri.so: cannot open shared obj=
ect file: No such file or directory (search paths /gnu/store/83kzrpczis5s8h=
n3ly9y89mij7ngq4bw-mesa-21.3.8/lib/dri, suffix _dri)
libGL error: failed to load driver: amdgpu
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 11.0.0, 256 bits) (0xffffffff)
    Version: 21.3.8
    Accelerated: no
    Video memory: 30926MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 11.0.0, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.3.8
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 21.3.8
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.3.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
=2D ------------------------------paste-ends-here--------------------------=
----

The only difference between these two executions are the `-N' flag.  I also=
 had a look at the related guile code, and it seems like the `-N' flag is o=
nly doing two things:
  1. bind several network related files to /etc
  2. share network namespace to the container

I've had a few other guix users tested the commands, and they reported the =
similar results.

Some info about my environment:
kernel version: 6.0.7
mesa   version: 21.3.8

=2D --=20
dan
=2D----BEGIN PGP SIGNATURE-----

iQJABAEBCAAqFiEENywBMxcNCHYJ4/aIR1rKxpmiJ40FAmNnWCgMHGlAZGFuLmdh
bWVzAAoJEEdaysaZoieNbFsP/2INlj3WNX8fKBt5pFGkAnewXUHS4Vn+pBSbshuc
srwJ4gaatBJkaWvA71kH3mLwYOH+cQmSVI8Zt2Bc2Ztny+SewBt9cqvQAEAmHME7
tW2y5nAhzsJplMoOtTcRnT1Opdn5Zz0iLCwuc8avVa14KwqV53qEmXyjdL8DwIgQ
kkyog4j3W5bCIfKdAwQmsg9/Fr4TEVRiFHvNCkmpkCHVxQ0RBsTvW5wfHzfkSvL5
Z0FY20xq20LjTpwuk6yVl79+4dkSotXoXwSbkd3aa8ehyWIlGLrTyTkJeL5jmqXZ
ec9zWBN5xT6a1JiOxhVxGn/X3FLpSryOp7kzz5L4RrWbMPYnILUz0X5XzcRRZYWK
OovxW/z6Ug6uDAfMkgGuiLrdiHOGKnxaEzJdtVdDwtk2SMqM0B8qZEkunZIfUeKf
2BOy7xCxx8UP+mtdaHz/wdH6IvVMSewDLZUIOXKOlhqeYm58vulPPkHIKP4EVNpC
RUmbRenevrfvt/6WYujxvd3GEU6I6DEslryObS7ntypjESxPiuwVTPLffhCwlomC
Yg23qP395fi4ecer+8rLgANsb7YUKWk74Pl218Pcddfjaitrfx3UUyWynYtPmxHg
tj30jNlhz2owYag5WC0c76K2rmnQaAZ8dHZ5pza0FFGHbkn7Xcqy7xXK4K0b6+5h
OSuZ
=3DqHGv
=2D----END PGP SIGNATURE-----




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: dan <i@HIDDEN>
Subject: bug#59069: Acknowledgement (`guix shell -CN' failed to access GPU)
Message-ID: <handler.59069.B.166771718032416.ack <at> debbugs.gnu.org>
References: <87zgd41syf.fsf@HIDDEN>
X-Gnu-PR-Message: ack 59069
X-Gnu-PR-Package: guix
Reply-To: 59069 <at> debbugs.gnu.org
Date: Sun, 06 Nov 2022 06:47:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 59069 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
59069: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59069
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#59069: `guix shell -CN' failed to access GPU
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 10 Nov 2022 09:46:02 +0000
Resent-Message-ID: <handler.59069.B59069.166807352417361 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 59069
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: dan <i@HIDDEN>
Cc: 59069 <at> debbugs.gnu.org
Received: via spool by 59069-submit <at> debbugs.gnu.org id=B59069.166807352417361
          (code B ref 59069); Thu, 10 Nov 2022 09:46:02 +0000
Received: (at 59069) by debbugs.gnu.org; 10 Nov 2022 09:45:24 +0000
Received: from localhost ([127.0.0.1]:41911 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ot47f-0004Vx-J5
	for submit <at> debbugs.gnu.org; Thu, 10 Nov 2022 04:45:23 -0500
Received: from eggs.gnu.org ([209.51.188.92]:49894)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1ot47e-0004Vi-Av
 for 59069 <at> debbugs.gnu.org; Thu, 10 Nov 2022 04:45:22 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1ot47V-0002o4-F4; Thu, 10 Nov 2022 04:45:14 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=0Qy00G9R7mY7z+L+dO3/m2INZlqbajudhxRRwh0W3nA=; b=GD5MNvmYQDyCK7ETjjyi
 YJ92YV1hjazKIC7hRKcvXuPxfSRO4OrRsDvGA9HnhP19AuDlZdk2P/eh36HTynA+KIaT4sE41v/7B
 fBwzedKE8lA3+SMtzo82soLhAWHIGRthEJHiyRhwocRGTs2NA6wepWsUAOw5UJVwchu057Fe59/iL
 r1O+nT1CXIfaVTEuPhYZdvPuNBoYbZacR6a+F5aHXBzm4Ra6B5Her3rYhJjX8ucSw3Vkzk1Jm5Hyr
 3HGCk1Hx6Jmc9QEiiL/h2b0Qe4GdfZxhrvtSMIgAaYuoxJvYbNP4eTM2sNKFiX2uDYOp7wX5FDa4+
 aVc6druYqErKQQ==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1ot47T-0005cJ-7h; Thu, 10 Nov 2022 04:45:13 -0500
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <87zgd41syf.fsf@HIDDEN>
Date: Thu, 10 Nov 2022 10:45:08 +0100
In-Reply-To: <87zgd41syf.fsf@HIDDEN> (dan's message of "Sun, 06 Nov 2022
 14:11:08 +0800")
Message-ID: <87fserkusb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

dan <i@HIDDEN> skribis:

> I was trying to run some GUI software in a guix container, and would like=
 to have GPU access in it.  However, I later found out that if I gave netwo=
rk access to the container, it seems like unable to properly find the GPU. =
 The following are the commands that I run and the output I got:

Could you check with strace what it=E2=80=99s trying to access, both with a=
nd
without =E2=80=98-N=E2=80=99?

  guix shell mesa-utils strace =E2=80=A6 -C -- strace -o /tmp/log.strace gl=
xinfo

It might be a /dev node, or it might be simply talking to the X server,
which requires network access.

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#59069: `guix shell -CN' failed to access GPU
Resent-From: dan <i@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 10 Nov 2022 15:20:01 +0000
Resent-Message-ID: <handler.59069.B59069.166809359929877 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 59069
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 59069 <at> debbugs.gnu.org
Received: via spool by 59069-submit <at> debbugs.gnu.org id=B59069.166809359929877
          (code B ref 59069); Thu, 10 Nov 2022 15:20:01 +0000
Received: (at 59069) by debbugs.gnu.org; 10 Nov 2022 15:19:59 +0000
Received: from localhost ([127.0.0.1]:43971 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ot9LS-0007lo-Ot
	for submit <at> debbugs.gnu.org; Thu, 10 Nov 2022 10:19:59 -0500
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:58607)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <i@HIDDEN>) id 1ot9LQ-0007lc-Bw
 for 59069 <at> debbugs.gnu.org; Thu, 10 Nov 2022 10:19:57 -0500
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id 4A5F95C0161;
 Thu, 10 Nov 2022 10:19:51 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163])
 by compute3.internal (MEProxy); Thu, 10 Nov 2022 10:19:51 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc
 :cc:content-transfer-encoding:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm2; t=1668093591; x=
 1668179991; bh=0yrGv7skBmxVQ8NZY8VxP2nUzjjcL/QsAEPTrEeMF2o=; b=Q
 vVVWcRmNUGN4W6IqfFV2wJ9kl8zcGfBIfjnG0A2hh8X+VcY1Q4Vv3LrqOLAm/skA
 n2RckuJDdJtUWf7lI82Cj2smzHODO2dbmoNF2sdJDJu9tUpjPtSDGnnPn4LVbkXe
 7Pt2Szm1K2t870eDgbHrBmYyAu7YRSEwrkurTr1gY+0jHGna/eRizzvib/H0MFHx
 U6IR2DCroLr0xYONOUM5hKukdXxE3MhQBwuNWJYrCUVy0/PXQxWea1w+AdkQHGds
 OZA3UNO7SH5HnPl22j3ravME7LgSFUNvMGNpfUlyCNDdbgj3t7Oi+n2SR2ia2VQt
 EfUCNFbmZfxgbP/2+Absg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1668093591; x=
 1668179991; bh=0yrGv7skBmxVQ8NZY8VxP2nUzjjcL/QsAEPTrEeMF2o=; b=g
 5hjo/rVFsZMjnmvpEXb5XSJB2yd0xcvhCGZzySB6EIZqPntOFVl9WiL87DUXdDJe
 E8EGtQ8P2rS4vLRDN3+B8H8XK/v8NxOL5J3cd+dchAa6RtSBuSYTm53OD1z2Z66+
 TU+6te/64cg3gT3yfdqybpqvX6OKVa7kh6J5b+aOVJGUP0M6yFOcLTfN/DG0SnfU
 yM0rp/ppqw2Q9W58j4V8nAB9eeeQhP00JZ5k2VayRy4bXCDzILhWMsAd9bweEgeP
 YWCnHf2m0x7fjNoUhO44dxIz3DAD4JJRxjTc1cRsQiUr/C27qpqL02fs2L5h44CY
 9IcSQOkAC0HnpJPJZtr5A==
X-ME-Sender: <xms:lxZtY4rNyRV9VjoeerSCbh-9-TzSovlOZa4MJxt80xKa-urHuvR4VA>
 <xme:lxZtY-qbxAT5lD7qeCukItFOmk9Izdp1dHrGmzaRcupOPuMzZ4r5rYaVMtmf7j4jB
 nkvpu_M-VxjtnVgQIM>
X-ME-Received: <xmr:lxZtY9P24kqtCT2fSMTVMLNXIQkp8_xppO9L-GMAI_FeToi5c3pQXQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfeeggdejiecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpehffgfhvfevufffjgfkgggtgfesthhqredttderjeenucfhrhhomhepuggrnhcu
 oehisegurghnrdhgrghmvghsqeenucggtffrrghtthgvrhhnpefhjeethfelueevhfetff
 egkeeggeetffeitdevheeugeegudelgfeltefgvddvjeenucffohhmrghinhepshhrrdhh
 thenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehise
 gurghnrdhgrghmvghs
X-ME-Proxy: <xmx:lxZtY_4VzJVIjL-BSbRG_JZi9UoAAgdmWLQdtaxpJjrTtN0Ij6Fzbg>
 <xmx:lxZtY35VE-ptLLgkNOAHXs2VKOIxXAmkKk2MUhVi1tUO3WwWJUFy6Q>
 <xmx:lxZtY_g2GZ6CduqPECrpZmto86yZNdH2B-PUvu5ucSZ6i9OPJ3iH7w>
 <xmx:lxZtY0j7WoBYrpa5IAj3MEE8ZO4s6vuh4rwADAAqLDrTDD9Kzgqwow>
Feedback-ID: i3b5946ed:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 10 Nov 2022 10:19:49 -0500 (EST)
References: <87zgd41syf.fsf@HIDDEN> <87fserkusb.fsf@HIDDEN>
User-agent: mu4e 1.8.11; emacs 29.0.50
From: dan <i@HIDDEN>
Date: Thu, 10 Nov 2022 23:08:41 +0800
In-reply-to: <87fserkusb.fsf@HIDDEN>
Message-ID: <87zgcyu99s.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Could you check with strace what it=E2=80=99s trying to access, both=20
> with and
> without =E2=80=98-N=E2=80=99?
>
>   guix shell mesa-utils strace =E2=80=A6 -C -- strace -o /tmp/log.strace=
=20
>   glxinfo

I looked into the strace logs, and found out that it's actually=20
having trouble accessing /sys, which is not available in a '-N'=20
container.  I run the following scripts to test:
> $ guix shell -C coreutils -- ls /
> bin  dev  etc  gnu  home  proc  sys  tmp
while with the '-N' flag:
> $guix shell -CN coreutils --ls /
> bin  dev  etc  gnu  home  proc  tmp

I have the strace logs in the paste bin, with the line indicating=20
the problem[1][2].

[1]:=20
https://paste.sr.ht/~lizog/950ef117109fb0d34e70a813852cf7cbf04919a6#log-cn.=
strace-L585
[2]:=20
https://paste.sr.ht/~lizog/950ef117109fb0d34e70a813852cf7cbf04919a6#log-c.s=
trace-L552

--=20
dan




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#59069: `guix shell -CN' failed to access GPU
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 10 Nov 2022 15:50:03 +0000
Resent-Message-ID: <handler.59069.B59069.1668095353373 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 59069
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: dan <i@HIDDEN>
Cc: 59069 <at> debbugs.gnu.org, David Thompson <davet@HIDDEN>
Received: via spool by 59069-submit <at> debbugs.gnu.org id=B59069.1668095353373
          (code B ref 59069); Thu, 10 Nov 2022 15:50:03 +0000
Received: (at 59069) by debbugs.gnu.org; 10 Nov 2022 15:49:13 +0000
Received: from localhost ([127.0.0.1]:44030 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ot9nk-00005w-RF
	for submit <at> debbugs.gnu.org; Thu, 10 Nov 2022 10:49:13 -0500
Received: from eggs.gnu.org ([209.51.188.92]:60366)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1ot9ng-00005g-V1
 for 59069 <at> debbugs.gnu.org; Thu, 10 Nov 2022 10:49:11 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1ot9nb-0006UT-BV; Thu, 10 Nov 2022 10:49:03 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=97smhIMELJsr87BP54D/ZV8CabbUDYljWaiUvt1qhWE=; b=CHP+B2XOHnuaCEN+wd+m
 d3q6hPHpRgI2xI+V5WzWIZ/1yYSRI6CmAjfTOCClS620bIHTJtzMQ8MW+SSJRj2Yk1DJ/XmAly819
 /tJnwnP1qMSHYaXk4XSzYqkdkrYW7x767ikIVCikjuiw6mumWEJ3aQZw0aimIhZpCh6R5eQ/DYqxM
 wP4BfrYQgYAncOTAtjHzBaa6uT1hyqm9KBpKsTmZCRLZRDItZV+K27UocqEO4+LW76c0f6+VfSIgY
 jefFkkvDSbX0ORyKpcIXCL5jG4rvNFTc94Usvd4lSLKpJGPV5Dj/jOaDcO+MzzfJ7sPEjSE0EIWTL
 KjHSp84CgsHDQw==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1ot9na-0003Jq-Pe; Thu, 10 Nov 2022 10:49:02 -0500
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <87zgd41syf.fsf@HIDDEN> <87fserkusb.fsf@HIDDEN>
 <87zgcyu99s.fsf@HIDDEN>
Date: Thu, 10 Nov 2022 16:49:00 +0100
In-Reply-To: <87zgcyu99s.fsf@HIDDEN> (dan's message of "Thu, 10 Nov 2022
 23:08:41 +0800")
Message-ID: <87o7teg68j.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi!

(Cc: Dave Thompson, the original author of this code.)

As you pointed out on IRC, the problem is that =E2=80=98guix shell -C=E2=80=
=99 provides
/sys whereas =E2=80=98guix shell -CN=E2=80=99 doesn=E2=80=99t.

This stems from this call in (gnu build linux-container), which has
always been there:

    (mount-file-systems root mounts
                        #:mount-/proc? (memq 'pid namespaces)
                        #:mount-/sys?  (memq 'net
                                             namespaces))

This is explained a few lines above:

  ;; A sysfs mount requires the user to have the CAP_SYS_ADMIN capability in
  ;; the current network namespace.
  (when mount-/sys?
    (mount* "none" (scope "/sys") "sysfs"
            (logior MS_NOEXEC MS_NOSUID MS_NODEV MS_RDONLY)))

As you noticed with =E2=80=98--expose=3D/sys=E2=80=99, bind-mounting /sys d=
oesn=E2=80=99t work
either (=E2=80=98mount=E2=80=99 fails with EINVAL).

Not sure what to do.  Thoughts?

Ludo=E2=80=99.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 12 Nov 2022 17:24:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 12 12:24:36 2022
Received: from localhost ([127.0.0.1]:48913 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1otuFA-00082g-0F
	for submit <at> debbugs.gnu.org; Sat, 12 Nov 2022 12:24:36 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38912)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1otuF8-00082T-P9
 for control <at> debbugs.gnu.org; Sat, 12 Nov 2022 12:24:35 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1otuF3-0000ht-Ip
 for control <at> debbugs.gnu.org; Sat, 12 Nov 2022 12:24:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to:
 references; bh=gxbCzqyeRPxhq70+H8XI5QWJlvf1ydgwyga6L+MMMYs=; b=SsvSxO+pYQB0hr
 Jk9R7/AOcRaGfRePAXJZ1s4mOwhnwfFkJoOg0EvC2QDtbSoE8GinMM0gCUZjUl2n6MmHCw0uqZvCx
 w3zk9bWIzq/jzx3hUnX2HsimnCZMLH44+6GyAhZKwerX/y9/FS0iZVSNM57uAUhl0dSB7bT7v5Za6
 rZ9tyR6Cex1B8+Ba7+VTnx6g4ggBttsCVfhFZC902HDWS2MOraWAiwL9gctjkHLlC3nHOUF2BaPik
 TBvyrGidng5SZSktcezF8A7upZ19xf5l2YMMuN0HKNiL1irafv3hhXrZ1fnl710gaoSSLTQpZYe2f
 97A3ysKmQdEjqpwmse9w==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1otuF3-0006dy-5o
 for control <at> debbugs.gnu.org; Sat, 12 Nov 2022 12:24:29 -0500
Date: Sat, 12 Nov 2022 18:24:27 +0100
Message-Id: <87h6z4cchg.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Subject: control message for bug #59069
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

merge 59069 59166
quit






Last modified: Sat, 12 Nov 2022 17:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.