首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何解决Ubuntu14.04 VirtualBox VM中的USB3.0问题

如何解决Ubuntu14.04 VirtualBox VM中的USB3.0问题
EN

Ask Ubuntu用户
提问于 2015-09-26 07:59:40
回答 3查看 18.4K关注 0票数 5

在过去的几天里,我花了大量的时间来寻找这个挑战的解决方案。

我有一个希捷扩展桌面驱动器,这是一个外部2TB USB3.0磁盘,我使用的测试。该驱动器连接到我的Macbook Pro上的USB3.0端口进行一次测试,并连接到我的Mini上的USB3.0端口进行另一次测试。Macbook Pro和Mini都安装了virtualbox,并安装了Ubuntu来宾。ubuntu客人应该可以访问这个驱动器。

我现在的设置: Macbook:

代码语言:javascript
运行
复制
Model Name: MacBook Pro
  Model Identifier: MacBookPro11,1
  Processor Name:   Intel Core i7
  Processor Speed:  2,8 GHz
  Number of Processors: 1
  Total Number of Cores:    2
  L2 Cache (per Core):  256 KB
  L3 Cache: 4 MB
  Memory:   16 GB
  Boot ROM Version: MBP111.0138.B15
  SMC Version (system): 2.16f68

版本:

主机:

代码语言:javascript
运行
复制
Mac OSX: 10.10.5
VirtualBox: 5.0.4 r102546
USB device: Seagate Expansion Desktop Drive 2TB
Oracle VM VirtualBox Extension Pack: 5.0.4r102546 Installed
In Setup - Ports - USB  USB 3.0 (xHCI) Controller is enabled

嘉宾:

代码语言:javascript
运行
复制
Guest:  Ubuntu 14.04
VboxGuestAdditions installed

不名-a

代码语言:javascript
运行
复制
Linux patal-vbox-ubuntu-002 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

先决条件: Seagate驱动器连接电源,Macbook Pro (或Mini)上的USB3.0端口(在osx中弹出) Macbook Pro启动并登录VirtualBox启动来宾(Ubuntu14.04)启动并登录(窗口模式未全屏)

预期结果:希捷驱动器应该列在文件管理器下的设备在ubuntu。驱动器应该在/dev中作为一个驱动器列出,例如,在ubuntu中的/dev/sdb驱动器应该可以在ubuntu中挂载

实际结果:驱动器不在ubuntu中的设备下文件管理器中列出,驱动器未在/dev中列出

代码语言:javascript
运行
复制
root@patal-vbox-ubuntu-002:~# ls -al /dev/sd*
brw-rw---- 1 root disk 8, 0 sep 26 09:16 /dev/sda
brw-rw---- 1 root disk 8, 1 sep 26 09:11 /dev/sda1
brw-rw---- 1 root disk 8, 2 sep 26 09:16 /dev/sda2
brw-rw---- 1 root disk 8, 5 sep 26 09:11 /dev/sda5

国际劳工局:

代码语言:javascript
运行
复制
root@patal-vbox-ubuntu-002:~# lsusb
Bus 002 Device 002: ID 0bc2:3321 Seagate RSS LLC 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

希捷RSS的详细lsusb输出: root@patal-vbox-ubuntu-002:~# lsusb -v

代码语言:javascript
运行
复制
Bus 002 Device 002: ID 0bc2:3321 Seagate RSS LLC 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x0bc2 Seagate RSS LLC
  idProduct          0x3321 
  bcdDevice            1.00
  iManufacturer           2 Seagate
  iProduct                3 Expansion Desk
  iSerial                 1 NA4KX5JA
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          121
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-out pipe (0x04)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        Command pipe (0x01)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           22
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat        2047 micro seconds
Device Status:     0x0001
  Self Powered

dmesg产出:

代码语言:javascript
运行
复制
[  795.810773] usb 2-1: new SuperSpeed USB device number 3 using xhci_hcd
[  795.829590] usb 2-1: New USB device found, idVendor=0bc2, idProduct=3321
[  795.829594] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  795.829595] usb 2-1: Product: Expansion Desk
[  795.829596] usb 2-1: Manufacturer: Seagate
[  795.829597] usb 2-1: SerialNumber: NA4KX5JA
[  795.857795] usb 2-1: USB controller 0000:00:0c.0 does not support streams, which are required by the UAS driver.
[  795.857798] usb 2-1: Please try an other USB controller if you wish to use UAS.
[  795.857799] usb-storage 2-1:1.0: USB Mass Storage device detected
[  795.857848] scsi host5: usb-storage 2-1:1.0
[  822.485641] usb 2-1: reset SuperSpeed USB device number 3 using xhci_hcd
[  822.503463] xhci_hcd 0000:00:0c.0: xHCI xhci_drop_endpoint called with disabled ep ffff880013ebac00
[  822.503468] xhci_hcd 0000:00:0c.0: xHCI xhci_drop_endpoint called with disabled ep ffff880013ebac48
[  890.772127] audit_printk_skb: 120 callbacks suppressed
[  890.772130] audit: type=1400 audit(1443252349.697:62): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2761 comm="apparmor_parser"
[  890.772135] audit: type=1400 audit(1443252349.697:63): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2761 comm="apparmor_parser"
[  890.772386] audit: type=1400 audit(1443252349.697:64): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2761 comm="apparmor_parser"

我怀疑这个问题来自dmesg:

代码语言:javascript
运行
复制
[  795.857795] usb 2-1: USB controller 0000:00:0c.0 does not support streams, which are required by the UAS driver.

是Virtualbox问题还是Ubuntu问题?ubuntu不能正确地处理USB xHCI控制器吗?

顺便说一下,这个驱动器可以在一个专门的kubuntu工作站上工作,也可以在同一个macbook的Windows10VM中工作。

@nephente (根据请求追加),我想您的意思是将VirtualBox中的控制器设置为USB2.0 (EHCI)控制器。如果是这样的话,那么在VirtualBox中我会得到以下错误:

代码语言:javascript
运行
复制
Failed to attach the USB device Seagate Expansion Desk [0100] to the virtual machine patal-vbox-ubuntu-002. 

Failed to create a proxy device for the USB device. 

(Error: VERR_PDM_NO_USB_PORTS). 

Result Code:    NS_ERROR_FAILURE (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

还有一件事我也试过了,但没有提到,那就是将USB3.0设备附加到USB2.0集线器上,并将集线器连接到Macbook Pro上。这也没用。

@Takkat,谢谢您的建议,创建一个过滤器,并确保驱动器是卸载/弹射出osx。

我已经创建了一个过滤器的希捷扩展办公桌(书桌在桌面),并确保驱动器没有安装在osx。

结果:确保驱动器没有安装,并为驱动器创建过滤器没有产生任何影响。这个驱动器仍然被认为是在这篇文章的开头描述的。

EN

回答 3

Ask Ubuntu用户

发布于 2015-09-26 09:16:42

USB3.0支持最近在VirtualBox版本5.0中增加了。请阅读发行说明这里。(要快速搜索,请使用浏览器中的搜索功能并编写"USB 3")。

为了访问这个新特性,您必须安装扩展包。

在这里下载

为了安装扩展包,您必须右键单击下载的文件并“打开.”虚拟盒。

我不知道这是否与Linux中的MACs相同,但是您可能需要将您的用户添加到'virtualbox‘组中,这样才能毫无问题地访问某些特性。

票数 5
EN

Ask Ubuntu用户

发布于 2016-04-04 23:00:39

我也面临着同样的问题。在升级我的VirtualBox之后,我刚刚关闭了虚拟机,在它的VirtualBox属性中,我修改了USB3.0控制器(xHCI)。

现在,我的USB外部驱动器工作正常。

票数 3
EN

Ask Ubuntu用户

发布于 2016-09-08 19:25:52

我和USB3和USB2相处得很困难。我已经加载了客服附加和扩展包。什么也没显示出来。我使用来自Linux终端的lsusb来识别一个设备,并且(当vm被关闭时)创建了一个带有总线、设备、供应商ID和产品ID的USB3过滤器。

示例:

总线010设备006: ID 1f75:0903创新科技公司。总线#=特定的USB3控制器。

设备#是设备上的端口。ID是卖方ID (最初可能在实际十六进制地址之前有0x )。

我的设备供应商ID是1f75,但它显示为0x1f75,只要使用最后4位数字(与产品ID相同),一旦我保存并引导,我可以在启动时看到设备,但vbox来宾无法抓取它们。

我抓起了一个Windows驱动程序:

英特尔(R)USB_3.0_eXtensible_主机_控制器_(司机)

并安装了它,删除了我创建的原始过滤器,重新启动了虚拟机,所有这些都工作了。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/678574

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档