utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
27.01k stars 1.34k forks source link

USB Device rejected by host #2647

Open AlexanderPavlenko opened 3 years ago

AlexanderPavlenko commented 3 years ago

Describe the issue

image

I tried to attach this device to a Debian VM.

                VLI Product String:

                  Product ID: 0x0715
                  Vendor ID: 0x2109  (VIA Labs, Inc.)
                  Version: 1.31
                  Serial Number: 000000123ADA
                  Speed: Up to 5 Gb/s
                  Manufacturer: VLI Manufacture String
                  Location ID: 0x01231000 / 9
                  Current Available (mA): 900
                  Current Required (mA): 896
                  Extra Operating Current (mA): 0
                  Media:
                    JPVX-22JC3T0:
                      Capacity: 1 TB (1 000 204 886 016 bytes)
                      Removable Media: No
                      BSD Name: disk4
                      Logical Unit: 0
                      Partition Map Type: MBR (Master Boot Record)
                      S.M.A.R.T. status: Verified
                      USB Interface: 0
                      Volumes:
                        disk4s1:
                          Capacity: 678,08 GB (678 083 628 032 bytes)
                          File System: ExFAT
                          BSD Name: disk4s1
                          Content: Windows_NTFS
                        disk4s2:
                          Capacity: 322,12 GB (322 120 146 944 bytes)
                          BSD Name: disk4s2
                          Content: Linux

Configuration

Debug log

Running:  -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4002,server,nowait -vga none -spice port=4003,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off -device virtio-ramfb -cpu cortex-a72 -smp cpus=8,sockets=1,cores=8,threads=1 -machine virt,highmem=off -accel hvf -accel tcg,tb-size=256 -bios /Applications/UTM.app/Contents/Resources/qemu/edk2-aarch64-code.fd -boot menu=on -m 1024 -device intel-hda -device hda-duplex -name "Debian ARM (i3)" -device qemu-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device qemu-xhci,id=usb-controller-0 -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device virtio-blk-pci,drive=drive0,bootindex=0 -drive "if=none,media=disk,id=drive0,file=/Users/lexi/Library/Containers/com.utmapp.UTM/Data/Documents/Debian ARM (i3).utm/Images/debian.qcow2,cache=writethrough" -device usb-storage,drive=drive1,removable=true,bootindex=1 -drive if=none,media=cdrom,id=drive1 -device rtl8139,mac=06:A4:D8:6C:50:30,netdev=net0 -netdev user,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0 -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1 -uuid 8169C503-2646-4317-BE65-7F931B70884F -rtc base=localtime
qemu-aarch64-softmmu: -spice port=4003,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off: warning: short-form boolean option 'disable-ticketing' deprecated
Please use disable-ticketing=on instead
qemu-aarch64-softmmu: usb-redir error: bulk streams alloc failed status 3 eps 00a00040

qemu-aarch64-softmmu: usb-redir error: usb-redir-host does not provide streams, disconnecting

Upload VM config.plist.zip

AlexanderPavlenko commented 3 years ago

If this usb device is connected directly to the macbook without using a hub, the error does not occur, but the device is not detected neither by lsusb, nor by lsblk inside the VM.

osy commented 2 years ago

@AlexanderPavlenko Please test this build https://github.com/utmapp/UTM/suites/5553273059/artifacts/179152124 where I updated the USB host dependency libraries to the latest version.

fazi1141 commented 1 year ago

having same issue. if you find any solution please let me know

axiel7 commented 1 year ago

I'm facing the same issue while trying to connect my external drive formatted on ext4

lpil commented 11 months ago

Has anyone found a solution for this? Thank you

pkkrusty commented 10 months ago

Also a problem with me. Drive is a MBR formatted drive with three partitions, FAT, EXT4 and EXT4.

carlosjunod commented 10 months ago

Hey! same issue here.. I'm trying to connect a custom keyboard but is being rejected, not dongle or similar... any suggestion?

after a few more tries, I got a different error could not claim interface 0 (configuration 1): LIBUSB_ERROR_ACCESS