Lost USB packets
Posted: 3. Oct 2020, 23:33
Hi all,
I've reported this on another topic/forum, but I can't upload pictures or documents there, so I've decide to create a new thread here.
Anyways, I'm having issues with the latest VirtualBox version under Kubuntu 18.04 LTS. I'm having constant errors when testing a software I've made in a VM, virtually having any Linux distribution (even the same as my host machine). However, my software doesn't have issues when it is running directly on my host machine. I even tested this on a different hardware, and saw no issues whatsoever.
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've attached some of the images. I'll attach more further down. However, though I have the traces taken, the files are too big.
Kind regards, Samuel Lourenço
I've reported this on another topic/forum, but I can't upload pictures or documents there, so I've decide to create a new thread here.
Anyways, I'm having issues with the latest VirtualBox version under Kubuntu 18.04 LTS. I'm having constant errors when testing a software I've made in a VM, virtually having any Linux distribution (even the same as my host machine). However, my software doesn't have issues when it is running directly on my host machine. I even tested this on a different hardware, and saw no issues whatsoever.
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've attached some of the images. I'll attach more further down. However, though I have the traces taken, the files are too big.
Kind regards, Samuel Lourenço