From nobody Thu May 25 00:28:11 2023 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QRTSR0QfRz4VBvl for ; Thu, 25 May 2023 00:28:55 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QRTSK2drKz3mFc for ; Thu, 25 May 2023 00:28:49 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=EdH6FEjQ; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::1133 as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-561a7d96f67so22488037b3.3 for ; Wed, 24 May 2023 17:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684974528; x=1687566528; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=ev29CKhCgxC805A8S26dqt30++XHusALPNoyWalEqmA=; b=EdH6FEjQcSOc2wbCAOfSJBncPNuOY/HuqBTyLRGyee+O5OTv67a2xNMgNxrSGB2k+x RvSEp7ZMn0aKj2ppAN2Ce7SztAjbzQRx0/v41TyWtopvvC2P0omPuX6lo24RgOZsMEg5 bNiPoUzWF3ERos5r1swpv2n10ECcwd5AnrSw8WuEVKefC7G9E2mNsKep/GfgCu0sLSe3 PKOh4plag28OFyIZzMMww2EKiNuQ540rQEP/gIRsdTuPmMjof2BkkySx/tDzjULea1JO w/oHSu1I5IfDSVNMU7lwzXeBZageNb97M6pfZjEWVH7v8kb5YAfwX7tcUoJO68Acy7c1 NuWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684974528; x=1687566528; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ev29CKhCgxC805A8S26dqt30++XHusALPNoyWalEqmA=; b=YEfE267fTZ34Q4yWdI/zIGL0hMR9RzBu0bk0uWIRqxFm4mz0hf2MxxVxmUvyKlPgqz ztptsDNJXA2oBaEtYHS9eoF9cQoXhPJoKBqwZxQEYRb1KbXhH4grHtCQYqpUKCXJdFxp q9Teig+0Y4iXnUwpayGqdVMGzzvNzWUGYrohL2E4pU8D7UZOmt3ud4Rpd0G1s6UwRxJL UnE8IIWefkxU5czdJdx5UsMIW8sxKFP31MnapQtWD4Ab+3Vc64sYqSJcLgRn7VKIj5lU 6cuXVgF6ZwtfSm7u1dtgq6F9YZV4pv5qqrZ1f5eKoOEIrplz1HzuuLpDjXJpmBsdJjnf ZmSA== X-Gm-Message-State: AC+VfDxJNzjK/fyvjDaBGstzaWe0f1fTpNl0uPOaDAGzQRU/QwqssLdf 96FEjgcRApyJcA+v8JXkBvnIeJmn5/s561SB49zFotYq0go= X-Google-Smtp-Source: ACHHUZ4ySy18hny89pcjLUkYGYQ8fUsHnf4Nute4eTu1DoEsEikGy2LLAwBEUPPguNmFMiXjdcl56BkORLcu5DHaho8= X-Received: by 2002:a0d:ca58:0:b0:55d:c2c3:fbb8 with SMTP id m85-20020a0dca58000000b0055dc2c3fbb8mr20318780ywd.40.1684974528040; Wed, 24 May 2023 17:28:48 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <20230221065505.nvs22svqr4oecwyx@tilda.center> In-Reply-To: <20230221065505.nvs22svqr4oecwyx@tilda.center> From: Mario Marietto Date: Thu, 25 May 2023 02:28:11 +0200 Message-ID: Subject: Fwd: Why Blender Cycles is not able to detect my GPU(s) and CUDA within the Ubuntu / Linuxulator To: FreeBSD virtualization , meka@tilda.center Content-Type: multipart/mixed; boundary="00000000000035105c05fc79b405" X-Spamd-Result: default: False [-1.97 / 15.00]; MIME_BASE64_TEXT_BOGUS(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.59)[-0.589]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.48)[-0.484]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain]; MIME_BASE64_TEXT(0.10)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1133:from]; ARC_NA(0.00)[]; BLOCKLISTDE_FAIL(0.00)[2607:f8b0:4864:20::1133:query timed out]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; HAS_ATTACHMENT(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:+]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QRTSK2drKz3mFc X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N --00000000000035105c05fc79b405 Content-Type: multipart/alternative; boundary="00000000000035105a05fc79b403" --00000000000035105a05fc79b403 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Which user should I add ? the user that I have created within the Linuxulator or the user that I have created on the host (FreeBSD) ? thanks. ---------- Forwarded message --------- From: Goran Meki=C4=87 Date: Tue, Feb 21, 2023 at 7:55=E2=80=AFAM Subject: Re: Why Blender Cycles is not able to detect my GPU(s) and CUDA within the Ubuntu / Linuxulator To: Mario Marietto On Sat, Feb 18, 2023 at 03:59:49PM +0100, Mario Marietto wrote: > Hello to everyone. > > I've just installed Ubuntu 22.10 with the Linuxulator on FreeBSD > 13.1-RELEASE p6 as well as these components inside it : > > > 1. nvidia driver Version: 525.78.01 + CUDA 12 > 2. Blender 3.2.2 > > > The nvidia driver 525.78.1 + CUDA 12 work correctly within the linuxulator : > > https://ibb.co/8Ps8J81 > > and Cycles is already able to detect the nvidia driver + CUDA,but only if > blender runs on FreeBSD. Give a look at this picture : > > https://ibb.co/rwZ7q8Q > > What I want to do is to run Blender and I want to render my projects with > cycles using the CUDA libraries and my GPU(s) within the linux emulation > layer. Is this supposed to work ? The error that Blender gives when I try > to do that are the the following ones : > > root@marietto:/# blender > > Read prefs: /root/.config/blender/3.2/config/userpref.blend > libGL error: glx: failed to create dri2 screen > libGL error: failed to load driver: nouveau > could not get a list of mounted file-systems > /var/run/user/1001/gvfs/ non-existent directory > Saved session recovery to '/tmp/quit.blend' > Blender quit > > > why do I use root ? because as a normal user Blender does not start at all. > > marietto@marietto:~$ blender > Unable to open a display > Aborted > > > I'm very curious to understand the reason(s) of the errors I see below : > > libGL error: glx: failed to create dri2 screen > libGL error: failed to load driver: nouveau > > > My sensation is that they can be fixed. If I do : > > cp -r ./blender-3.2.2-linux-x64/3.2/scripts/addons/cycles/lib > /compat/ubuntu2210/usr/share/blender/scripts/addons/cycles/ > > > I see this additional error : > > CUDA cuInit: Unknown error > > > but if I remove the lib directory : > > rm -r /compat/ubuntu2210/usr/share/blender/scripts/addons/cycles/lib > > > the error "CUDA cuInit: Unknown error" disappears,but the other errors ar= e > still there. > > It seems to me that Blender looks for the nouveau driver and it can't fin= d > it. But it should look like the nVidia driver. Since the nouveau driver > does not support CUDA,maybe it should be "unlinked" from Blender and > Blender should be "linked" to the nvidia driver,in some way. What do you > think ? > > -- > Mario. Are you in "video" group? Regards, meka --=20 Mario. --00000000000035105a05fc79b403 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Which user should I add ? the user that I have created wit= hin the Linuxulator or the user that I have created on the host (FreeBSD) ?= thanks.

