Bug 1323268 - USB isn't passed automatically at KVM VM start. Can't boot from USB.
Summary: USB isn't passed automatically at KVM VM start. Can't boot from USB.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-01 16:30 UTC by javiertury
Modified: 2016-04-03 17:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-03 17:22:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description javiertury 2016-04-01 16:30:32 UTC
Description of problem:

virt-manager doesn't automatically pass the configured USB devices during machine bootup.

How reproducible:

Create a virtual machine, add a bootable USB redirection and select that bootable device as the only one in boot options. Start the machine and enter the boot menu. The USB device won't be listed as it wasn't passed when the machine was started. Go to "Virtual Machine" > "Redirect USB device" and enable it, now restart and it will boot as expected.

Steps to Reproduce:
1. Create a new virtual machine from virt-manager's gui. 
2. Click "Add Hardware" and add a USB controller
2. Click "Add Hardware" and add a USB Host Device to pass a physical bootable USB device attached to your computer.
3. Click "Add Hardware" and add a USB redirection.
4. In boot options enable "boot menu" and disable everything but the USB device added in step 2
5. Start the VM
6. Enter the boot menu(press F12 quickly after starting the VM)

Actual results:

There is no entry to select the USB device. Press ESC to exit the menu and the bios won't boot as the USB device wasn't passed.

Steps for workaround:

1. Continuing from above, while in the boot menu go to the upper toolbar, go to "Virtual Machine" > "Redirect USB Device" and enable your bootable USB device
2. Go to the upper toolbar, click the arrow next to the switch button/icon and select "Force Reset". The machine will restart.
3. Enter the boot menu(press F12 quickly after restarting the VM)
4. Now you'll see the bootable USB device. Select it and and it should boot.

Expected results:

I would expect an entry for the USB device in the boot menu


Additional info:

Comment 1 javiertury 2016-04-03 17:22:48 UTC
I checked the logs and the problem seems to be a SELinux denial that prevents qemu-system-x86_64 from accessing usb2 devices. I'll close this bug and file a correct one against qemu-system-x86


Note You need to log in before you can comment on or make changes to this bug.