| Summary: | Revoke usb redirection, get no response | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | aihua liang <aliang> |
| Component: | seabios | Assignee: | Gerd Hoffmann <kraxel> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | FuXiangChun <xfu> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | aliang, chayang, coli, hachen, juzhang, knoel, michen, virt-maint, yiwei |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-05-09 12:27:39 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: | |
|
Description
aihua liang
2016-09-01 10:53:36 UTC
> 3.Start Spice, press 'ESC', check boot menu. > 4.Hit "File->USB device selection", select the usb, then "Ctrl+Alt+Del" to > reboot guest, check boot menu. > 5.Hit "File->USB device selection", unselect the usb, then "Ctrl+Alt+Del" to > reboot guest. > Press ESC for boot menu. > > Select boot device: > > 1. virtio-scsi Drive QEMU QEMU HARDDISK 2.5+ > 2. USB MSC Drive SanDisk Cruzer Glide 1.26 > 3. Legacy option rom > 4. iPXE (PCI 00:03.0) > Actual results: > After step5, no reboot take effect and seabios keeps the menu page forever. What exactly did you do? If you hit ESC to see the boot menu seabios expects ypi to pick a menu entry. And, yes, it waits forever, once you interrupted the boot process there is no timeout any more. > Expected results: > Seabios reboot, and usb device has been removed from the boot menu. The usb device should be gone indeed. And in my testing it is gone (iow: I can't reproduce the issue). Can you double-check please? Hi, Gerd
Test Scenes:
seabios menu check under usb redirection
Test Step:(as bug description)
1. insert a usb to host, start guest with usb redirection.
2. select the redirected usb, reboot vm, check if the usb added to boot menu list.
3. unselect the redirected usb, reboot vm, check if the usb removed from boot menu list.
Test Result:
In step3, after i unselect the redirected usb, vm seems hang.
Additional Info:
I retest it with env bellow, the preoblem still exist.
kernel version:3.10.0-521.el7.x86_64
qemu version:qemu-kvm-rhev-2.6.0-27.el7.x86_64
seabios version:seabios-1.9.1-5.el7_3.bz1392569.1.x86_64
I will test with latest seabios version and give info later.
Hi, Gerd
I test with the latest env, the problem still exist.
kernel version:3.10.0-541.el7.x86_64
qemu version:qemu-kvm-rhev-2.8.0-1.el7.x86_64
seabios version:seabios-1.10.1-1.el7.x86_64
BR,
aliang
There have been a number of xhci fixes in the 2.9 devel cycle. Please retest with 2.9 builds (once available). I retest this bug with 2.9 builds.
host version:qemu-kvm-rhev-2.9.0-1.el7.x86_64
kernel-3.10.0-661.el7.x86_64
seabios-1.10.2-2.el7.x86_64
guest:RHEL-6.8-20160414.0-Server-i386-dvd1.iso
1.boot a guest with cmd
/usr/libexec/qemu-kvm \
-M pc \
-cpu SandyBridge,enforce \
-nodefaults \
-rtc base=utc \
-m 1024 \
-mem-path /mnt/kvm_hugepage \
-smp 2,sockets=2,cores=1,threads=1 \
-enable-kvm \
-name rhel6.8 \
-uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
-k en-us \
-boot menu=on \
-qmp tcp::4444,server,nowait \
-monitor stdio \
-vga qxl \
-spice port=5932,disable-ticketing \
-drive file=/root/yiwei/bz1372291/test.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop \
-device virtio-blk-pci,drive=drive-virtio-disk0,id=virtio-disk0 \
-chardev spicevmc,name=usbredir,id=usbredirchardev1 \
-device nec-usb-xhci,id=xhci \
-device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,debug=3 \
-chardev socket,id=seabioslog_id_1,path=/var/tmp/pp,server,nowait \
-device isa-debugcon,chardev=seabioslog_id_1,iobase=0x402 \
2.Plug a usb to client
3.Start Spice, press 'ESC', check boot menu.
4.Hit "File->USB device selection", select the usb, then "Ctrl+Alt+Del" to reboot guest, check boot menu.
5.Hit "File->USB device selection", unselect the usb, then "Ctrl+Alt+Del" to reboot guest.
Test results:
Seabios reboot, and usb device has been removed from the boot menu.
Bug existed only between releases, doesn't affect RHEL-7.3 and was later fixed during RHEL-7.4 development. |