From owner-freebsd-x11@freebsd.org Mon Oct 3 22:11:25 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ABC4BAF3712 for ; Mon, 3 Oct 2016 22:11:25 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from sdf.lonestar.org (mx.sdf.org [192.94.73.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ol.sdf.org", Issuer "ol.sdf.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 91A45D1D for ; Mon, 3 Oct 2016 22:11:24 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from sdf.org (norge.freeshell.org [192.94.73.17]) by sdf.lonestar.org (8.15.2/8.14.5) with ESMTPS id u93MBHgv003304 (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO); Mon, 3 Oct 2016 22:11:18 GMT Received: (from bennett@localhost) by sdf.org (8.15.2/8.12.8/Submit) id u93MBHwA024530; Mon, 3 Oct 2016 17:11:17 -0500 (CDT) From: Scott Bennett Message-Id: <201610032211.u93MBHwA024530@sdf.org> Date: Mon, 03 Oct 2016 17:11:17 -0500 To: freebsd-x11@freebsd.org, isoa@kapsi.fi Subject: Re: NVidia + run X apps from jail References: <20161003021517.GB92917@pf-bsd.local> <201610030717.u937HJ3Q018671@sdf.org> In-Reply-To: User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 22:11:25 -0000 Arto Pekkanen wrote: Please do *NOT* top-post! > The problem is more complicated than that. > > A FreeBSD jail fully prevents applications from accessing the graphics > device. This means you must run the X-server outside of the jail, and > then have the X applications connect to it from within the jail. > > The applications cannot access the direct rendering capabilities of the > GPU, because the GPU device is not available inside the jail (is outside > the jail or in another computer entirely). This means that OpenGL > applications cannot work UNLESS the GPU specific OpenGL library supports > AIGLX. AIGLX allows sending OpenGL data over X11 client server > connection, so that the graphics are rendered indirectly by the server > instead of the application using the GPU directly. I know that the Open > Source drivers such as i915 and radeon support AIGLX, but I am not sure > if nVidia supports it. Read more on AIGLX here: > https://en.wikipedia.org/wiki/AIGLX Well, if he uses a driver whose only support for the hardware is VESA, I doubt it can help. If he uses a driver that fully supports the hardware, then other options may open up. > > To verify whether nVidia supports AIGLX, ie. OpenGL over X11 network > connection, you should try installing the nvidia-driver package inside > the jail where you run the applications. The nvidia-driver package > provides nVidia specific libGL, which might be required to have > compatible AIGLX implementation in both server and client end. > > If installing nvidia-driver inside the jail does not enable OpenGL > applications to run, then I assume the proprietary nVidia driver does > not support AIGLX. > > And regardless if you get AIGLX working or not, it is a suboptimal > solution to remote or indirect rendering of OpenGL. The better way is to > use VirtualGL: > http://www.virtualgl.org/About/Introduction > > I've used VirtualGL to run OpenGL applications from a headless server on > a laptop with a GPU, full hardware acceleration. I won't be acting as > your technical support, but I just suggest you read the manuals, google > a bit and do your own research on this. > All that is interesting, but again, he needs to install the correct driver, not the current nvidia-driver, which doesn't support his graphics card (except as VESA). Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at sdf.org *xor* bennett at freeshell.org * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * **********************************************************************