Bug 1353222

Summary: Failure to recover saved state if usb keyboard present
Product: [Fedora] Fedora Reporter: Zeeshan Ali <zeenix>
Component: libvirtAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: agedosier, berrange, clalancette, dyuan, itamar, laine, libvirt-maint, mclasen, phrdina, pzhang, rbalakri, veillard, virt-maint, xuzhang
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-1.3.3.2-1.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-22 15:58:02 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 Zeeshan Ali 2016-07-06 14:52:24 UTC
Description of problem:

If xml definition of a domain contains a USB keyboard device:

    <input type='keyboard' bus='usb'/>

libvirt fails to start the domain:

# start fedora23-wor
error: Failed to start domain fedora23-wor
error: operation failed: job: unexpectedly failed

Here is the log:

2016-07-06T14:30:09.571487Z qemu-system-x86_64: Unknown savevm section or instance '0000:00:06.7/3/usb-kbd' 0
2016-07-06T14:30:09.573564Z qemu-system-x86_64: load of migration failed: Invalid argument

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

libvirt: 1.3.3.1
qemu: 2.6.0-4

Host is Fedora 24.

Comment 1 Pavel Hrdina 2016-07-07 08:20:12 UTC
Fixed in upstream:

commit 3d3d1dfa3125a71e7944c725e554fbfcfaac9c5f
Author: Pavel Hrdina <phrdina>
Date:   Fri May 6 13:55:15 2016 +0200

    domain_conf: fix migration/managedsave with usb keyboard

Needs to be backported to Fedora.  Assigning to Cole in order to handle the fedora package.

Comment 2 Fedora Update System 2016-07-19 11:25:21 UTC
libvirt-1.3.3.2-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-65cc608ebe

Comment 3 Fedora Update System 2016-07-20 01:53:43 UTC
libvirt-1.3.3.2-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-65cc608ebe

Comment 4 Fedora Update System 2016-07-22 15:56:55 UTC
libvirt-1.3.3.2-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.