We use dual screen with Xorg set up with separate "DISPLAY=:0" and "DISPLAY=:0.1" screens for independent fullscreen applications.
To account for monitor deployments and local wishes, the order of outputs is configurable.
This works on real hardware (tested on AMD and Intel drivers) but fails on VirtualBox with a VM configured for two monitors with VBoxSVGA when the order or screens does not match the order of virtual outputs.
Attached is the example Xorg configuration file that works, i.e. VGA-1 is screen 0, VGA-2 is screen 1.
EDIT: tested with two OS versions in two VMs: one with kernel 5.2.17 + Xorg 1.19.3, another with kernel 5.7.7 + Xorg 1.20.8. Both work or fail the same way.
Code: Select all
$ rpm -qa "VirtualBox*"
VirtualBox-6.1-6.1.10_138449_fedora32-1.x86_64