Ubuntu Kvm USB重定向问题解决
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu Kvm USB重定向问题解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
最近在使用Ubuntu下的Kvm虛擬機時,無法通過spice將USB設備傳入虛擬機。
其中出現以下提示:
| 1 | spice-client-error-quark: Could not redirect USB Device [046d:081b] at 3-2: Error setting USB device node ACL: 'Not authorized' (0) |
正文
解決方案:
修改規則文件:/usr/share/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
添加allow_any項并修改allow_inactive項即可。
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policyconfig PUBLIC"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN""http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"> <policyconfig><vendor>The Spice Project</vendor><vendor_url>http://spice-space.org/</vendor_url><icon_name>spice</icon_name><action id="org.spice-space.lowlevelusbaccess"><description>Low level USB device access</description><message>Privileges are required for low level USB device access (for usb device pass through).</message><defaults><allow_any>yes</allow_any><allow_inactive>yes</allow_inactive><allow_active>yes</allow_active></defaults></action></policyconfig> |
?
?
原文鏈接:點擊打開鏈接
總結
以上是生活随笔為你收集整理的Ubuntu Kvm USB重定向问题解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 超频是什么
- 下一篇: 计算机工程工艺,中国计算机学会第十届计算