Forum / NoMachine for Linux / Black screen trying to configure NoMachine on a Linux / Debian VM
- This topic has 3 replies, 2 voices, and was last updated 3 years, 1 month ago by Britgirl.
-
AuthorPosts
-
November 9, 2021 at 10:06 #36146ziomarioParticipant
Hello to everyone.
Actually I’m using FreeBSD 13R as host OS where I’ve virtualized Debian 11 with bhyve where I have passed thru my graphic card,the nvidia RTX 2080 ti. Below you can see what are the arguments that I have used :
bhyve -S -c 8 -m 8G -w -H \
-s 0,hostbridge \
-s 2,virtio-blk,/mnt/da4s1/OS/bhyve/Debian/debian11-cuda-11-4-nvidia-470.img \
-s 3:0,passthru,2/0/0,rom=TU102.rom \
-s 3:1,passthru,2/0/1 \
-s 3:2,passthru,2/0/2 \
-s 3:3,passthru,2/0/3 \
-s 8,virtio-net,tap0 \
-s 30,xhci,tablet \
-s 31,lpc \
-s 29,fbuf,tcp=0.0.0.0:5900,w=1440,h=900 \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
vm0Inside this VM I have installed the following components :
0) the graphic card passed through inside the debian vm + a dummy hdmi adapter detected by the tool nvidia-xconfig
root@marietto-BHYVE:/home/marietto# nvidia-xconfig --query-gpu-info Number of GPUs: 1 GPU #0: Name : NVIDIA GeForce RTX 2080 Ti UUID : GPU-74c6f81e-9e6c-f279-2878-2d28f4333f6a PCI BusID : PCI:0:3:0 Number of Display Devices: 1 Display Device 0 (TV-2): EDID Name : XMD Mi TV Minimum HorizSync : 15.000 kHz Maximum HorizSync : 140.000 kHz Minimum VertRefresh : 49 Hz Maximum VertRefresh : 80 Hz Maximum PixelClock : 600.000 MHz Maximum Width : 4096 pixels Maximum Height : 2160 pixels Preferred Width : 1920 pixels Preferred Height : 1080 pixels Preferred VertRefresh : 60 Hz Physical Width : 600 mm Physical Height : 340 mm
1) the nvidia driver 470 :
root@marietto-BHYVE:/home/marietto# nvidia-smi Mon Nov 8 18:29:06 2021
+—————————————————————————–+
| NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 CUDA Version: 11.4 |
|——————————-+———————-+———————-+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce … On | 00000000:00:03.0 Off | N/A |
| 30% 32C P8 20W / 250W | 1MiB / 11019MiB | 0% Default |
| | | N/A |
+——————————-+———————-+———————-+
+—————————————————————————–+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+—————————————————————————–+2) cuda libraries :
root@marietto-BHYVE:/home/marietto# /usr/local/cuda-11.4/bin/nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Wed_Jul_14_19:41:19_PDT_2021 Cuda compilation tools, release 11.4, V11.4.100 Build cuda_11.4.r11.4/compiler.30188945_0
3) a xorg.conf file that I’ve configured following this guide : https://virtualgl.org/Documentation/HeadlessNV
that looks like this : https://pastebin.ubuntu.com/p/rKcKcS9GSK/
after that I have generated the file giving this command :
sudo nvidia-xconfig -a --allow-empty-initial-configuration --use-display-device=None --virtual=1920x1200 --busid PCI:0:3:0
4) I’ve installed virtualGL replying to questions as u can see here : https://pastebin.ubuntu.com/p/zdTz4SZhRH/
5) NoMachine server 7.7.4.1
6) I’ve opened port 4000 on the router
6.1) nano /usr/NX/etc/node.cfg
added : DefaultDesktopCommand /usr/bin/startxfce4
7) I’ve rebooted the vm and I went on Windows 10 installed on another machine and I tried to connect to the NoMachine server at address 192.168.1.2,the IP address of the VM at port 4000,but I see only a black screen. Where is the mistake ?
November 9, 2021 at 13:46 #36173ziomarioParticipantUPDATE : There is a workaround to fix it,to stop and start the nx server,like this :
sudo /etc/NX/nxserver --shutdown
sudo /etc/NX/nxserver --startmode manual
sudo /etc/NX/nxserver --restart
but it is uncomfortable. I don’t understand why it works like this and how to fix it.
November 10, 2021 at 10:32 #36174ziomarioParticipantUpdate 2 : I see the same behavior if I virtualize the same debian VM on linux with qemu + kvm. So,it does not depend about freebsd + bhyve.
November 11, 2021 at 13:34 #36208BritgirlKeymasterWe’ve tried workaround with dummy xorg – and it works fine – without requiring an extra restart. There could be something wrong with your configuration maybe? Can you try disabling the Display manager like in point 3 of this self-help article?
How to solve black screen on Linux headless machines?
https://knowledgebase.nomachine.com/AR03P00973 -
AuthorPosts
This topic was marked as closed, you can't post.