---------- Forwarded message ---------
From: Goran Meki=C4=87 <meka= @tilda.center>
Date: Tue, Feb 21, 2023 at 7:55=E2=80=AFAM
S= ubject: Re: Why Blender Cycles is not able to detect my GPU(s) and CUDA wit= hin the Ubuntu / Linuxulator
To: Mario Marietto <marietto2008@gmail.com>


On Sa= t, Feb 18, 2023 at 03:59:49PM +0100, Mario Marietto wrote:
> Hello to everyone.
>
> I've just installed Ubuntu 22.10 with the Linuxulator on FreeBSD > 13.1-RELEASE p6 as well as these components inside it :
>
>
>=C2=A0 =C2=A0 1. nvidia driver Version: 525.78.01 + CUDA 12
>=C2=A0 =C2=A0 2. Blender 3.2.2
>
>
> The nvidia driver 525.78.1 + CUDA 12 work correctly within the linuxul= ator :
>
> https://ibb.co/8Ps8J81
>
> and Cycles is already able to detect the nvidia driver + CUDA,but only= if
> blender runs on FreeBSD. Give a look at this picture :
>
> https://ibb.co/rwZ7q8Q
>
> What I want to do is to run Blender and I want to render my projects w= ith
> cycles using the CUDA libraries and my GPU(s) within the linux emulati= on
> layer. Is this supposed to work ? The error that Blender gives when I = try
> to do that are the the following ones :
>
> root@marietto:/# blender
>
> Read prefs: /root/.config/blender/3.2/config/userpref.blend
> libGL error: glx: failed to create dri2 screen
> libGL error: failed to load driver: nouveau
> could not get a list of mounted file-systems
> /var/run/user/1001/gvfs/ non-existent directory
> Saved session recovery to '/tmp/quit.blend'
> Blender quit
>
>
> why do I use root ? because as a normal user Blender does not start at= all.
>
> marietto@marietto:~$ blender
> Unable to open a display
> Aborted
>
>
> I'm very curious to understand the reason(s) of the errors I see b= elow :
>
> libGL error: glx: failed to create dri2 screen
> libGL error: failed to load driver: nouveau
>
>
> My sensation is that they can be fixed. If I do :
>
> cp -r=C2=A0 ./blender-3.2.2-linux-x64/3.2/scripts/addons/cycles/lib > /compat/ubuntu2210/usr/share/blender/scripts/addons/cycles/
>
>
> I see this additional error :
>
> CUDA cuInit: Unknown error
>
>
> but if I remove the lib directory :
>
> rm -r /compat/ubuntu2210/usr/share/blender/scripts/addons/cycles/lib >
>
> the error "CUDA cuInit: Unknown error" disappears,but the ot= her errors are
> still there.
>
> It seems to me that Blender looks for the nouveau driver and it can= 9;t find
> it. But it should look like the nVidia driver. Since the nouveau drive= r
> does not support CUDA,maybe it should be "unlinked" from Ble= nder and
> Blender should be "linked" to the nvidia driver,in some way.= What do you
> think ?
>
> --
> Mario.


Are you in "video" group?

Regards,
meka


--
Mario.
--00000000000035105a05fc79b403-- --00000000000035105c05fc79b405 Content-Type: text/plain; charset="US-ASCII"; name="signature.asc" Content-Disposition: attachment; filename="signature.asc" Content-Transfer-Encoding: base64 Content-ID: <188504cc0c661a8e03b1> X-Attachment-Id: 188504cc0c661a8e03b1 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0NCg0KaVFJekJBQUJDQUFkRmlFRTFXSUZrWHky WmVNS2pqS0VXajFUa25vdnJMWUZBbVAwYXNZQUNna1FXajFUa25vdg0KckxaNFBBLytQRmJXTjlX UUx5MjB1NlpLQUk0SVRIQmcvUF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