Page 1 of 1

VirtualBox issue with lost USB packets

Posted: 3. Oct 2020, 01:34
by bloguetronica
Hi all,

I'm using the latest VirtualBox version under Kubuntu 18.04 LTS. I'm having errors when testing a software I've made in a VM running the same OS, but it makes no difference on other VMs running other Linux distributions. However, my software doesn't have issues when it is running on my native machine, no VMs involved. I even tested this on a different machine, and no issues whatsoever even after a few hours.

The history here is that this software controls a USB switcher, monitoring it continuously, ever 200ms (but that can be changed in the options). The USB switcher itself is based on the CP2130 from Silicon Labs. The software has all the kinks ironed, but it fails on a VirtualBox VM, which should not happen. This also happens, seemingly, irregardless of the version of VBox I have installed. I've recently updated to the latest version from the VirtualBox repository, but saw no differences. In fact, I've seen it fail catastrophically and even causing the device to reset (the software forces a reset if more than 10 errors occur) quite rapidly.

To sort this out, I've decided to run traces with Wireshark, simultaneoulsy inside and outside the VM, monitoring the same connections essentially. I can conclude that there were some lost packets because I've seen errors reporting inside the VM pertaining to packets that simply were not matched to any packets caught outside the VM, which might mean that the request packet never went outside the VM to the USB host, and due to timeout, it generated a ENOENT response inside the VM, but not outside. I must add that responses that exceed 100ms are ruled out the the application.

I have the images proving the issue, the screenshots highlighting some of the packets and the traces taken inside and outside the VM. However, I cannot upload any of them. How should I report this? I need a solution. Without this, I can't use VirtualBox to demonstrate the application, especially when it fails due to the environment that it is in.

Kind regards, Samuel Lourenço

Re: VirtualBox issue with lost USB packets

Posted: 3. Oct 2020, 10:28
by fth0
bloguetronica wrote:I cannot upload any of them.
You can crop images and zip files to get them below the 128 kB limit, and then add them as an attachment to your posts (even on your first day of posting). Please also post a zipped VBox.log file.
bloguetronica wrote:I need a solution.
I cannot promise anything but trying to understand your problem even better than your already good initial description. Note that the VirtualBox forums are user-to-user forums, run by volunteers, and many discussions advance one roundtrip a day, so if you are in a hurry ...

Re: VirtualBox issue with lost USB packets

Posted: 3. Oct 2020, 23:25
by bloguetronica
It seems I have to create a new post on another forum. I can't upload any files here. Anyway, I have updates.

Been testing this under a new VM, but using VMware. I don't get any errors reporting during execution, unless I enumerate a pen, and not always in that situation. Probably VMware has issues as well, but they only manifest when there is simultaneous communication between devices. This is a much better behavior, yet not ideal.

Kind regards, Samuel Lourenço

Re: VirtualBox issue with lost USB packets

Posted: 4. Oct 2020, 04:17
by scottgus1
Moved to Linux hosts, because it is not a suggestion, and locking because the troubleshooting is going on here: viewtopic.php?f=7&t=100074