[Users] 2 virtual monitors for Fedora guest

Hi, I'm trying to virtualize my Fedora 20 workstation on oVirt 3.4 with 2 screens. No matter if I choose Server or Desktop and operating system Linux or RHEL 6.x x64 (surprisingly Fedora is missing in the list) my Fedora guest (or better say LXRandR) only recognizes 1 monitor. ps -ef | grep myvm shows me that there are 2 monitors (or at least I think that I can interpret the output this way): -vga qxl -global qxl-vga.ram_size=134217728 -global qxl-vga.vram_size=33554432 Does anyone know how I can make my Fedora guest work with 2 screens? Thanks! -- Best Regards René Koch Senior Solution Architect ============================================ LIS-Linuxland GmbH Brünner Straße 163, A-1210 Vienna Phone: +43 1 236 91 60 Mobile: +43 660 / 512 21 31 E-Mail: rkoch@linuxland.at ============================================

On Tue, Apr 8, 2014 at 2:48 PM, René Koch <rkoch@linuxland.at> wrote:
Hi,
I'm trying to virtualize my Fedora 20 workstation on oVirt 3.4 with 2 screens.
Probably you already visited this: http://www.ovirt.org/Features/SPICERelatedFeatures#Multi_Monitor_support_for... but from the text is not so clear to me if it is completely doable or not in 3.4 ... The page refers to Xinerama in need to be configured inside the guest I don't know if for QXL device and fedora 20 one has to trick with xorg.conf or not putting something like Section "ServerLayout" Identifier "Layout0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" Option "Clone" "off" Option "Xinerama" "on" Screen 0 "Screen0" Screen 1 "Screen1" Below "Screen0" EndSection Does your Xorg.0.log gives any useful information regarding the two devices and anythng about Xinerama? Gianluca

Hi Gianluca, Thanks a lot for your answer. On 04/08/2014 04:29 PM, Gianluca Cecchi wrote:
On Tue, Apr 8, 2014 at 2:48 PM, René Koch <rkoch@linuxland.at> wrote:
Hi,
I'm trying to virtualize my Fedora 20 workstation on oVirt 3.4 with 2 screens.
Probably you already visited this: http://www.ovirt.org/Features/SPICERelatedFeatures#Multi_Monitor_support_for...
No, I didn't - thanks a lot for the link. As it says it's for oVirt 3.1 it properly should be in oVirt 3.4.
but from the text is not so clear to me if it is completely doable or not in 3.4 ... The page refers to Xinerama in need to be configured inside the guest I don't know if for QXL device and fedora 20 one has to trick with xorg.conf or not putting something like
Hurra - we're in year 2014 and Linux is still not able to configure 2 screens with a simple click. :( Btw, I don't even find a config file for ServerLayout section in /etc/X11.
Section "ServerLayout" Identifier "Layout0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" Option "Clone" "off" Option "Xinerama" "on" Screen 0 "Screen0" Screen 1 "Screen1" Below "Screen0" EndSection
Does your Xorg.0.log gives any useful information regarding the two devices and anythng about Xinerama?
In Xorg.0.log I can see the following: qxl(0): Output Virtual-0 has no monitor section qxl(0): Output Virtual-1 has no monitor section qxl(0): Output Virtual-2 has no monitor section qxl(0): Output Virtual-3 has no monitor section <snip> qxl(0): Output Virtual-0 connected qxl(0): Output Virtual-1 disconnected qxl(0): Output Virtual-2 disconnected qxl(0): Output Virtual-3 disconnected Whatever this mean. No clue about Xorg - should install X on my servers to get more practice in it :) Btw, in Remote Viewer I can choosee View - Display and select Display 2. In second remote viewer windows I see "Waiting for display 2..." - os it seems that at least the port is for second display is open on my host. So I guess oVirt is working fine and the question about the dual screen mode can be answered best on Spice or Fedora mailing list? Regards, René
Gianluca

