Bug 1422824

Summary: RFE: default to supporting USB tablet, regardless of libosinfo metadata
Product: [Community] Virtualization Tools Reporter: Christophe de Dinechin <dinechin>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, crobinso, gscrivan, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-29 18:00:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christophe de Dinechin 2017-02-16 10:55:58 UTC
Description of problem:

When installing Ubuntu or Linux Mint from ISO files, the VM that is generated does not have a tablet configured, only a mouse, unlike Fedora images. So it is not sufficient to add the spice-vdagent to get a good mouse integration, one must also manually edit the VM in a way that is probably not entirely obvious to everybody.

Version-Release number of selected component (if applicable):

virt-manager 1.4.0 on fc25


How reproducible: Always


Steps to Reproduce:
1. Create a new VM from an Ubuntu or Linux Mint ISO image (I tried Ubuntu 16.10, 16.04LTS and 14.04LTS, as well as Linux Mint 17 Cinnamon v2).

2. Boot the VM. There is only basic mouse support, i.e. the mouse stays within the guest window.

3. Install spice-vdagent with 'sudo apt-get install spice-vdagent'.

4. Reboot

5. Try to use the mouse


Actual results:

The mouse is still stuck within the guest, and you need to use the Control-Alt combination to uncapture it.

Expected results:

The mouse should be able to exit the guest without further intervention on the guest configuration. Currently, the user must manually add a tablet to get the expected behavior. This is somewhat time consuming, and more annoyingly, not self-explanatory.

Comment 1 Cole Robinson 2017-02-16 21:45:00 UTC
There's a few issues here:

1) libosinfo doesn't have any knowledge of linux mint

2) libosinfo doesn't report that ubuntu supports the USB tablet device. I filed: https://bugzilla.redhat.com/show_bug.cgi?id=1423024

3) virt-manager should just default to using USB tablet by default regardless of what libosinfo supports, since all linux distros from the past six years should support it. We can repurpose this to track that change. We'll want to double check that RHEL5 doesn't misbehave with the USB device attached

Comment 2 Cole Robinson 2018-09-29 18:00:23 UTC
This is upstream now:

commit 7356afcca7e9c7c1a3e9d0144582f905aeaf122d (work)
Author: Cole Robinson <crobinso>
Date:   Sat Sep 29 13:34:48 2018 -0400

    osdict: Use USB tablet if no OS specified