{"id":769,"date":"2013-11-05T09:59:16","date_gmt":"2013-11-05T08:59:16","guid":{"rendered":"http:\/\/elkano.org\/blog\/?p=769"},"modified":"2013-11-05T09:59:16","modified_gmt":"2013-11-05T08:59:16","slug":"proxmox-kvm-usb-passthrough","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/proxmox-kvm-usb-passthrough\/","title":{"rendered":"Proxmox KVM usb passthrough"},"content":{"rendered":"<p>Open KVM monitor for your KVM machine in Proxmox GUI or in the command line with the following command:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\">\r\n# qm monitor 168\r\nEntering Qemu Monitor for VM 168 - type &#039;help&#039; for help\r\nqm&gt; \r\n<\/pre>\n<p>Show the usb devices info from your host machine:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\">\r\nqm&gt; info usbhost\r\n  Bus 4, Addr 2, Port 1, Speed 12 Mb\/s\r\n    Class 00: USB device 046b:ff10, Virtual Keyboard and Mouse\r\n  Bus 6, Addr 2, Port 2, Speed 1.5 Mb\/s\r\n    Class 00: USB device 0624:0294, Dell 03R874\r\n  Bus 2, Addr 3, Port 1, Speed 480 Mb\/s\r\n    Class 00: USB device 0930:6533, DataTraveler 2.0\r\n  Auto filters:\r\n    Bus *, Addr *, Port *, ID 0930:6533\r\n<\/pre>\n<p>According to device &#8220;USB device 0930:6533&#8221; in the example, add the device to guest machine:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\">\r\nqm&gt; device_add usb-host,id=myusb,vendorid=0x0930,productid=0x6533\r\n<\/pre>\n<p>Verify that the new usb device is added in your guest:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\">\r\nqm&gt; info usb\r\n  Device 0.1, Port 1, Speed 12 Mb\/s, Product QEMU USB Tablet\r\n  Device 0.3, Port 2, Speed 12 Mb\/s, Product QEMU USB Hub\r\n  Device 0.4, Port 2.1, Speed 480 Mb\/s, Product DataTraveler 2.0\r\n<\/pre>\n<p>After using it, remove usb device from your guest:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\">\r\nqm&gt; device_del myusb\r\n<\/pre>\n<p>If you run the command again, you will see the usb device is gone from your guest:<\/p>\n<pre class=\"dontquote prettyprint lang-xml\">\r\nqm&gt; info usb\r\n  Device 0.1, Port 1, Speed 12 Mb\/s, Product QEMU USB Tablet\r\n  Device 0.3, Port 2, Speed 12 Mb\/s, Product QEMU USB Hub\r\n<\/pre>\n<p>This has been tested in Proxmox 3.0\/957f0862<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open KVM monitor for your KVM machine in Proxmox GUI or in the command line with the following command: # qm monitor 168 Entering Qemu Monitor for VM 168 &#8211; type &#039;help&#039; for help qm&gt; Show the usb devices info from your host machine: qm&gt; info usbhost Bus 4, Addr 2, Port 1, Speed 12 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[103,104],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/769"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=769"}],"version-history":[{"count":8,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/769\/revisions"}],"predecessor-version":[{"id":777,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/769\/revisions\/777"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}