Hi, No configuration nor Xinerama should be needed. Just make sure you have spice-vdagent package installed, spice-vdagentd service running and two spice-vdagent processes running (one for *dm, one for your user session). Then enable other monitors in virt-viewer: check View -> Displays -> Display N. Xinerama is an old hackish means to multimonitor for linux guests with numerou disadvantages so please avoid that. If you really really want to use xinerama, then switch your OS type to Windows and your VM will get multiple qxl devices that xinerama depends on. David On Út, 2014-04-08 at 14:48 +0200, René Koch wrote:
Hi,
I'm trying to virtualize my Fedora 20 workstation on oVirt 3.4 with 2 screens.
No matter if I choose Server or Desktop and operating system Linux or RHEL 6.x x64 (surprisingly Fedora is missing in the list) my Fedora guest (or better say LXRandR) only recognizes 1 monitor.
ps -ef | grep myvm shows me that there are 2 monitors (or at least I think that I can interpret the output this way): -vga qxl -global qxl-vga.ram_size=134217728 -global qxl-vga.vram_size=33554432
Does anyone know how I can make my Fedora guest work with 2 screens? Thanks!

On Út, 2014-04-08 at 17:32 +0200, David Jaša wrote:
Hi,
No configuration nor Xinerama should be needed. Just make sure you have spice-vdagent package installed, spice-vdagentd service running and two spice-vdagent processes running (one for *dm, one for your user session).
PS: if the spice-vdagent package is installed in the guest and the processes mentioned above are not running, it is a bug that should be reported. David
Then enable other monitors in virt-viewer: check View -> Displays -> Display N.
Xinerama is an old hackish means to multimonitor for linux guests with numerou disadvantages so please avoid that. If you really really want to use xinerama, then switch your OS type to Windows and your VM will get multiple qxl devices that xinerama depends on.
David
On Út, 2014-04-08 at 14:48 +0200, René Koch wrote:
Hi,
I'm trying to virtualize my Fedora 20 workstation on oVirt 3.4 with 2 screens.
No matter if I choose Server or Desktop and operating system Linux or RHEL 6.x x64 (surprisingly Fedora is missing in the list) my Fedora guest (or better say LXRandR) only recognizes 1 monitor.
ps -ef | grep myvm shows me that there are 2 monitors (or at least I think that I can interpret the output this way): -vga qxl -global qxl-vga.ram_size=134217728 -global qxl-vga.vram_size=33554432
Does anyone know how I can make my Fedora guest work with 2 screens? Thanks!
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 04/08/2014 05:32 PM, David Jaša wrote:
Hi,
No configuration nor Xinerama should be needed. Just make sure you have spice-vdagent package installed, spice-vdagentd service running and two spice-vdagent processes running (one for *dm, one for your user session). Then enable other monitors in virt-viewer: check View -> Displays -> Display N.
No Xinerama sounds great! vdagent was already installed and is running: $ ps -ef | grep vdagent root 729 1 0 17:51 ? 00:00:00 /usr/sbin/spice-vdagentd rkoch 1487 1 0 17:52 ? 00:00:00 /usr/bin/spice-vdagent When I open a second monitor in virt-viewer it says "Waiting for display 2..." and my vdagent services stops: $ ps -ef | grep vdagent root 729 1 0 17:51 ? 00:00:00 /usr/sbin/spice-vdagentd In /var/log/messages I can see the following: Apr 8 17:53:07 pc02 kernel: [ 128.497232] input: spice vdagent tablet as /devices/virtual/input/input5 Apr 8 17:53:07 pc02 kernel: input: spice vdagent tablet as /devices/virtual/input/input5 Apr 8 17:53:11 pc02 spice-vdagentd: closed vdagent virtio channel My vm has now the following settings: OS: Linux Optimized for: Desktop Monitors: 2 Single PCI: activated
Xinerama is an old hackish means to multimonitor for linux guests with numerou disadvantages so please avoid that. If you really really want to use xinerama, then switch your OS type to Windows and your VM will get multiple qxl devices that xinerama depends on.
I don't want to use it and hack in Xorg config files :) Regards, René
David
On Út, 2014-04-08 at 14:48 +0200, René Koch wrote:
Hi,
I'm trying to virtualize my Fedora 20 workstation on oVirt 3.4 with 2 screens.
No matter if I choose Server or Desktop and operating system Linux or RHEL 6.x x64 (surprisingly Fedora is missing in the list) my Fedora guest (or better say LXRandR) only recognizes 1 monitor.
ps -ef | grep myvm shows me that there are 2 monitors (or at least I think that I can interpret the output this way): -vga qxl -global qxl-vga.ram_size=134217728 -global qxl-vga.vram_size=33554432
Does anyone know how I can make my Fedora guest work with 2 screens? Thanks!
participants (3)
-
David Jaša
-
Gianluca Cecchi
-
René Koch