USB hard disk captured but can not be seen in guest OS

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
CharlesBest
Posts: 7
Joined: 5. Jan 2018, 04:11

USB hard disk captured but can not be seen in guest OS

Post by CharlesBest »

Greetings!
I am having a strange program. To begin with, I list my environment information as following:

Host OS: Mac OSX Yosemite 10.10.5
Guest OS: Debian 64bits 9.3.0
VirtualBox : 5.2.4 r119785
VirtualBox Extension: 5.2.4 r119785
USB hard drive: USB 3.0 Seagate 1TB

ok. I enabled all ports in my host OS, and created two filter for USB devices: one is empty, the other is Seagate. This configuration is presumably fine.

When I inserted USB drive, to begin with, the host OS Mac showed that "hard disk drives were not ejected normally". I think this is actually "fine", since USB hard disk can only captured by one OS. And then in guest OS, I checked the menu in Virtual Box : Device->USB, and saw that my Seagate hard drive was indeed "checked". When I used VBoxManage in host OS to check the status, it showed that the hard drive was "captured".

However, the device was not mounted. And I can NOT find it in guest OS. When I used "sudo blkid" command, I can not see the information about my USB device. I don't know how to mount it manually. However, when I used "lsusb" command, I can see that "Bus 002 Device 004: ID 0bc2:ab24 Seagate RSS LLC".

So what is my problem?

I searched the web and found the solution for Ubuntu Guest OS, which pointed out that the number of virtual CPU should be 1. However, my virtual CPU number was indeed 1. Besides, I guess someone would say that I should eject USB devices from host OS Mac normally first. I tried that too, but that's not working. Lastly, I did not get any error message such as " attach device failed ", which validated my configurations. I am now completely lost.

Can you help me out there? Really appreciate your precious help! I am looking forward to that.
CharlesBest
Posts: 7
Joined: 5. Jan 2018, 04:11

Re: USB hard disk captured but can not be seen in guest OS

Post by CharlesBest »

Update:
I used command dmesg and got the following result:

Code: Select all

[ 8752.576539] usb 2-1: USB disconnect, device number 8
[ 8763.215088] usb 2-1: new SuperSpeed USB device number 9 using xhci_hcd
[ 8763.239047] usb 2-1: New USB device found, idVendor=0bc2, idProduct=ab24
[ 8763.239050] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 8763.239052] usb 2-1: Product: BUP Slim SL
[ 8763.239053] usb 2-1: Manufacturer: Seagate
[ 8763.239054] usb 2-1: SerialNumber: NA9CDJBH
[ 8763.273274] usb 2-1: USB controller 0000:00:0c.0 does not support streams, which are required by the UAS driver.   ####note this!
[ 8763.273276] usb 2-1: Please try an other USB controller if you wish to use UAS.
[ 8763.273278] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 8763.273552] scsi host3: usb-storage 2-1:1.0
I guess this is the problem. How can I solved this?

Can you help? Thanks!
Last edited by socratis on 5. Jan 2018, 10:51, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
CharlesBest
Posts: 7
Joined: 5. Jan 2018, 04:11

Re: USB hard disk captured but can not be seen in guest OS

Post by CharlesBest »

update:

a guy using ubuntu shared seemingly exactly the same problem with me:

https://askubuntu.com/questions/678574/ ... tualbox-vm
Last edited by socratis on 5. Jan 2018, 10:52, edited 1 time in total.
Reason: Fixed obfuscated URLs.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: USB hard disk captured but can not be seen in guest OS

Post by socratis »

I'll start from the end.
CharlesBest wrote:a guy using ubuntu shared seemingly exactly the same problem with me:
That was more than 2 years ago. It's considered ancient history...
CharlesBest wrote:created two filter for USB devices: one is empty, the other is Seagate. This configuration is presumably fine.
No, it is not. You'll capture everything USB, including potentially your mouse/keyboard and you won't be able to use them in your host. Not what you'd want...
CharlesBest wrote:host OS Mac showed that "hard disk drives were not ejected normally". I think this is actually "fine", since USB hard disk can only captured by one OS.
This message has nothing to do with USB capturing. It will show every time that you "yank" a USB HD without using the "Eject" option. That's a reminder that you shouldn't be doing that if you want to avoid potential data corruption.
CharlesBest wrote:So what is my problem?
My gut feeling is USB3 support is not enabled in the VM.
CharlesBest wrote:which pointed out that the number of virtual CPU should be 1
Completely unrelated. The number of CPUs has absolutely nothing to do with USB device capturing.

Please read the following thread: USB basics and troubleshooting, all of the posts. If you still have a problem after reading through the whole thing, please follow the advice of the last post, #8: Asking for help.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
CharlesBest
Posts: 7
Joined: 5. Jan 2018, 04:11

Re: USB hard disk captured but can not be seen in guest OS

Post by CharlesBest »

@socratis : thanks. It seemed that I have to "ask for help". Your required information is provided as followings:

