Page 1 of 1
[Solved] Distinguishing identical USB 4G Modems
Posted: 17. Apr 2019, 00:46
by pt_kakalos
Hello to everyone..
I have two 4g usb modems from the same vendor(HUAWEI). I want to run the same time 2 vms and I want to have different IP for each vm, this the reason that I have two 4g modems. But I cant use them at the same time, there is a confict because these are for same vendor. Any idea what can I do with this? How to setup a filter? I tried it but I have the same problem. Thank you! (I apologise for my bad english)
Re: Distinguishing identical USB 4G Modems
Posted: 17. Apr 2019, 10:30
by mpack
"vendor" is only one of the fields in the USB filter. Can the devices be distinguished in other ways? E.g. do they have a serial number? (I'm assuming you bought two identical 4G dongles).
Re: Distinguishing identical USB 4G Modems
Posted: 17. Apr 2019, 11:18
by socratis
With both the dongles plugged in, and no VM running, post the output of the following command:
Re: Distinguishing identical USB 4G Modems
Posted: 17. Apr 2019, 14:32
by pt_kakalos

- 1.jpg (107.01 KiB) Viewed 2209 times
Re: Distinguishing identical USB 4G Modems
Posted: 17. Apr 2019, 14:33
by pt_kakalos
these are filters

- filter1.jpg (33.78 KiB) Viewed 2209 times
Re: Distinguishing identical USB 4G Modems
Posted: 17. Apr 2019, 14:34
by pt_kakalos

- filter2.jpg (34.56 KiB) Viewed 2209 times
Re: Distinguishing identical USB 4G Modems
Posted: 17. Apr 2019, 14:36
by pt_kakalos
for first time everything with little luck are working. But after the restart the one vm doesnt recognize the one usb 4g dongle
Re: Distinguishing identical USB 4G Modems
Posted: 17. Apr 2019, 19:24
by scottgus1
When all of the filter information for multiple USB devices are identical, the port number is the only way to filter which device goes to which guest and which stays in the host. The port number is the number shown on the "Port:" line in the output of 'vboxmanage list usbhost'. This "port number" is a designation generated by the physical computer's operating system for the physical USB jack on the physical computer.
Some things to get success in using identical USB devices:
> Each device must have a different port number. Try different USB jacks on the physical computer and re-run 'vboxmanage list usbhost' until all the desired identical devices have different port numbers.
> If you unplug the device you must plug it back in exactly the same port you had it plugged into when you ran 'vboxmanage list usbhost' and set up the guest USB filter.
>I don't know if an operating system may one day for whatever reason rearrange what port numbers it assigns to the physical USB ports. If that happens, you will need to re-run 'vboxmanage list usbhost' and re-align your filters.
>Sometimes a physical unplug and replug of a non-connecting USB device is necessary to get it to connect into the correct guest.
My experiences here:
viewtopic.php?f=1&t=91651
First glance, the posted output of 'vboxmanage list usbhost' shows the Huawei devices on ports 1 and 4. The posted guest USB filters shows ports 5 and 6 being set. The ports in the USB filters need to be the same as the port numbers in 'vboxmanage list usbhost'.
Re: Distinguishing identical USB 4G Modems
Posted: 18. Apr 2019, 01:34
by pt_kakalos
Thank you very much! It's working smoothly and perfectly

Re: Usb 4g Modem Problem
Posted: 18. Apr 2019, 02:31
by socratis
pt_kakalos wrote:Thank you very much! It's working smoothly and perfectly
Did you follow the
suggestion from stottgus1?
BTW, when I said post the output, I didn't quite mean a picture. It's usually easier, more convenient, smaller size, searchable and quotable, if you simply paste the error text, instead of posting the image...
Glad you got it going, marking as [Solved]. I also changed the title from "Usb 4g Modem Problem" to something more appropriate.
PS. Hey Scott, nice to see you, is it a reunion-day today? You
and LouKingJr showing up in the same day? I'll try to convince Klaus to have releases more often!
@pt_kakalos
ΥΓ. Χαίρομαι που δούλεψε. Βλέπω χρησιμοποιείς και την Ελληνική μετάφραση

Re: [Solved] Distinguishing identical USB 4G Modems
Posted: 19. Apr 2019, 14:13
by scottgus1
yeah, on rare occasions I get a moment to wander in, might post a bit for old times' sake...
