From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EDXZE/q8Z2N1IwAAbAwnHQ (envelope-from ) for ; Sun, 06 Nov 2022 14:56:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OFSwE/q8Z2NOAAEAauVa8A (envelope-from ) for ; Sun, 06 Nov 2022 14:56:10 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D5F8523EA4 for ; Sun, 6 Nov 2022 14:56:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1org7v-0006IW-HC; Sun, 06 Nov 2022 08:55:55 -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 ) id 1orZQt-0004Iw-Kb for bug-guix@gnu.org; Sun, 06 Nov 2022 01:47:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1orZQs-0003Gq-PL for bug-guix@gnu.org; Sun, 06 Nov 2022 01:47:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orZQs-0008Rl-AZ for bug-guix@gnu.org; Sun, 06 Nov 2022 01:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59069: `guix shell -CN' failed to access GPU Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 06 Nov 2022 06:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59069 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59069@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@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 ) id 1orZQB-0008Qm-Js for submit@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 ) id 1orZQ7-0008Qc-5w for submit@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 ) id 1orZQ5-0004G7-F1 for bug-guix@gnu.org; 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 ) id 1orZQ3-0003DG-6i for bug-guix@gnu.org; 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 ; 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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdehgdeludcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtgfesthhqredttd ertdenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgv rhhnpeekffdvleeggfeglefhffevkeeivdfhtdduuddtgffhgeethfdvffejieehjeduve enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegu rghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 6 Nov 2022 01:46:05 -0500 (EST) User-agent: mu4e 1.8.11; emacs 29.0.50 From: dan Date: Sun, 06 Nov 2022 14:11:08 +0800 Message-ID: <87zgd41syf.fsf@dan.games> 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@dan.games; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 06 Nov 2022 08:55:52 -0500 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "bug-Guix" Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667742970; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SyWC0zBMSTnZY4CX6EtQk3SoX34OSGRYhaBjMWE4bL8=; b=bibAMIgg+WLJSa4XuqwDmphlJBV124PknCp2HmdiAzhtzy5nXdAH/eXd/V/kKJOrhT0RSy JFasASnw53NhRPCYB0Ev5H35Nl3FF4W1/gSUam+mTHLmO3VLhSelCT19Md8qHSdMfxcLsP p7DsGutVydQWo/R2irgZSHWltN/yH5KEZKtz+9o468tJpqnFBbWRlGfsL5bziaNMEJDiHh 7eJhbD4k2eLycGg+VjbvEE75xD/MmpPB9hdH/FNL4PgWPUCjhK4ard9+A+uTS8cjgctZaS JTxm9ccizyDaQetjT8JkwPFFKJjY4SEfH9dvGS7sB10YeXuJc8dOOR0IKbgaWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667742970; a=rsa-sha256; cv=none; b=tlmPSSp1WJbWqI9m1G5M7phkH0b1QvqTrnhfd8kwlpuxjvvfR8Omtofm/bf3BMLWTWGF/y Zpeo6r25ynBXK/mn5oYWeC23UVFcS0y5DP9JJVLJh8UwqQSHSFRar4XBTw9H0jCnDQzZvR sevQoSfctwOzORZNGDYlaCeuE96bSB0kHhBKTvUeWJeXYX/5PE42qmwojBA45vQqS+bg+K FA1IN4oQ3vTS79TspfMRJYV8+4Ytj9YSe8ilYwAkFW49DDvy49tSkMjwVnLcu6JSy9eJ2K Hf+GQEacZ7oSyvZlTCdEpKogvV1gM1+66SKZDyRsf6xVJOORSYSasgs1YTlsAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm1 header.b=tJgCfim8; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=FfsM37vM; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm1 header.b=tJgCfim8; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=FfsM37vM; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D5F8523EA4 X-Spam-Score: 2.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: cM7pppskUq7O =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-----