Externe Festplatte (USB) an Windows VM durchreichen

limone

Well-Known Member
Aug 1, 2017
89
9
48
30
Moin,

ich wollte gerne eine externe USB Platte an eine Windows Server 2016 VM durchreichen, allerdings bootet die VM dann nicht mehr.

Laut lsusb ist es dieses Gerät am Host: Bus 003 Device 012: ID 152d:0562 JMicron Technology Corp. / JMicron USA Technology Corp.
Also gebe ich das auch durch:
1567692091804.png

Nach ca. 3 minuten gibts dann wohl einen timeout und die VM bootet doch noch, allerdings ohne die externe Platte, dmesg sagt das dazu:
Code:
[Thu Sep  5 15:58:08 2019] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[Thu Sep  5 15:58:09 2019] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[Thu Sep  5 15:58:10 2019] sd 2:0:0:0: [sdb] 7813922816 512-byte logical blocks: (4.00 TB/3.64 TiB)
[Thu Sep  5 15:58:10 2019] sd 2:0:0:0: [sdb] Write Protect is off
[Thu Sep  5 15:58:10 2019] sd 2:0:0:0: [sdb] Mode Sense: 67 00 10 08
[Thu Sep  5 15:58:10 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[Thu Sep  5 15:58:10 2019] sd 2:0:0:0: [sdb] Optimal transfer size 33553920 bytes
[Thu Sep  5 15:58:10 2019] sd 2:0:0:0: [sdb] Attached SCSI disk
[Thu Sep  5 15:58:12 2019] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[Thu Sep  5 15:58:12 2019] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK


[Thu Sep  5 16:01:29 2019] sd 2:0:0:0: [sdb] 7813922816 512-byte logical blocks: (4.00 TB/3.64 TiB)
[Thu Sep  5 16:01:29 2019] sd 2:0:0:0: [sdb] Write Protect is off
[Thu Sep  5 16:01:29 2019] sd 2:0:0:0: [sdb] Mode Sense: 67 00 10 08
[Thu Sep  5 16:01:29 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[Thu Sep  5 16:01:29 2019] sd 2:0:0:0: [sdb] Optimal transfer size 33553920 bytes
[Thu Sep  5 16:01:29 2019] sd 2:0:0:0: [sdb] Attached SCSI disk
[Thu Sep  5 16:01:31 2019] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[Thu Sep  5 16:01:31 2019] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[Thu Sep  5 16:01:32 2019] sd 2:0:0:0: [sdb] 7813922816 512-byte logical blocks: (4.00 TB/3.64 TiB)
[Thu Sep  5 16:01:32 2019] sd 2:0:0:0: [sdb] Write Protect is off
[Thu Sep  5 16:01:32 2019] sd 2:0:0:0: [sdb] Mode Sense: 67 00 10 08
[Thu Sep  5 16:01:32 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[Thu Sep  5 16:01:32 2019] sd 2:0:0:0: [sdb] Optimal transfer size 33553920 bytes
[Thu Sep  5 16:01:32 2019] sd 2:0:0:0: [sdb] Attached SCSI disk

Eine Idee worans liegen könnte? Der USB Controller taucht dann zwar im Geräte-Manager auf, die Platte allerdings nicht:
1567692350655.png
 
kannst du mal den output von
Code:
lsusb -t
zeigen?

was auch interessant wäre ist vom qemu monitor der vm ein 'info usb' und 'info usbhost'
 
lsusb -t
Code:
root@pve-lab:~# lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usbfs, 5000M
    |__ Port 2: Dev 47, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/11p, 480M
    |__ Port 3: Dev 10, If 0, Class=Communications, Driver=usbfs, 12M
    |__ Port 3: Dev 10, If 1, Class=CDC Data, Driver=usbfs, 12M
    |__ Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M
    |__ Port 6: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 6: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 7: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 7: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M

mit spice port:
Code:
# info usb
  Device 0.1, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet, ID: tablet
  Device 0.0, Port 2, Speed 1.5 Mb/s, Product USB Redirection Device, ID: usbredirdev0

# info usbhost
  Bus 3, Addr 47, Port 2, Speed 5000 Mb/s
    Class 00: USB device 152d:0562, JMS56x Series
  Bus 3, Addr 2, Port 1, Speed 5000 Mb/s
    Class 00: USB device 1058:25e2, My Passport 25E2
  Bus 2, Addr 5, Port 7, Speed 12 Mb/s
    Class e0: USB device 0cf3:e300
  Bus 2, Addr 4, Port 6, Speed 480 Mb/s
    Class ef: USB device 174f:14ee, Lenovo EasyCamera
  Bus 2, Addr 3, Port 4, Speed 480 Mb/s
    Class ff: USB device 0bda:0129, USB2.0-CRW
  Bus 2, Addr 10, Port 3, Speed 12 Mb/s
    Class 02: USB device 0451:16a8, TI CC2531 USB CDC

mit dem gerät eingebunden:
Code:
# info usb
  Device 0.1, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet, ID: tablet
  Device 2.0, Port 1, Speed 5000 Mb/s, Product JMS56x Series, ID: usb0

# info usbhost
  Bus 3, Addr 50, Port 2, Speed 5000 Mb/s
    Class 00: USB device 152d:0562, JMS56x Series
  Bus 3, Addr 2, Port 1, Speed 5000 Mb/s
    Class 00: USB device 1058:25e2, My Passport 25E2
  Bus 2, Addr 5, Port 7, Speed 12 Mb/s
    Class e0: USB device 0cf3:e300
  Bus 2, Addr 4, Port 6, Speed 480 Mb/s
    Class ef: USB device 174f:14ee, Lenovo EasyCamera
  Bus 2, Addr 3, Port 4, Speed 480 Mb/s
    Class ff: USB device 0bda:0129, USB2.0-CRW
  Bus 2, Addr 10, Port 3, Speed 12 Mb/s
    Class 02: USB device 0451:16a8, TI CC2531 USB CDC


was auch komisch ist, usb hotplug ist eigentlich an, trotzdem muss ich jedes mal die vm neu starten
1568034221596.png
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!