Skip to content

Keesaev/virsh-usb-attach-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

virsh-usb-attach-script

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;

usage

  • bash ./attach-usb.sh -d my_domain -v 12ab -p 34bc - required opt
  • -m [attach/detach] - re-attach or detach
  • -i - interactive

About

Attach and detach usb devices to KVM via this script

Topics

Resources

Stars

Watchers

Forks

Languages