Unable to connect USB harddrive

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
MaxW7
Posts: 3
Joined: 4. Dec 2015, 12:35

Unable to connect USB harddrive

Post by MaxW7 »

I'm unable to connect my usb harddrive (which is formatted in ms-dos), and when I do I get the following error:

Code: Select all

Failed to attach the USB device Western Digital My Passport 0810 [1049] to the virtual machine W8.1V1.

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}
Now I searched on the error VERR_PDM_NO_USB_PORTS, but got articles about connecting more than 16 usb devices, and I only have 1 device I want to connect...

I tried adding a different usb drive, but I got the same error.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Unable to connect USB harddrive

Post by mpack »

"Formatted in ms-dos"? That's a neat trick, since MS-DOS doesn't have USB support, and most modern storage devices would be too large for it to understand. However that's a distraction since you aren't getting far enough to mount the filesystem.

Please post a VM log file. With the VM fully shut down, right click it in GUI. Select "Show Log" and save "VBox.log" (ONLY) to a zip file. Attach the zip here.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Unable to connect USB harddrive

Post by loukingjr »

On Mac hosts, for some reason you can format a USB HD as Fat32 using Disk Utility.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
MaxW7
Posts: 3
Joined: 4. Dec 2015, 12:35

Re: Unable to connect USB harddrive

Post by MaxW7 »

mpack wrote:"Formatted in ms-dos"? That's a neat trick, since MS-DOS doesn't have USB support, and most modern storage devices would be too large for it to understand. However that's a distraction since you aren't getting far enough to mount the filesystem.

Please post a VM log file. With the VM fully shut down, right click it in GUI. Select "Show Log" and save "VBox.log" (ONLY) to a zip file. Attach the zip here.
Well, I formatted / partitioned it with a MS-DOS codation (is that how it works? :oops: ). But here you go, file attached
loukingjr wrote:On Mac hosts, for some reason you can format a USB HD as Fat32 using Disk Utility.
I haven't tried that yet, will do aswell, but don't think that's gonna work since I get this error aswell when I plug in a mac-formatted usb...
Attachments
vmlog.zip
vmlog zip
(22.85 KiB) Downloaded 13 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Unable to connect USB harddrive

Post by loukingjr »

No, don't format it using Fat32.
MS-DOS(FAT) also called FAT32, may be useful if you want both a Mac and PC to be able to read and write to it. There are some drawbacks, such as a maximum file size of 4 GB; and the partition name must be in CAPITAL LETTERS and no more than 11 characters.
If you want the OSX and Windows to be able to read and write to the drive, you would be better off with exFAT.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Any and all
Contact:

Re: Unable to connect USB harddrive

Post by michaln »

loukingjr wrote:If you want the OSX and Windows to be able to read and write to the drive, you would be better off with exFAT.
Given that older Windows and OS X versions don't support ExFAT... maybe not. For recent versions, it's a good choice because it can handle large media much better.

The OP's problem is probably caused by trying to attach a USB3 device to a VM with no USB3 support. Either enable USB3 support in the VM (how hard that is depends on the guest OS) or force the device to USB2 by using an USB2 extension cable, for example.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Unable to connect USB harddrive

Post by loukingjr »

Well the user is running El Capitan and other than 3rd party solutions to support NTFS on Macs there isn't really another option. Of course he could just use a shared folder.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Unable to connect USB harddrive

Post by loukingjr »

p.s. I assumed he was trying to run a Windows 8.1 guest based on the name of the VM. I'm often mistaken however. :)
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Unable to connect USB harddrive

Post by mpack »

Has xHCI support been enabled in the VM settings? I see ahci stuff in the log (USB2), but no xhci (USB3).

exFAT isn't very portable, and besides which I wouldn't want to reward Microsoft for a blatant attempt to extract a toll from every USB memory stick sold. An open extension to FAT would have suited users better. It wouldn't even have required any work, they need only have supported one of the unofficial extensions that was already out there.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Unable to connect USB harddrive

Post by loukingjr »

I'm not trying to reward Microsoft. :lol:
I was just thinking he may want guests with .vdi's > 4GB on the external drive. But, there may be another issue altogether.

I've never bothered to try to mount an external USB HD to a Windows guest until this morning. When I tried selecting a USB 2.0 drive from the USB menu with a Windows 8.1 guest…

You get a the disk was not ejected properly message from the host.

As near as I can tell, you have to unmount any USB drive from the host before you can select it in a guest. On OSX 10.11.1 anyway.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
MaxW7
Posts: 3
Joined: 4. Dec 2015, 12:35

Re: Unable to connect USB harddrive

Post by MaxW7 »

michaln wrote: The OP's problem is probably caused by trying to attach a USB3 device to a VM with no USB3 support. Either enable USB3 support in the VM (how hard that is depends on the guest OS) or force the device to USB2 by using an USB2 extension cable, for example.
That did it... I feel stupid now, I thought it wouldn't really matter if you left it usb2.0.. Thanks :oops: :mrgreen:
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Unable to connect USB harddrive

Post by loukingjr »

I wouldn't feel stupid. It still doesn't work correctly for me. :lol:
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply