Bug 988070

Summary: USB keyboard on POWER guests
Product: [Community] Virtualization Tools Reporter: Vitor de Lima <vitor.lima>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, gustavo.pedrosa, hannsj_uhl, jtomko, leonardo.bianconi
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1122627 (view as bug list) Environment:
Last Closed: 2014-04-17 10:05:44 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:
Bug Depends On:    
Bug Blocks: 1122627    
Attachments:
Description Flags
A XML describing an emulated PPC64 pseries guest none

Description Vitor de Lima 2013-07-24 16:36:47 UTC
Created attachment 777861 [details]
A XML describing an emulated PPC64 pseries guest

Description of problem:
A simple description of a emulated PPC64 in a domain XML doesn't create a virtual keyboard.

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

How reproducible:
100%

Steps to Reproduce:
1. Use virsh to create a domain based on the attached vm.xml file
2. Wait until the Open Firmware command prompt opens up
3. You cannot interact with the prompt since there is no virtual keyboard

Actual results:
It is not possible to write anything in the Open Firmware prompt.

Expected results:
There should be a way to interact with the Open Firmware prompt or create a virtual keyboard in the domain XML.

Additional info:
I haven't found a way to create a virtual USB keyboard through the libvirt, instead i used the "qemu:commandline" tag to pass the "-usbdevice keyboard" parameter to QEMU.

Comment 1 Ján Tomko 2014-04-17 10:05:44 UTC
This should be fixed upstream by:
commit 78730478aa3e3157b9d86b1054d32f61d6616880
Author:     Li Zhang <zhlcindy.ibm.com>
CommitDate: 2014-02-19 09:16:31 +0100

    qemu: format qemu command line for USB keyboard
    
    Format qemu command line for USB keyboard
    and add test cases for it.
    
    Signed-off-by: Li Zhang <zhlcindy.ibm.com>
    Signed-off-by: Ján Tomko <jtomko>

git describe: v1.2.1-244-g7873047 contains: v1.2.2-rc1~48

with the keyboard automatically added on PPC64:
commit cffa51b81d3ad166a7caf3d4ec08d88c41f273fe
Author:     Li Zhang <zhlcindy.ibm.com>
AuthorDate: 2014-02-17 18:17:58 +0800
Commit:     Ján Tomko <jtomko>
CommitDate: 2014-02-19 09:16:31 +0100

    Add a default USB keyboard and USB mouse for PPC64
    
    There is no keyboard working on PPC64 and PS2 mouse is only for X86
    when graphics are enabled.
    
    Add a USB keyboard and USB mouse for PPC64 when graphics are enabled.
    
    Signed-off-by: Li Zhang <zhlcindy.ibm.com>
    Signed-off-by: Ján Tomko <jtomko>

git describe: v1.2.1-246-gcffa51b contains: v1.2.2-rc1~46