【发布时间】:2020-06-03 20:28:08
【问题描述】:
我需要使用 SSH 在虚拟机上远程运行 Google Chrome。我不想要 xforwarding - 我想利用 vm 上可用的 GPU。当我尝试运行 google-chrome 时,出现以下错误:
[19615:19615:0219/152933.751028:ERROR:browser_main_loop.cc(1512)] Unable to open X display.
我尝试将我的 DISPLAY 环境值设置为各种值:
export DISPLAY=localhost:0.0
export DISPLAY=127.0.0.1:0.0
export DISPLAY=:0.0
我也尝试用不同的值替换上面示例中的 0.0。
我在 /etc/ssh/sshd_config 中有 ForwardX11 no
我尝试像这样设置目标:
systemctl isolate multi-user.target
当我尝试运行 sudo lshw -C display 时,我得到以下输出:
*-display
description: VGA compatible controller
product: Hyper-V virtual VGA
vendor: Microsoft Corporation
physical id: 8
bus info: pci@0000:00:08.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller bus_master rom
configuration: driver=hyperv_fb latency=0
resources: irq:11 memory:f8000000-fbffffff
*-display UNCLAIMED
description: VGA compatible controller
product: GM204GL [Tesla M60]
vendor: NVIDIA Corporation
physical id: 1
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list
configuration: latency=0
resources: iomemory:f0-ef iomemory:f0-ef memory:41000000-41ffffff memory:fe0000000-fefffffff memory:ff0000000-ff1ffffff
我尝试通过以下方式更新我的 gpu 驱动程序:
wget https://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/tesla/375.66/nvidia-diag-driver-local-repo-rhel7-375.66-1.x86_64.rpm
yum -y install nvidia-diag-driver-local-repo-rhel7-375.66-1.x86_64.rpm
但在那之后,我仍然在我的 NVIDIA gpu 旁边看到 UNCLIMED。
有什么想法?
【问题讨论】:
-
您正试图从另一台计算机上启动 google chome,对吧?
-
检查你是否有一个正在运行的xorg,它的端口是6000+n(n是显示号)
-
我正在尝试在虚拟机上从我的计算机上使用 Chrome。需要明确的是,我不想要 X 转发 - 我想要 się 虚拟机上可用的 NVIDIA Tesla GPU。
-
基本但必要的问题:你的虚拟机上是否有正在运行的 xorg ?
标签: ssh centos x11-forwarding