Code: Select all

VirtualBox : 5.2.4 r119785 (QT5.6.3)
Host OS    : OS X 10.10.5 (14F1605)  Darwin 14.5.0
Guest OS   : debian-9.3.0.
             uname -r :4.9.0-4-amd64"
             Guest Addition installed (I installed the Guest Addition previously to enable auto resizing)
The commands in this section ran when USB plugged and VM not running.
command "id":

Code: Select all

uid=501(xiaohan) gid=20(staff) groups=20(staff),701(com.apple.sharepoint.group.1),501(access_bpf),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)
command "VBoxManage -version":

Code: Select all

5.2.4r119785
command "VBoxManage list extpacks":

Code: Select all

Extension Packs: 1
Pack no. 0:      Oracle VM VirtualBox Extension Pack
Version:         5.2.4
Revision:        119785
Edition:     
Description:     USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:     VBoxVRDP
Usable:          true
Why unusable:
command "VBoxManage list usbhost":

Code: Select all

Host USB Devices:

UUID:               20af14b4-2cf5-4599-bb0c-207eab66134e
VendorId:           0x0bc2 (0BC2)
ProductId:          0xab24 (AB24)
Revision:           1.0 (0100)
Port:               2
USB version/speed:  0/Super
Manufacturer:       Seagate
Product:            BUP Slim SL
SerialNumber:       NA9CDJBH
Address:            p=0xab24;v=0x0bc2;s=0x00001ea1877381c2;l=0x15200000
Current State:      Busy

UUID:               d2599a9a-93af-4b6c-8f10-d65a78304a73
VendorId:           0x05ac (05AC)
ProductId:          0x8406 (8406)
Revision:           8.32 (0832)
Port:               3
USB version/speed:  0/Super
Manufacturer:       Apple
Product:            Internal Memory Card Reader
SerialNumber:       000000000820
Address:            p=0x8406;v=0x05ac;s=0x00001e442e9f0bf3;l=0x15300000
Current State:      Busy

UUID:               e061fbee-a0d3-4ee0-8dbe-6cf6d22d3089
VendorId:           0x05ac (05AC)
ProductId:          0x8290 (8290)
Revision:           1.4 (0104)
Port:               3
USB version/speed:  0/Full
Manufacturer:       Broadcom Corp.
Product:            Bluetooth USB Host Controller
Address:            p=0x8290;v=0x05ac;s=0x00001b12f2c72581;l=0x14300000
Current State:      Available
command "VBoxManage list usbfilters"

Code: Select all

Global USB Device Filters:

<none>
command "VBoxManage showvminfo "Debian9"

Code: Select all

Name:            Debian9
Groups:          /
Guest OS:        Debian (64-bit)
UUID:            e1d154af-857b-48c6-8255-bc684b92df02
Config file:     /Users/xiaohan/VirtualBox VMs/Debian9/Debian9.vbox
Snapshot folder: /Users/xiaohan/VirtualBox VMs/Debian9/Snapshots
Log folder:      /Users/xiaohan/VirtualBox VMs/Debian9/Logs
Hardware UUID:   e1d154af-857b-48c6-8255-bc684b92df02
Memory size:     2048MB
Page Fusion:     off
VRAM size:       16MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             off
Long Mode:       on
Triple Fault Reset: off
APIC:            on
X2APIC:          on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             UTC
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     on
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State:           powered off (since 2018-01-05T11:22:35.000000000)
Monitor count:   1
3D Acceleration: on
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration: 
Autostart Enabled: off
Autostart Delay: 0
Default Frontend: 
Storage Controller Name (0):            IDE
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      1
Storage Controller Bootable (1):        on
IDE (1, 0): Empty
SATA (0, 0): /Users/xiaohan/VirtualBox VMs/Debian9/Debian9.vmdk (UUID: de726808-4eb6-4b71-9546-0e69ce90fccf)
NIC 1:           MAC: 080027BFDEFB, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1:          I/O base: 0x03f8, IRQ: 4, disconnected
UART 2:          I/O base: 0x02f8, IRQ: 3, disconnected
UART 3:          I/O base: 0x03e8, IRQ: 4, disconnected
UART 4:          I/O base: 0x02e8, IRQ: 3, disconnected
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: CoreAudio, Controller: AC97, Codec: AD1980)
Audio playback:  disabled
Audio capture: enabled
Clipboard Mode:  Bidirectional
Drag and drop Mode: Bidirectional
VRDE:            disabled
USB:             disabled
EHCI:            disabled
XHCI:            enabled

USB Device Filters:

Index:            0
Active:           yes
Name:             Seagate BUP Slim SL [0100]
VendorId:         0bc2
ProductId:        ab24
Revision:         
Manufacturer:     
Product:          
Remote:           0
Serial Number:    

Bandwidth groups:  <none>

Shared folders:  

Name: 'xiaohan', Host path: '/Users/xiaohan' (machine mapping), writable

