Ask Your Question

KVM guest access to host usb-serial dongle

asked 2016-07-01 03:36:43 -0500

Sardathrion gravatar image

I have a KVM virtual machine running CentOS 7 on a host running Fedora 24. I have a usb-serial dongle (actually a RFID reader but that should really not matter) that is installed on the host. The host can see it after running:

sudo modprobe usbserial vendor=0x1325 product=0xc02a

I have access to /dev/ttyACM0 which is the device I need to talk to.

How do I can access to said device on the guest (CentOS 7) system?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-03 23:56:18 -0500

centinel20 gravatar image

Can you use virtual machine manager? I highly recommend it if you are using a GUI. From there you can click on the little lightbulb icon on the virtual machine and select wich usb devices that are connected to the fisical machine the VM gets to see. Also I found this article wich shows you how to redirect USB from the xml file here. I havn't tested it myself but i t looks legit. I hope this helps a little.

edit flag offensive delete link more

Question Tools



Asked: 2016-07-01 03:36:43 -0500

Seen: 259 times

Last updated: Jul 01 '16