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.
Description of problem:
In domain XML, addition of usbredir devices requires specification of USB controllers where it is mandatory to specify exact PCI type of controller(s) and their addresses. Given that virt-install exists to abstract users away from these low-level details (e.g. by auto-creating pci and scsi controllers for respective devices), it should be able to authttps://cs.wikipedia.org/wiki/%C5%A0koda_21Tro-create USB controller(s) for usbredir devices. Maybe, there could be a specific suboption to --controller option for specification of USB2/3 controller version, but the low-level details should not be required, e.g.
virt-install [--controller usb,version=(2|3)] --redirdev
In addition, "--redirdev usb,type=spicevmc" devices don't require any additional configuration opening options to further simplification for users:
virt-install [--controller usb,version=(2|3)] --redirdev usb,type=spicevmc,count=4
Version-Release number of selected component (if applicable):
virt-manager-1.1.0-12.el7.src.rpm
How reproducible:
always
Steps to Reproduce:
1. try to set up a VM with usb redirection using usb2 controller without need to specify PCI addresses or master ports
Comment 1Giuseppe Scrivano
2015-03-23 17:31:12 UTC
do you mean something like:
virt-install --memory=2 --name=foo --nodisks --pxe --controller usb2 --redirdev usb,type=spicevmc ?
Thanks for the hint, the XML looks good. So could doc be updated to reflect that the feature already exists? The manual page only says:
"Controller also supports the special values usb2 and usb3"
but there is no further mention that they do what I requested.
Comment 3Giuseppe Scrivano
2015-04-10 11:27:46 UTC
Comment 4Giuseppe Scrivano
2015-04-10 14:44:03 UTC
upstream commit:
commit 1f6faa33dc99c4b7990e505fc4ad9672baa39f09
Author: Giuseppe Scrivano <gscrivan>
Date: Fri Apr 10 12:43:01 2015 +0200
doc: make clearer what usb2 and usb3 means to --controller
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1204895
Signed-off-by: Giuseppe Scrivano <gscrivan>
I can reproduce this bug with package:
virt-install-1.1.0-13.el7.noarch.rpm
virt-manager-1.1.0-13.el7.noarch.rpm
virt-manager-common-1.1.0-13.el7.noarch.rpm
Steps:
1. Check the virt-install man page.
--controller=TYPE[,OPTS]
Attach a controller device to the guest. TYPE is one of: ide, fdc, scsi, sata, virtio-serial, or usb.
Controller also supports the special values usb2 and usb3.
Then try to verify with latest build:
virt-install-1.2.1-2.el7.noarch.rpm
virt-manager-1.2.1-2.el7.noarch.rpm
virt-manager-common-1.2.1-2.el7.noarch.rpm
Steps:
1. --controller OPTIONS
Attach a controller device to the guest. TYPE is one of: ide, fdc, scsi, sata, virtio-serial, or usb.
Controller also supports the special values usb2 and usb3 to specify which version of the USB controller should be used (version 2 or 3).
According to the result above in the latest version of virt-manager, move this bug from ON_QA to VERIFIED.
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-2015-2206.html