Capturing:          not active
Capture audio:      not active
Capture screens:    0
Capture file:       /Users/xiaohan/VirtualBox VMs/Debian9/Debian9.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25
Capture options:    ac_enabled=false

Guest:

Configured memory balloon size:      0 MB
thanks for your help!
Attachments
Debian9-2018-01-05-19-38-57.log.zip
(29.12 KiB) Downloaded 13 times
Last edited by socratis on 5. Jan 2018, 13:53, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
CharlesBest
Posts: 7
Joined: 5. Jan 2018, 04:11

Re: USB hard disk captured but can not be seen in guest OS

Post by CharlesBest »

I don't know why command "VBoxManage showvminfo "Debian9" " showed that USB is disabled. Besides, there are no other guest OS running.

Besides, does Debian 9 support USB 3.0? I searched the web and think it should support USB 3.0. Besides, in the Debian 9 System->Control Center->Removable Devices and Media, I did ENABLED auto mounting. But it is still not working. When I used dmesg, it showed :

[ 91.513919] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 91.536007] usb 2-1: New USB device found, idVendor=0bc2, idProduct=ab24
[ 91.536009] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 91.536010] usb 2-1: Product: BUP Slim SL
[ 91.536011] usb 2-1: Manufacturer: Seagate
[ 91.536012] usb 2-1: SerialNumber: NA9CDJBH
[ 91.626061] usb 2-1: USB controller 0000:00:0c.0 does not support streams, which are required by the UAS driver.
[ 91.626063] usb 2-1: Please try an other USB controller if you wish to use UAS.
[ 91.626064] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 91.634167] scsi host3: usb-storage 2-1:1.0
[ 91.634267] usbcore: registered new interface driver usb-storage
[ 91.635293] usbcore: registered new interface driver uas
[ 114.289921] usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd

******************************************************************************************************************************************************************
thanks for your help!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: USB hard disk captured but can not be seen in guest OS

Post by socratis »

CharlesBest wrote:I don't know why command "VBoxManage showvminfo "Debian9" " showed that USB is disabled.
It's a little confusing, I agree. When the "showvminfo" talks about USB, it's the 1.1 version (OHCI). EHCI is the 2.0 version, and XHCI is the 3.0 USB version. I submitted a patch to the dev-mailing list to remedy the situation. Hopefully it will be included and the output will be clearer, for example:

Code: Select all

VRDE:            disabled
USB 1.1 (OHCI):  disabled
USB 2.0 (EHCI):  disabled
USB 3.0 (xHCI):  enabled
I took a look at your posted information. Nothing seems suspicious. Something is funky with your setup, I simply don't know what. I have a feeling that it might be the Seagate drive. Do you have another USB 3.0 device that you could try?

I will try to download Debian 9 and try it out. Could you please tell me which version you've installed? A link, or a go here, there, download this would help.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
CharlesBest
Posts: 7
Joined: 5. Jan 2018, 04:11

Re: USB hard disk captured but can not be seen in guest OS

Post by CharlesBest »

Thanks for your help.
Besides, my CentOS virtual machine is also having this problem. I only ran one virtual machine at the same time so you can be free of the worries that USB problem was caused by multiple guest OS competing for the USB resources.

My OS ISOs can be downloaded from their official websites. Because I only became the member recently, temporarily I am not allowed to post URLS. But you can search these iso files in google and find them in the first or second result.

Here are my OS informations:
Debian : installed from "debian-9.3.0-amd64-DVD-1.iso".


CentOS : installed from "CentOS-7-x86_64-Everything-1708.iso". The situation for CentOS is a little complicated because I had to replace its kernel to enable auto-resizing. Because I replaced its kernel, when I cold-boot CentOS, the boot menu showed "CentOS Linux (3.10.0-693.11.1.el7.x86_64) 7 (Core)". And the command "uname -r" showed "3.10.0-693.11.1.el7.x86_64". BTW, I installed this kernel using yum.


Thanks for your patience and help! Really appreciate it.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: USB hard disk captured but can not be seen in guest OS

Post by socratis »

CharlesBest wrote:I only ran one virtual machine at the same time so you can be free of the worries that USB problem was caused by multiple guest OS competing for the USB resources.
By competing for USB resources, I wasn't referring to different VMs running at the same time (although I could have), I was talking about host and guest (or guestA and guestB).
CharlesBest wrote:Debian : installed from "debian-9.3.0-amd64-DVD-1.iso".
I tried that, it worked flawlessly, with a USB2 stick and a USB3 HDD. Or anything I threw at it.

I won't even try with the custom kernel CentOS installation.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
CharlesBest
Posts: 7
Joined: 5. Jan 2018, 04:11

Re: USB hard disk captured but can not be seen in guest OS

Post by CharlesBest »

Thanks. I might as well try different USB devices. Wish me good luck.
As for CentOS, I didn't want custom kernel installation either. I had to do so to enable auto-resizing.
Post Reply