USB 2.0 Very Slow in Virtualbox 5.x.x

Discussions related to using VirtualBox on Windows hosts.
DaniVB84
Posts: 4
Joined: 1. Feb 2016, 07:55

USB 2.0 Very Slow in Virtualbox 5.x.x

Post by DaniVB84 »

Hello,

I have a VirtualBox ed 5.x.x installed in windows 10 and a Guest WindowsXP to use the DD command for win but,,,, the USB its very slow. Im tried the same Command DD in a native Windows XP edition and runs correctly with a normal velocity.

Any answer?

Thanks,

PD: my english its very poor, Sorry
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 2.0 Very Slow in Virtualbox 5.x.x

Post by socratis »

USB 2.0 requires the Extension Pack to be installed on the host. Have you done that? Actually, with the VM completely shut down, right-click on the VM in the VirtualBox Manager, select "Show Log...", save it, ZIP it and attach it in your response.
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.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by michaln »

DaniVB84 wrote:Any answer?
I'm sure you weren't expecting any. If you did, you would have clearly defined what is "slow" and what is "normal velocity".

In general, it's not true that "USB 2.0 is very slow" in VirtualBox. It is true that the EHCI emulation (not quite the same as USB 2.0) has a fairly high overhead. With the xHCI emulation, the overhead is much lower for all transfer speeds.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by mpack »

Hmm. I'm not sure we've got that far. I expect that Socratis' guess is right, and the log will show that the extpack isn't installed, so the VM isn't even using USB2.
DaniVB84
Posts: 4
Joined: 1. Feb 2016, 07:55

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by DaniVB84 »

Hello,

Im trying to write in a CF Card with USB 2.0 Adapter. The speed its very slow, approx 1MB/sec. The AddonPack are installed correctly with admin rights. Any USB that connect run very slow throug USB Bus,

Thanks,
Attachments
XP-2016-01-28-08-44-05.log
(106.71 KiB) Downloaded 30 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by mpack »

Well, the log shows that the extension pack has been installed, so that's good. Also, the version is 5.0.14, I'm not sure why this information was obscured in the original report.

I see that VBoxGuestAdditions.iso is still mounted in the VM, best eject this virtual CD.

I also see this in the log :-
VBox.log wrote: 00:00:04.600599 Console: VM runtime error: fatal=false, errorID=BrokenSharedFolder message="The shared folder 'E_DRIVE' could not be set up: Shared folder path 'E:\' does not exist on the host.
00:00:04.600624 The shared folder setup will not be complete. It is recommended to power down the virtual machine and fix the shared folder settings while the machine is not running"
00:00:04.601017 SharedFolders host service: Adding host mapping
I'm thinking that, while the slowness might be noticeable when accessing the USB drive, the USB drive itself may not be what's slow. The VM may be spending a lot of I/O time trying to diagnose broken network connections.

Speaking of which: if your USB mass storage interface is slow, consider accessing it as a shared folder. But: do one or the other (shared folder or direct USB). Don't do both.
DaniVB84
Posts: 4
Joined: 1. Feb 2016, 07:55

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by DaniVB84 »

Hello,

E_DRIVE & G_DRIVE are letters of native S.O (host) that shared by the reason;

1, Read *.dd image from g_drive
2, Connect a USB card reader 2.0 in HOST and detect correctly in guest Winxp.
3, Init the write from Image (Host) thoug shared folder G_DRIVE to USB Card reader in Guest Winxp.

I'm tried to write directly from HardDisk of Guest and get the same problem.

I will try to quit ISO VBOX_Additions and try another time.

Thanks.
jorgensen
Posts: 583
Joined: 20. Oct 2009, 01:22
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, LinuxMint

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by jorgensen »

USB 2 in Virtualbox has always been 'slow' properly due to the half-duplex interface.
When testing the speed with an attached harddisk or similar, you might only get 20-25% speed of the hosts native USB speed.
USB 3 in Virtualbox 5 is very promising, but not supported with a XP guest, but you can use the 32-bit Windows 7 version and install the USB 3 driver at the guest, and attach the USB harddisk to an USB 3 connection.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by michaln »

jorgensen wrote:USB 3 in Virtualbox 5 is very promising, but not supported with a XP guest
I wouldn't say that's wrong, but see here: viewtopic.php?f=15&t=74575
jorgensen
Posts: 583
Joined: 20. Oct 2009, 01:22
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, LinuxMint

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by jorgensen »

michaln wrote:
jorgensen wrote:USB 3 in Virtualbox 5 is very promising, but not supported with a XP guest
I wouldn't say that's wrong, but see here: viewtopic.php?f=15&t=74575
Very interesting, as the Renesas USB 3 driver actually is available for download
https://downloadcenter.intel.com/downlo ... 3-0-Driver
Expect to look into it when I get the time for it :-)
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by mpack »

Hmm. Maybe I'm missing it, but I'm not seeing mention of the uPD720201/202 chipset in those Intel download pages. Renesas is a company name, they probably make lots of drivers for hardware that VBox doesn't simulate, so maybe it's better to do the narrower search that Michal suggested.
jorgensen
Posts: 583
Joined: 20. Oct 2009, 01:22
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, LinuxMint

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by jorgensen »

Tried to add xHCI to a XP guest and received the following VB error.

Failed to open a session for the virtual machine Visual Studio 6.
xHCI configuration error: Unknown option specified (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES).
Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by michaln »

Without a complete VBox.log there's nothing much to say.
jorgensen
Posts: 583
Joined: 20. Oct 2009, 01:22
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, LinuxMint

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by jorgensen »

michaln wrote:Without a complete VBox.log there's nothing much to say.
Attachments
VBox.log
(34.66 KiB) Downloaded 41 times
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: USB 2.0 Very Slow in Virtualbox 5.x.x

Post by michaln »

Please read the very first sentence of the forum post I referred to :)

You need to update first.
Locked