Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Descriptionmxie@redhat.com
2016-08-26 07:58:45 UTC
Description of problem:
mouse can't be used in guest with vnc+qxl mode when guest has feature <vmport state='off'/> but has not tablet in xml
Version-Release number of selected component (if applicable):
libvirt-2.0.0-6.el7.x86_64
qemu-kvm-rhev-2.6.0-22.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
Scenario1:
1.1 Prepare a guest which has feature <vmport state='off'/> and tablet <input type='tablet' bus='usb'> in xml
<domain type='kvm' id='20'>
<name>rhel6.8</name>
<uuid>dc450321-71c1-42ea-b53b-e31b6efe4f91</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type>
<bootmenu enable='yes'/>
</os>
<features>
<acpi/>
<apic/>
<vmport state='off'/>
</features>
........
<input type='tablet' bus='usb'>
<alias name='input0'/>
<address type='usb' bus='0' port='1'/>
</input>
<graphics type='vnc' port='5902' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
.......
</domain>
Result:mouse can be used in guest
Scenario2:
2.1 Prepare a guest which has feature <vmport state='off'/> but has not tablet in guest xml
<domain type='kvm' id='20'>
<name>rhel6.8</name>
<uuid>dc450321-71c1-42ea-b53b-e31b6efe4f91</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type>
<bootmenu enable='yes'/>
</os>
<features>
<acpi/>
<apic/>
<vmport state='off'/>
</features>
......,
<graphics type='vnc' port='5902' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
.......
</domain>
Result:mouse can not be used in guest
Actual results:
As above description
Expected results:
mouse can be used in guest with vnc+qxl mode when guest has feature <vmport state='off'/> but has not tablet in xml
Additional info:
1.mouse can be used in guest with spice+qxl mode when guest has feature <vmport state='off'/> but has not table in xml
2.mouse can be used in guest with vnc+cirrus mode when guest has feature <vmport state='off'/> but has not table in xml
(In reply to Gerd Hoffmann from comment #2)
> Hi,
>
> > Result:mouse can not be used in guest
>
> Which means what? Not working at all? No mouse pointer visible?
>
> Is the spice guest agent installed?
Hi Gerd,
Actually, there are two mouse in the guest, one mouse could be seen but another one which has actual control can't be seen, this bug will be happened when guest is using vnc+qxl mode and has feature <vmport state='off'/> but has not tablet in xml, so there is no service spice-vdagentd running in guest,thanks.
Hmm, yes, qxl wants move the mouse pointer (on guest request).
vnc doesn't support that (no rfb protocol message).
No easy way out.
No new issue, no regression, certainly not 7.3 material.
(In reply to Gerd Hoffmann from comment #4)
> Hmm, yes, qxl wants move the mouse pointer (on guest request).
> vnc doesn't support that (no rfb protocol message).
>
> No easy way out.
>
> No new issue, no regression, certainly not 7.3 material.
I think we can close this as wontfix (unsupported corner case). areis?
spice is recommended for qxl anyway, and in absolute mode (i.e. with tablet, which is usually the case) qxl+vnc works fine too.
(In reply to Gerd Hoffmann from comment #5)
> (In reply to Gerd Hoffmann from comment #4)
> > Hmm, yes, qxl wants move the mouse pointer (on guest request).
> > vnc doesn't support that (no rfb protocol message).
> >
> > No easy way out.
> >
> > No new issue, no regression, certainly not 7.3 material.
>
> I think we can close this as wontfix (unsupported corner case). areis?
>
> spice is recommended for qxl anyway, and in absolute mode (i.e. with tablet,
> which is usually the case) qxl+vnc works fine too.
agree.
If the guest is rhel5.11, the mouse can't be used normally no matter graphic mode is spice+qxl or vnc+qxl even if guest doesn't have feature <vmport state='off'/> but have tablet <input type='tablet' bus='usb'> in xml
# virsh dumpxml esx6.0-rhel5.11-x86_64
<domain type='kvm' id='201'>
<name>esx6.0-rhel5.11-x86_64</name>
<uuid>6069d0d5-0fc4-461a-94a1-94d93c7a62d1</uuid>
....
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
</features>
....
<input type='tablet' bus='usb'>
<alias name='input0'/>
<address type='usb' bus='0' port='1'/>
</input>
....
</domain>
Packages:
qemu-kvm-rhev-2.6.0-28.el7_3.3.x86_64
(In reply to mxie from comment #7)
> If the guest is rhel5.11, the mouse can't be used normally no matter graphic
> mode is spice+qxl or vnc+qxl even if guest doesn't have feature <vmport
> state='off'/> but have tablet <input type='tablet' bus='usb'> in xml
Most likely a guest configuration issue, on RHEL-5 the tablet is not configured automatically, you have to do it manually, like this:
--- xorg.conf.o 2014-03-04 09:33:51.000000000 +0100
+++ xorg.conf 2014-03-04 09:41:33.000000000 +0100
@@ -4,6 +4,7 @@
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
+ InputDevice "usb-tablet" "CorePointer"
EndSection
Section "InputDevice"
@@ -14,6 +15,12 @@
Option "XkbVariant" "nodeadkeys"
EndSection
+Section "InputDevice"
+ Identifier "usb-tablet"
+ Driver "evdev"
+ Option "Device" "/dev/input/event2"
+EndSection
+
Section "Device"
Identifier "Videocard0"
Driver "qxl"
Might be another event<nr> device depending on guest configuration, you can check /proc/bus/input/devices to see which event device got assigned to the qemu usb tablet.
Description of problem: mouse can't be used in guest with vnc+qxl mode when guest has feature <vmport state='off'/> but has not tablet in xml Version-Release number of selected component (if applicable): libvirt-2.0.0-6.el7.x86_64 qemu-kvm-rhev-2.6.0-22.el7.x86_64 How reproducible: 100% Steps to Reproduce: Scenario1: 1.1 Prepare a guest which has feature <vmport state='off'/> and tablet <input type='tablet' bus='usb'> in xml <domain type='kvm' id='20'> <name>rhel6.8</name> <uuid>dc450321-71c1-42ea-b53b-e31b6efe4f91</uuid> <memory unit='KiB'>1048576</memory> <currentMemory unit='KiB'>1048576</currentMemory> <vcpu placement='static'>1</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type> <bootmenu enable='yes'/> </os> <features> <acpi/> <apic/> <vmport state='off'/> </features> ........ <input type='tablet' bus='usb'> <alias name='input0'/> <address type='usb' bus='0' port='1'/> </input> <graphics type='vnc' port='5902' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> ....... </domain> Result:mouse can be used in guest Scenario2: 2.1 Prepare a guest which has feature <vmport state='off'/> but has not tablet in guest xml <domain type='kvm' id='20'> <name>rhel6.8</name> <uuid>dc450321-71c1-42ea-b53b-e31b6efe4f91</uuid> <memory unit='KiB'>1048576</memory> <currentMemory unit='KiB'>1048576</currentMemory> <vcpu placement='static'>1</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type> <bootmenu enable='yes'/> </os> <features> <acpi/> <apic/> <vmport state='off'/> </features> ......, <graphics type='vnc' port='5902' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> ....... </domain> Result:mouse can not be used in guest Actual results: As above description Expected results: mouse can be used in guest with vnc+qxl mode when guest has feature <vmport state='off'/> but has not tablet in xml Additional info: 1.mouse can be used in guest with spice+qxl mode when guest has feature <vmport state='off'/> but has not table in xml 2.mouse can be used in guest with vnc+cirrus mode when guest has feature <vmport state='off'/> but has not table in xml