Huawei usb modem does not connect

Good evening. Tell me please. How can I connect a huawei 4g modem, my qubes is installed on a usb ssd drive, I don’t see a sys usb, is it possible at all? or is it necessary to install qubes on a PC?

Is this a standalone 4G modem? If so: Simply connect it via wifi/ethernet.

If it is a hardware module build into your machine, it would help to know what exact modem it is.

You can do a sudo lspci in dom0 and search for something that sounds like network/modem.

Yes, this is an autonomous USB modem like a USB flash drive, I tried it via Wi-Fi. There is no it in the connected list. I’ll insert the wire, everything works right away, the modem does not work. Can you tell me more about it?

Your Qubes is booted from the USB. You can’t have isolated sys-usb in this way, so it’s not created by default. Your usb devices are in dom0 AFAIK.

guys, thank you for the answers, so in the future I will install qubes on a PC

Regarding the modem stuff:

With your current setup:

You have to figure out on what USB controller it is, then you can assign the whole controller to a qube that handles the networking, for example sys-net. This only works if you have multiple controllers, so the controller with your system stays at dom0 and you plug in your modem in the other one.

If your system is installed on an HDD you can choose to use a dedicated USB qube or use sys-net for that. The latter should work for you.

After you have ensured that you have your modem visible in your sys-net with lsusb you only have to figure out how to use your modem with linux.

Thanks for the advice, maybe I can figure it out, I’m new to this business. Without instructions, I can only figure it out by eye, I’m not a programmer and the same terminal is a dark forest for me + to the fact that I’m Russian and don’t know English, I translate everything in Google translator and the same pages. If you help me figure out where to click according to the instructions, I will donate a little Bitcoin or monero to your wallet, and qubesu cooperation will also make a donation. For such an excellent system) in general, if there is time, help, I will remind you that my qubes is installed on an external ssd hard drive. Because of this problem

You can connect your USB controller to sys-net without a terminal. Just go to Qube Manager, open “Settings” of sys-net , tab “Devices” and choose the USB controller and put it to the right. sys-net should be powered off, it should not be running for this.

However I am not sure how it works without sys-usb. It might be dangerous or impossible like this, because your dom0 needs USB to boot.

Did you try to create sys-usb? But I’m not sure how it’s gonna work if you’re booting from a usb ssd drive. If it doesn’t work then if you have multiple USB controllers on your PC you may leave 1 USB controller with usb ssd drive for dom0 and create sys-usb with other USB controllers.

TLDR: Just run this command in dom0 terminal:

sudo qubesctl state.sls qvm.usb-keyboard

And add this:

sys-usb dom0 allow

At the beginning of this file:

/etc/qubes-rpc/policy/qubes.InputMouse

Sorry, you have to use the terminal. It is the easiest to provide help over the internet, don’t be scared of it. We will get you through this. :slight_smile:

So what we are going to do is:

  1. Identify the usb qube
  2. Identify the modem
  3. Find out how to use it
  4. use it

1. Identify the USB qube

First, you have to find the qube that has your USB devices.

There are 3 possible qubes that could have them.

  • (dom0) No sys-usb
  • (sys-net) sys-net as sys-usb
  • (sys-usb) sys-usb

You can choose this in the setup. If you know your USB qube, skip to 2.

Try this: Click on the qube icon in the upper right corner to list your running qubes. If there is a sys-usb qube running, you have sys-usb. Skip to 2.

If not, click on sys-net → Run Terminal.
Run:

lsusb

in sys-net.
Here is an example output:

Bus 005 Device 004: ID 0000:0000 Realtek Semiconductor Corp.  Gigabit Ethernet Adapter
Bus 005 Device 002: ID 1111:aaaa Some corpo, Inc. USB3.1 Hub             
Bus 005 Device 001: ID 2222:bbbb Linux Foundation 3.0 root hub
Bus 004 Device 006: ID 3333:cccc some corpo, Inc. USB Billboard Device   
...

If it looks like that, sys-net is your USB qube. Skip to 2.

Here is an example for when lsusb returns nothing:

[krakin@sys-net ~]$ lsusb
[krakin@sys-net ~]$ 

If it looks like this, dom0 is your USB qube.

Confirm this by clicking on the qubes menu in the upper left corner → Run Terminal.

Run:

lsusb

in dom0.
It should display something like the example. If not, something is wrong.

2. Identify the modem

In your USB qube open a Terminal.
You can do this over the start menu:

  • dom0: Run Terminal
  • sys-net: sys-net → Open Terminal
  • sys-usb: sys-usb → Open Terminal

Run:

lsusb | grep Huawei

and post the output so we can determine the next steps.

2 Likes

I made a command in sys net here is the result


And here is the usb device

Check if you have one or more USB controllers in your system in dom0 terminal:
lspci | grep USB

Executed the command, how much does usb mean?

You have 2 USB controller. You can leave one controller with USB keyboard/mouse and with your USB SSD to dom0 and create sys-usb with the second controller.
Follow this guide:

Sorry for drifting the topic
I strongly recommend to throw away anything with Chinese brand. They are purely made for spying for the Chinese government. Chinese government subsidies Huawei with hundreds of billion dollars to make its product dominate the market.
There would be no mean to use Qubes if you have a Huawei Modem connected to your PC.

Good.and then what to use? I have a laptop. And I’m on the road all the time. I always need a good internet connection. These modems are popular in our country. They work with all operators. And they have a stable Internet connection. I live in Russia.

Thanks for the help. I will try

Thanks for your interest. I’d suggest to use OpenWRT(or DDWRT). Buy a router that strictly matches a model in https://openwrt.org/toh/, and flash it with OpenWRT firmware. They are open source, privacy friendly, secure and hackable.

Hey, does the wire connection refer to USB or RJ45 connection? Check sys-net-----Qube settings-----Deivces----- see if Ethernet Adapter(Something like that) exists. In most cases sys-net has direct connection to the Ethernet Adapter hardware.
If it does not work, try a RJ45 to USB adapter. Ethernet adapter on your motherboard may needs driver that Qubes does not have but USB Ethernet adapter normally works fine.

USB Ethernet adapter is something like that :arrow_down:

Thanks for the help I