[Solved] Distinguishing identical USB 4G Modems

Discussions about using Windows guests in VirtualBox.
Post Reply
pt_kakalos
Posts: 6
Joined: 17. Apr 2019, 00:33

[Solved] Distinguishing identical USB 4G Modems

Post 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)
Last edited by socratis on 18. Apr 2019, 02:35, edited 2 times in total.
Reason: Marked as [Solved].
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: Distinguishing identical USB 4G Modems

Post 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).
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Distinguishing identical USB 4G Modems

Post by socratis »

With both the dongles plugged in, and no VM running, post the output of the following command:
  • 
    VBoxManage list usbhost
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.
pt_kakalos
Posts: 6
Joined: 17. Apr 2019, 00:33

Re: Distinguishing identical USB 4G Modems

Post by pt_kakalos »

1.jpg
1.jpg (107.01 KiB) Viewed 2208 times
pt_kakalos
Posts: 6
Joined: 17. Apr 2019, 00:33

Re: Distinguishing identical USB 4G Modems

Post by pt_kakalos »

these are filters
filter1.jpg
filter1.jpg (33.78 KiB) Viewed 2208 times
pt_kakalos
Posts: 6
Joined: 17. Apr 2019, 00:33

Re: Distinguishing identical USB 4G Modems

Post by pt_kakalos »

filter2.jpg
filter2.jpg (34.56 KiB) Viewed 2208 times
pt_kakalos
Posts: 6
Joined: 17. Apr 2019, 00:33

Re: Distinguishing identical USB 4G Modems

Post 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
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Distinguishing identical USB 4G Modems

Post 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'.
pt_kakalos
Posts: 6
Joined: 17. Apr 2019, 00:33

Re: Distinguishing identical USB 4G Modems

Post by pt_kakalos »

Thank you very much! It's working smoothly and perfectly :D
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Usb 4g Modem Problem

Post 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! :D

@pt_kakalos
ΥΓ. Χαίρομαι που δούλεψε. Βλέπω χρησιμοποιείς και την Ελληνική μετάφραση ;)
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.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: [Solved] Distinguishing identical USB 4G Modems

Post by scottgus1 »

yeah, on rare occasions I get a moment to wander in, might post a bit for old times' sake... :)
Post Reply