Parses lsusb for bus and device numbers, generates xml and performs attach-device / detach-device to add or remove usb to KVM.
- Useful if you have several devices with same VID:PID;
- Useful if you have to constantly reconnect usb because device number changes every time;
bash ./attach-usb.sh -d my_domain -v 12ab -p 34bc
- required opt-m [attach/detach]
- re-attach or detach-i
- interactive