Hello to everyone.
After several months of work I've been able to reach the goal that I was working on the last 4 months : to be able to use my RTX 2080 ti inside a Linux VM for rendering my Blender animations using cycles. To be honest,I haven't reached the goal perfectly as I wanted,because bhyve needs some patches to be able to run Xorg and the nvidia driver. Since its development is slow maybe it will not have those patches for a lot of time. BTW,maybe I found a workaround. But before to be sure that my workaround is good,I would like to know what you think. So,first of all,below you can see what I'm trying to explain :
what you see is what I wanted to achieve : that Blender is able to detect my graphic card inside the linux VM,in this case I've used Debian. Since with ssh and X forwarding I can't execute programs that require 3D acceleration,I've installed VirtualGL and TurboVNC inside the VM and then I did :
and then on FreeBSD I've launched TigerVNC viewer using the address : 192.168.1.2:1 and it worked.
BTW,I'm not sure that this solution is what I wanted. I'm not able to understand if I have the 3D acceleration,even if I can render my animations using the graphic card I want and even if the CUDA libraries are detected,so they work great. I would like to have your opinion if the whole configuration is great. I've added two log files. They contain the output of these commands :
attached log file : xdpyinfo.txt
attached log file : glxinfo.txt
I've found these commands inside the tutorial that I've read :
To be honest,inside the tutorial there is another command to check the sanity for restricted access to 3D X Server,but it can't find it :
Below you see something to fix (pulseaudio connection refused) :
and how to fix this :
After several months of work I've been able to reach the goal that I was working on the last 4 months : to be able to use my RTX 2080 ti inside a Linux VM for rendering my Blender animations using cycles. To be honest,I haven't reached the goal perfectly as I wanted,because bhyve needs some patches to be able to run Xorg and the nvidia driver. Since its development is slow maybe it will not have those patches for a lot of time. BTW,maybe I found a workaround. But before to be sure that my workaround is good,I would like to know what you think. So,first of all,below you can see what I'm trying to explain :
what you see is what I wanted to achieve : that Blender is able to detect my graphic card inside the linux VM,in this case I've used Debian. Since with ssh and X forwarding I can't execute programs that require 3D acceleration,I've installed VirtualGL and TurboVNC inside the VM and then I did :
Code:
marietto-FreeBSD:~# ssh -Y 192.168.1.3
marietto-BHYVE:~# /opt/TurboVNC/bin/vncserver -geometry 1440x900
Desktop 'TurboVNC: marietto-BHYVE:1' started on display marietto-BHYVE:1
Starting applications specified in /home/marietto/.vnc/xstartup.turbovnc
Log file is /home/marietto/.vnc/marietto-BHYVE:1.log
marietto-BHYVE:~# ps ax | grep vnc
1597 pts/0 Sl 0:00 /opt/TurboVNC/bin/Xvnc :1 -desktop TurboVNC: marietto-BHYVE:1 -httpd /opt/TurboVNC/b
in//../java -auth /home/marietto/.Xauthority -geometry 1440x900 -depth 24 -rfbwait 120000 -rfbauth /home/marietto/.vnc/passwd -x509cert /r
oot/.vnc/x509_cert.pem -x509key /home/marietto/.vnc/x509_private.pem -rfbport 5901 -fp /usr/share/fonts/X11/misc,/usr/share/fonts
/X11/75dpi,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/Type1 -deferupdate 1 -dridir /usr/lib/x86_64-linux-gnu/dri -
registrydir /usr/lib/xorg
and then on FreeBSD I've launched TigerVNC viewer using the address : 192.168.1.2:1 and it worked.
BTW,I'm not sure that this solution is what I wanted. I'm not able to understand if I have the 3D acceleration,even if I can render my animations using the graphic card I want and even if the CUDA libraries are detected,so they work great. I would like to have your opinion if the whole configuration is great. I've added two log files. They contain the output of these commands :
Code:
xdpyinfo -display :0
attached log file : xdpyinfo.txt
Code:
/opt/VirtualGL/bin/glxinfo -display :0 -c
attached log file : glxinfo.txt
I've found these commands inside the tutorial that I've read :
Setup VirtualGL and TurboVNC on Ubuntu for OpenGL forwarding
Setup VirtualGL and TurboVNC on Ubuntu for OpenGL forwarding - How to setup VirtualGL and TurboVNC on Ubuntu.md
gist.github.com
To be honest,inside the tutorial there is another command to check the sanity for restricted access to 3D X Server,but it can't find it :
Code:
xauth merge /etc/opt/VirtualGL/vgl_auth_key
xauth: (argv):1: merge: unable to open file /etc/opt/VirtualGL/vgl_auth_key
marietto-BHYVE:/home/marietto/Scrivania# find / -name vgl_auth_key
nothing found.
Below you see something to fix (pulseaudio connection refused) :
Code:
marietto-FreeBSD:~# ssh -Y 192.168.1.2
marietto-BHYVE:~# startxfce4
/usr/bin/startxfce4: X server already running on display localhost:10.0
/usr/bin/iceauth: creating new authority file /run/user/0/ICEauthority
gpg-agent: un gpg-agent è già in esecuzione - non iniziare uno nuovo
Another Window Manager (KWin) is already running on screen localhost:10.0
To replace the current window manager, try "--replace"
(xfwm4:1756): xfwm4-WARNING **: 16:34:47.185: Could not find a screen to manage, exiting
(xfce4-panel:1783): garcon-CRITICAL **: 16:34:56.514: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed
(xfce4-panel:1783): garcon-CRITICAL **: 16:34:56.587: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed
(xfce4-panel:1783): garcon-CRITICAL **: 16:34:56.630: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed
(xfce4-panel:1783): garcon-CRITICAL **: 16:34:56.654: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed
** (wrapper-2.0:1789): WARNING **: 16:34:56.785: No outputs have backlight property
(wrapper-2.0:1790): GLib-GIO-CRITICAL **: 16:34:56.882: g_file_new_for_path: assertion 'path != NULL' failed
(wrapper-2.0:1790): GLib-GIO-CRITICAL **: 16:34:56.882: g_file_monitor_file: assertion 'G_IS_FILE (file)' failed
(wrapper-2.0:1790): GLib-GObject-WARNING **: 16:34:56.882: invalid (NULL) pointer instance
(wrapper-2.0:1790): GLib-GObject-CRITICAL **: 16:34:56.882: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(wrapper-2.0:1790): Gtk-WARNING **: 16:34:56.882: Attempting to add a widget with type GtkToggleButton to a container of type XfcePanelPlugin, but the widget is already inside a container of type XfcePanelPlugin, please remove the widget from its existing container first.
** (wrapper-2.0:1788): WARNING **: 16:34:57.663: Binding 'XF86AudioLowerVolume' failed!
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:34:57.663: Could not have grabbed volume control keys. Is another volume control application (xfce4-volumed) running?
(wrapper-2.0:1799): Gtk-WARNING **: 16:34:57.688: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node button, owner XfceArrowButton)
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:34:57.713: Disconected from the PulseAudio server. Attempting to reconnect in 5 seconds.
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:34:57.713: pa_context_connect() failed: Accesso negato
(wrapper-2.0:1790): Gtk-WARNING **: 16:34:57.880: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)
(wrapper-2.0:1789): Gtk-WARNING **: 16:34:58.034: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner PowerManagerButton)
** (light-locker:1860): ERROR **: 16:35:19.771: Environment variable XDG_SESSION_PATH not set. Is LightDM running?
Connessione non riuscita: Connessione rifiutata
pa_context_connect() non riuscita: Connessione rifiutata
** (xfce4-power-manager:1875): WARNING **: 16:35:20.160: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name
** (xfce4-power-manager:1875): WARNING **: 16:35:20.161: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name
(xfce4-power-manager:1875): GLib-GObject-WARNING **: 16:35:20.383: ../../../gobject/gsignal.c:2614: signal 'Changed' is invalid for instance '0x556d9b1b1870' of type 'GDBusProxy'
(xfce4-power-manager:1875): xfce4-power-manager-WARNING **: 16:35:20.400: could not map keysym 1008ffa8 to keycode
** (xfce4-power-manager:1875): WARNING **: 16:35:20.403: No outputs have backlight property
(xfce4-power-manager:1875): xfce4-power-manager-WARNING **: 16:35:20.406: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Interfaccia «org.freedesktop.UPower.KbdBacklight» inesistente sull'oggetto nel percorso /org/freedesktop/UPower/KbdBacklight
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:35:20.411: Disconected from the PulseAudio server. Attempting to reconnect in 5 seconds.
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:35:20.411: pa_context_connect() failed: Accesso negato
(wrapper-2.0:1788): Gtk-WARNING **: 16:35:20.439: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner PulseaudioButton)
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:35:25.348: Disconected from the PulseAudio server. Attempting to reconnect in 5 seconds.
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:35:25.349: pa_context_connect() failed: Accesso negato
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:35:30.355: Disconected from the PulseAudio server. Attempting to reconnect in 5 seconds.
(xfdesktop:1813): GLib-CRITICAL **: 16:36:22.983: g_variant_new_string: assertion 'string != NULL' failed
La cartella di lavoro "/root/[Invalid UTF-8]" non esiste. Non verrà utilizzata per deporre "xfce4-terminal".
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:36:25.350: Disconected from the PulseAudio server. Attempting to reconnect in 5 seconds.
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:36:25.350: pa_context_connect() failed: Accesso negato
(wrapper-2.0:1788): pulseaudio-plugin-WARNING **: 16:36:30.347: Disconected from the PulseAudio server. Attempting to reconnect in 5 seconds.
and how to fix this :
Code:
marietto@marietto-BHYVE:/$ vglrun glxgears
[VGL] ERROR: Could not open display :0.
marietto@marietto-BHYVE:/$ echo $DISPLAY
:1.0
marietto@marietto-BHYVE:/$ export DISPLAY=:1.0
marietto@marietto-BHYVE:/$ echo $DISPLAY
:1.0
marietto@marietto-BHYVE:/$ vglrun glxgears
[VGL] ERROR: Could not open display :0.