utmapp / UTM

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

Cannot attach 4TB external Sandisk SSD #5154

Open gus4rs opened 1 year ago

gus4rs commented 1 year ago

Describe the issue
Trying to attach an 4TB external Sandisk SSD to a Fedora Linux 37 guest, but it doesn't work. The device is associated in the top menu but it's impossible to read it from the VM. USB compatibility is set to 3.1 in the config (the highest).

Screenshot 2023-03-28 at 15 45 33

Configuration

Debug log
dmesg outputs this:

[  521.085331] usb 5-3: new high-speed USB device number 15 using xhci_hcd
[  521.208732] usb 5-3: device descriptor read/64, error 18
[  521.435159] usb 5-3: device descriptor read/64, error 18
[  521.537879] usb usb5-port3: attempt power cycle
[  521.723549] usb 5-3: new high-speed USB device number 16 using xhci_hcd
[  521.739604] usb 5-3: Invalid ep0 maxpacket: 9
[  521.859194] usb 5-3: new high-speed USB device number 17 using xhci_hcd
[  521.874996] usb 5-3: Invalid ep0 maxpacket: 9
[  521.875632] usb usb5-port3: unable to enumerate USB device
freebrowser1 commented 1 year ago

Same here.

Using UTM 4.2.5 on macOS Ventura 13.3 on MBP M1 late 2021 with Ubuntu 22.04 guest. I use a Samsung T7 external 2TB HDD (the small credit card sized blue one).

But no drive shows up in Ubuntu. ls -al /dev/sd* only shows the local virtual HDD images (sdaX).

Screenshot 2023-04-29 at 19 11 21 Screenshot 2023-04-29 at 19 10 55
gus4rs commented 1 year ago

So this is indeed a bug? I simply cannot read an SSD disk from the guest virtual machine or is there a workaround?

gus4rs commented 1 year ago

I just tested in UTM 4.2.5 and the problem still persists. Also as suggested in another issue I captured the output of a test usb program:

$ ./testlibusb
Dev (bus 0, device 2): 0781 - 55AF speed: 10G
  Manufacturer:              SanDisk
  Product:                   Extreme Pro 55AF 
mx1up commented 11 months ago

same problem connecting Samsung T7 PSSD

kernal: usb 3-3: new high-speed USB device number 2 using xhci_hcd
kernel: usb 3-3: device descriptor read/64, error 18
kernel: usb 3-3: device descriptor read/64, error 18
kernel: usb 3-3: new high-speed USB device number 3 using xhci_hcd
kernel: usb 3-3: device descriptor read/64, error 18
kernel: usb 3-3: device descriptor read/64, error 18
kernel: usb usb3-port3: attempt power cycle
kernel: usb 3-3: new high-speed USB device number 4 using xhci_hcd
kernel: usb 3-3: Invalid ep0 maxpacket: 9
kernel: usb 3-3: new high-speed USB device number 5 using xhci_hcd
kernel: usb 3-3: Invalid ep0 maxpacket: 9
kernel: usb usb3-port3: unable to enumerate USB device
mx1up commented 11 months ago

seems to be duplicate of #3995

workaround is going through a USB hub