我了解到,较新的VirtualBox支持带有双监视器的Linux guest虚拟机。启动Arch VM时,我可以启动两个监视器,但是无法让Xorg扩展到第二个监视器。它们不断以克隆模式显示。有人成功做到了吗?如果是这样,您可以共享您的xorg.conf吗?
编辑:我的xorg.conf(我尝试将增量BusID作为测试,但之前已将它们相同)。
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "record"
Load "dbe"
Load "dri2"
Load "glx"
Load "extmod"
Load "dri"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Card0"
Screen 0
Driver "vboxvideo"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "Card1"
Screen 1
Driver "vboxvideo"
BusID "PCI:0:2:1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
1
更新:我可以从Xrandr进行此工作,因此它一定是配置错误。我使用xrandr --output VBOX1 --right-of VBOX0使其工作
—
凯尔·史密斯
我知道这是旧帖子,但这是我的诀窍xrandr --output VBOX1 --right- of VBOX0 thanx
—
benzebuth 2012年