<html><head></head><body><div class="ydpbf1eba0ayahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div><span style="color: rgb(38, 40, 42);">On Monday, March 22, 2021, 10:51:48 AM EDT, Victor Toso <victortoso@redhat.com> wrote:</span></div></div><div id="ydp50cd5413yahoo_quoted_7325345573" class="ydp50cd5413yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div><br></div>
<div dir="ltr" data-setdir="false">Hi,<br clear="none"><br clear="none">On Mon, Mar 22, 2021 at 01:46:08PM +0000, Dr. Jennifer Nussbaum wrote:<br clear="none"><br clear="none"><br clear="none">> > I'm using virt-manger, and its related suite of stuff, to run<br clear="none">> > KVM/QEMU VM's on a Debian Bullseye host, which has two 4K<br clear="none">> > monitors. I am unable to get dual-head working at all, and I<br clear="none">> > can't get 4K resolution working in the way I'm apparently<br clear="none">> > supposed to.<br clear="none">><br clear="none">> Can you share the vm's domain? virsh dumpxml $vm<br clear="none"><br>I've posted this at the bottom of this message, with only small changes to obscure the UUID and paths.<br><br clear="none">> > I have a Debian Bullseye guest, with spice-vdagent and the QXL<br clear="none"><span>> </span>> video drivers installed in it. The Spice user manual suggests<br clear="none"><span>> </span>> that multiple-monitor support is easy; you're supposed to use a<br clear="none"><span>> </span>> Video QXL device and then everything should just work. But it<br clear="none"><span>> </span>> doesn't. Even when I increase the video memory in the XML file<br clear="none"><span>> </span>> (vgamem, I assume) to 64MB I am unable to get 4K on even a<br clear="none"><span>> </span>> single monitor using Settings -> Display on the guest; it maxes<br clear="none"><span>> </span>> out at some arbitrary-seeming thing a bit over 1980 x 1200. And<br clear="none"><span>> </span>> regardless of resolution, I also do not have a second monitor<br clear="none"><span>> </span>> available in the guest.<br clear="none">><br clear="none">> Are you accessing with virt-manager? I don't think there is<br clear="none">> support for multi-monitor there? You should use virt-viewer or<br clear="none">> remote-viewer instead.<br clear="none"><br>virt-manager uses virt-viewer natively; it's what virt-manager fires up when you use the "view graphical console" option.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regardless, I did just launch virt-viewer separately, and it's functioning in the same way.<br><br clear="none"><span>> </span>> If I have a video device set to Virtio, then 4K works perfectly<br clear="none"><span>> </span>> on the guest machine; if I go to Settings -> Display there, I<br clear="none"><span>> </span>> can select 4096 x 2160, and I get lovely 4K video. However,<br clear="none"><span>> </span>> dual-head does not work. If I try to edit the XML for the video<br clear="none"><span>> </span>> device to 'heads="2"', there is no effect--at least, when I<br clear="none"><span>> </span>> restart the guest and go to Settings -> Display, there isn't an<br clear="none"><span>> </span>> option for selecting another monitor. Could someone tell me<br clear="none"><span>> </span>> what I'm supposed to be doing? Thank you.<br clear="none"><span>> </span><br clear="none"><span>> </span>Just confirming, for Spice multi-monitor [0] in recent linux<br clear="none"><span>> </span>guests, one qxl device is enough and you should set the heads to<br clear="none"><span>> </span>2 (virsh edit $vm)</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">As you can see from the XML below, I do (think I) have one qxl device, with 2 heads and 64MB memory.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">When I go into the guest, the maximum resolution I am offered is 2952 x 1781. And there is only one display,</div><div dir="ltr" data-setdir="false">called "Virtual-0".</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you for looking this over.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Jen</div><div><br></div><div>----</div><div><br><div class="ydp50cd5413yqt3117204615" id="ydp50cd5413yqtfd22635" dir="ltr" data-setdir="false"> <div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><domain type="kvm"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <name>debian-bullseye-test</name></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <uuid>36d7d0e7-4801-4396-9f61-2b5022xxxxxxx</uuid></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <memory unit="KiB">4194304</memory></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <currentMemory unit="KiB">4194304</currentMemory></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <vcpu placement="static">2</vcpu></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <os></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <type arch="x86_64" machine="pc-i440fx-2.8">hvm</type></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <boot dev="hd"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </os></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <features></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <acpi/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <apic/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <vmport state="off"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </features></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <cpu mode="host-model" check="partial"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <clock offset="utc"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <timer name="rtc" tickpolicy="catchup"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <timer name="pit" tickpolicy="delay"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <timer name="hpet" present="no"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </clock></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <on_poweroff>destroy</on_poweroff></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <on_reboot>restart</on_reboot></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <on_crash>restart</on_crash></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <pm></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <suspend-to-mem enabled="no"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <suspend-to-disk enabled="no"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </pm></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <devices></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <emulator>/usr/bin/kvm</emulator></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <disk type="file" device="disk"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <driver name="qemu" type="qcow2"/></div><div dir="ltr" data-setdir="false" style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <source file="/home/user/VMs/debian-bullseye-clone.qcow2"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <target dev="vda" bus="virtio"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </disk></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <disk type="file" device="cdrom"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <driver name="qemu" type="raw"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <target dev="hda" bus="ide"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <readonly/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="drive" controller="0" bus="0" target="0" unit="0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </disk></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <controller type="usb" index="0" model="ich9-ehci1"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x7"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </controller></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <controller type="usb" index="0" model="ich9-uhci1"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <master startport="0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0" multifunction="on"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </controller></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <controller type="usb" index="0" model="ich9-uhci2"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <master startport="2"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x1"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </controller></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <controller type="usb" index="0" model="ich9-uhci3"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <master startport="4"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x2"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </controller></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <controller type="pci" index="0" model="pci-root"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <controller type="ide" index="0"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </controller></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <controller type="virtio-serial" index="0"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </controller></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <interface type="network"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <mac address="52:54:00:30:01:2b"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <source network="default"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <model type="rtl8139"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </interface></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <serial type="pty"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <target type="isa-serial" port="0"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <model name="isa-serial"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </target></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </serial></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <console type="pty"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <target type="serial" port="0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </console></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <channel type="unix"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <target type="virtio" name="org.qemu.guest_agent.0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="virtio-serial" controller="0" bus="0" port="1"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </channel></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <channel type="spicevmc"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <target type="virtio" name="com.redhat.spice.0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="virtio-serial" controller="0" bus="0" port="2"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </channel></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <input type="tablet" bus="usb"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="usb" bus="0" port="1"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </input></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <input type="mouse" bus="ps2"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <input type="keyboard" bus="ps2"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <graphics type="spice" autoport="yes"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <listen type="address"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <image compression="off"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </graphics></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <sound model="ich6"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </sound></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <video></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <model type="qxl" ram="65536" vram="65536" vgamem="65536" heads="2" primary="yes"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x09" function="0x0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </video></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <redirdev bus="usb" type="spicevmc"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="usb" bus="0" port="2"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </redirdev></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <redirdev bus="usb" type="spicevmc"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="usb" bus="0" port="3"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </redirdev></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <memballoon model="virtio"></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> <address type="pci" domain="0x0000" bus="0x00" slot="0x08" function="0x0"/></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </memballoon></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"> </devices></div><div style="color: rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"></domain></div></div></div><div class="ydp50cd5413yqt3117204615" id="ydp50cd5413yqtfd84472"><br clear="none"></div></div>
</div>
</div></body></html>