我们有生产机器运行RedHat RHEL 5.11 / X.org版本7.1.1。这些机器的供应商提供VirtualBox VM,以允许在传统计算机上进行软件开发,即远离生产车间。 我想配置这个VM用于双头/双显示器/双屏幕使用。
步骤1:VirtualBox Manager中的VM配置为最大视频内存和2个监视器。
步骤2:安装VirtualBox GuestAdditions,版本对应于Virtual Box应用程序。
步骤3:修改/etc/X11/xorg.conf以支持2个设备,2个屏幕和2个监视器,所有这些都是为vboxvideo驱动程序配置的。内容如下所示:
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "Multihead layout"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "LCD Panel 1600x1200"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "LCD Panel 1600x1200"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "vboxvideo"
BusID "PCI:0:2:0"
Screen 0
EndSection
Section "Device"
Identifier "Videocard1"
Driver "vboxvideo"
BusID "PCI:0:2:1"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1600x1200" "1280x1024" "1280x960" "1280x800" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1280x960" "1280x800" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
第4步:重启系统
我现在预计系统已设置好并准备在我的计算机上显示两个屏幕。唉,它只显示Screen0。
观察:
/var/log/Xorg.0.log显示没有错误,但有几个警告:
(WW) VBoxVideo(0): Failed to set up write-combining range (0xe0000000,0x8000000)
lspci也只显示了VBox视频驱动程序的一个实例:
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
我看到的其他所有内容似乎都是一致的:第二个屏幕在我的RHEL VM上找不到。
问题: