Qemu(Archlinux) 클라이언트에서 카메라가 작동하도록 하려고 합니다. 호스트도 Archlinux 시스템입니다.
lsusb
아래에는 출력 과 함께 시도한 명령이 나와 있습니다 lspci
. 게스트 시스템을 시작하면 연결한 카메라 2대에 대해 2개의 경고가 표시됩니다(lenovo 내장, Trust USB 연결).
그 이유를 설명하는 기사를 찾았습니다.여기하지만 정확히 무엇을 해야 하는지는 알 수 있어요.
이 문제의 원인은 가상 USB 허브가 기본적으로 USB 1.1로 설정되어 있기 때문입니다. VM을 시작하기 전에 USB 2로 변경하면 카메라가 정상적으로 표시됩니다. 그러나 USB 3+ 장치에서는 여전히 문제가 발생할 수 있습니다.
- command to start the qemu machine:
$sudo qemu-system-x86_64 -smp 6 -m 4G -enable-kvm -vga std -soundhw ac97\ -usb -device usb-host,hostbus=1,hostaddr=11 -usb -device usb-host,hostbus=3,hostaddr=1 -usb -device usb-host,hostbus=3,hostaddr=2 -usb -device usb-host,hostbus=2,hostaddr=1 -usb -device usb-host,hostbus=1,hostaddr=1 -usb -device usb-host,hostbus=1,hostaddr=2 -usb -device usb-host,hostbus=1,hostaddr=3 -k en-uk -net nic,model=rtl8139 -net user -drive file=qemu-drive,format=raw
- warnings:
qemu-system-x86_64: Warning: speed mismatch trying to attach usb device "Lenovo EasyCamera" (high speed) to bus "usb-bus.0", port "2.6" (full speed)
qemu-system-x86_64: Warning: speed mismatch trying to attach usb device "Trust Webcam" (high speed) to bus "usb-bus.0", port "1" (full speed)
lsusb
Bus 003 Device 002: ID 8087:8001 Intel Corp. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader Bus 001 Device 006: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0 Bus 001 Device 003: ID 5986:0652 Acer, Inc Bus 001 Device 010: ID 04d9:a029 Holtek Semiconductor, Inc. Bus 001 Device 011: ID 145f:019f Trust Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lspci
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09) 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) 00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09) 00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03) 00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03) 00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3) 00:1c.1 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #2 (rev e3) 00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3) 00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3) 00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3) 00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03) 00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03) 00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03) 00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03) 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01) 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) 09:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01) 0a:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330] (rev ff)