我在 arch linux :
中运行此命令qemu-system-x86_64 -enable-kvm -usbdevice host:4146:3257 -vga std -m 4048 -smp 4 -hda /mnt/win81.img
这是我的lsusb
输出:
总线004设备003:ID 4146:3257 USBest技术
我也在我的中创建了一条规则 /etc/udev/rules.d/flash.rules 获取权限。
SUBSYSTEMS ==" usb",ATTRS {idVendor} ==" 4146",ATTRS {idProduct} ==" 3257",GROUP =&#34 ;用户",MODE =" 0666"
但是这个错误仍然存在:
libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/004/003: Permission denied
libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes.
libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/004/003: Permission denied
libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes.
libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/004/003: Permission denied
libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes.
答案 0 :(得分:1)
您是否尝试使用root权限运行它?我有同样的问题,并且sudo
对我来说效果很好。