A UI plugin of oVirt webadmin to passthrough host USB devices into guests
- Copy the following files from the repository and place them in /usr/share/ovirt-engine/ui-plugins on the host running oVirt Engine:
- hostusb-passthrough.json
- hostusb-passthrough-resources/plugin.html
- hostusb-passthrough-resources/hostusb-passthrough.html
- Change hostnames and ports in the configuration files according to your environment
- The UI part depends on patternfly, so download patternfly.min.js and patternfly.min.css and put them in the following places:
- patternfly.min.js -> /usr/share/ovirt-engine/ui-plugins/hostusb-passthrough-resources/js/patternfly.min.js
- patternfly.min.css -> /usr/share/ovirt-engine/ui-plugins/hostusb-passthrough-resources/css/patternfly.min.css
- Copy the agent script from the repository to every host:
- agent/usb-passthrough.py
- Run the script on every host (better in screen/tmux):
- python usb-passthrough.py
- Due to libvirt/vdsm's security policy, user should manully run "chmod o+w /dev/bus/usb/BUS/DEVICE" for the corresponding device on the hosts which would be passed through to allow the user qemu to access to the device
- Bypass vdsm, caution split-brain
- Startup/stop service script for the agent?