LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-02-2018, 10:30 AM   #1
jakubu
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Rep: Reputation: Disabled
headless server with VirtualGL but glxinfo complains


Hello,

I ma trying to set a headless server featured with GPU which would run X11 with OpenGL support through VirtualGL. OS is Slackware 14.2, VirtualGL 2.6, GPU GTX1180 Ti

/etc/initab
id:5:initdefault

Steps are:
# rmmod nvidia_drm nvidia_modeset nvidia_uvm nvidia
# lsmod |grep nvidia
<empty>
# nvidia-xconfig -a --use-display-device=None --virtual=1920x1080
# shutdown -r now
# /opt/VirtualGL/bin/vglserver_config
<defaults>

[user]$ nohup Xvfb :0 -screen 0 1920x1080x24 +extension GLX +render -noreset &
[user]$ xdpyinfo
name of display: :0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 11803000
X.Org version: 1.18.3
<...>

$ xdpyinfo | grep GLX
GLX
SGI-GLX

And my concern is:
$ /opt/VirtualGL/bin/glxinfo
name of display: :0
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 39
Current serial number in output stream: 40

although I am able to start XFCE and connect via x0vncserver

What am I missing?
Regards
Jakub
 
Old 11-06-2018, 06:52 AM   #2
jakubu
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Xvfb was a wrong choice. It can't use GPU.
At the moment a workaround is to remotely run xinit as a root:
$ sudo su -
# nohup xinit &
# exit
Since a user would get the error. "/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server"

Then being already a remote user I run
$ nohup .vnc/xstartup &

$ cat .vnc/xstartup
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
export VGL_LOGO=1
xfce4-session &

PS.: /usr/bin/x0vncserver -rfbauth /home/user/.vnc/passwd # in my case is started with XFCE

Last edited by jakubu; 11-06-2018 at 06:58 AM.
 
Old 11-06-2018, 06:43 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,032

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
At the moment a workaround is to remotely run xinit as a root:
$ sudo su -
# nohup xinit &
# exit
Since a user would get the error. "/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server"
Perhaps that could be avoided by adding a file /etc/X11/Xwrapper.config containing:
Code:
allowed_users = anybody
See 'man Xwrapper.config' for details.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install VirtualGL in Slackware 14.2? ahTh6aaf Slackware 2 12-06-2017 12:48 PM
Newbie VirtualGL Help mpapet Linux - Desktop 1 10-20-2016 02:06 PM
How to select GPU using VirtualGL over VNC vwong Linux - Software 0 01-15-2016 06:44 AM
Ubuntu Server 10.04 CLI Headless server | Allowing user to SUDO and Hosting Mediawiki wulfsburg Ubuntu 2 06-09-2012 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration