Bug 1232087

Summary: Suggest to set default bus type to usb when add a tablet device by "--input"
Product: Red Hat Enterprise Linux 7 Reporter: Xiaodai Wang <xiaodwan>
Component: virt-managerAssignee: Pavel Hrdina <phrdina>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.2CC: crobinso, juzhou, mzhan, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-1.3.2-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 01:57:37 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 Xiaodai Wang 2015-06-16 03:45:27 UTC
Description of problem:
Suggest to set default bus type to usb when add a tablet device by "--input".

Version-Release number of selected component (if applicable):
virt-manager-1.2.0-4.el7.noarch
virt-install-1.2.0-4.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Run virt-install command with --input type=tablet, but not set bus type for it.
#virt-install --name demotest --memory 1024 --disk path=/var/lib/libvirt/images/demo.img,size=2 --input type=tablet -l http://download.englab.nay.redhat.com/pub/rhel/released/RHEL-6/6.6/Server/x86_64/os --debug


Actual results:
[Mon, 15 Jun 2015 23:29:55 virt-install 1090] ERROR (cli:296) internal error: unsupported input bus xen

Expected results:
Because ps2 and xen are not supported, it's better to set the default bus type to usb for tablet device, so that the guest can install a tablet device without specify the bus type.

Additional info:
1. if set bus to ps2, "ERROR (cli:296) internal error: ps2 bus does not support tablet input device" occurs.
2. if set bus to xen, "ERROR (cli:296) internal error: unsupported input bus xen"

Comment 3 Cole Robinson 2015-11-22 02:08:55 UTC
Fixed upstream now:

commit 6d3b5e283804770dae945a5e79c46fd182d39881
Author: Cole Robinson <crobinso>
Date:   Sat Nov 21 20:26:50 2015 -0500

    cli: Have '--input tablet' default to bus=usb (bz 1232087)
    
    Make the default a little smarter in other ways too

Comment 4 Mike McCune 2016-03-28 23:17:33 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 6 XiaoyunHu 2016-07-19 03:45:02 UTC
I can reproduce this bug with package:
virt-manager-1.2.1-8.el7.noarch
virt-install-1.2.1-8.el7.noarch

Steps are the same as description above.

Then try to verify with new build:
virt-manager-1.4.0-1.el7.noarch
virt-install-1.4.0-1.el7.noarch

Steps:
1.Run virt-install command with --input type=tablet, but not set bus type for it.
#virt-install --name demotest --memory 1024 --disk path=/var/lib/libvirt/images/demo.img,size=2 --input type=tablet -l http://download.englab.nay.redhat.com/pub/rhel/released/RHEL-6/6.6/Server/x86_64/os --debug

Results:
1. The guest can be installed successfully.
2. After installation,Run "virsh dumpxml demotest |grep input -A10"
    <input type='tablet' bus='usb'>
      <alias name='input0'/>

According to the result above in the latest version of virt-manager, move this bug from ON_QA to VERIFIED.

Comment 8 errata-xmlrpc 2016-11-04 01:57:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2269.html