Run a ProxyKite box as a Proxmox VM
You do not need a dedicated computer for your dongles. A small virtual machine on a Proxmox VE host works just as well: Proxmox hands the USB stick to the VM, and the VM runs the ProxyKite agent like any other box.
This page is the exact procedure we use on our own Proxmox host (Proxmox VE 8.3, Huawei E3372 HiLink stick, Debian 13 guest). Every command below was run during that setup; the timings at the end are what we measured.
What you need
- A Proxmox VE host (7.x or 8.x) with a free USB 2.0/3.0 port.
- One or more supported 4G sticks with a SIM that has data: Huawei E3372 (HiLink firmware) or
ZTE MF833T (agent 1.10.0 or newer). The commands below show the Huawei stick; for the ZTE look for
19d2:1405instead of12d1:14dc(lsusb | grep -i zte). - A ProxyKite licence key (
XXXX-XXXX-XXXX-XXXX) from the panel under Nodes. - Root shell on the Proxmox host (
ssh root@<host>or the web shell).
One VM can hold several sticks. Give each stick its own USB port on the host and pass each port through; the agent tells them apart by IMEI, so the order does not matter.
With a cloud-init VM, a second E3372 stick can take your VM's own network card name at boot and the box drops off the panel. Do the fix below before you plug in the second stick.
1. Plug the stick in and find its USB port
Plug the stick directly into the host (a powered hub is fine; an unpowered hub shared by several sticks is not).
After ~10 s the host sees it. HiLink sticks first show up as a CD-ROM (12d1:1f01) and switch to a network
card (12d1:14dc) by themselves; the host's usb_modeswitch package does that flip, so install it if missing:
Note the bus and port: here bus 1, port 7, so the port name is 1-7. You can also read it from sysfs:
Pass the stick through by port, not by its vendor/product ID. A port stays the same across reboots and
across the CD-ROM → network-card flip; an ID-based entry (host=12d1:14dc) grabs any HiLink stick that
appears, which is exactly what you do not want with more than one VM or more than one stick.
If an older VM on the same host has a usb0: host=12d1:14dc line in its config, it takes every HiLink stick
that is plugged in. Check with grep -l usb /etc/pve/qemu-server/*.conf and remove the entry from that VM
(qm set <vmid> -delete usb0). Removing a USB device from a running VM only takes effect on its next
stop/start unless the VM uses the q35 machine type.
2. Create the VM
Any Debian 12/13 or Ubuntu 22.04/24.04 VM works. The agent is a single static binary and needs very little:
Cloud image example (template 8003 is a Debian 13 generic cloud image with cloud-init; substitute your own):
The stick appears inside the VM as a USB network card (cdc_ether). Debian's genericcloud images ship the
linux-image-cloud kernel, which leaves out most USB drivers. Use the generic image or a normal install,
and check inside the VM with modinfo cdc_ether; it must print the module, not "not found".
3. Give the VM the USB port and start it
In the web UI this is VM → Hardware → Add → USB Device → Use USB Port. Do this while the VM is stopped;
USB hot-plug into a running VM is only supported for q35 machines.
Check that the VM got it:
4. Inside the VM: install the agent
Log in (ssh root@192.168.1.50) and confirm the stick is there:
The interface is DOWN with no address. That is normal, the agent configures it. Now run the one-line
installer from the panel (Nodes → Add a box), as root:
Then:
The stick needs about 30 s after the agent starts: the agent gives the interface a temporary address, reads
the stick's identity, gets a DHCP lease from it and registers it with the panel. Until then the journal shows
hilink probe: unreachable: the interface has no IPv4 address yet. That is expected, not an error.
Watch it with journalctl -fu hostyourproxy.
The proxy now appears in the panel under Proxies with its host, port, login and rotation link.
5. Check it
From any machine, with the login from the panel:
Then press Rotate on the proxy page (or call the rotation link) and run the same curl again: the IP changes. Reboot box on the node page reboots the VM from the panel; the agent and the stick come back on their own.
Two or more Huawei E3372 sticks
Every Huawei E3372 has the same MAC address. With one stick, it gets a name like enx0c5b8f279a64. With two or
more, only one stick can get that name; the others keep a kernel name such as eth0 or eth1.
On a Proxmox VM set up with cloud-init, the network config (netplan) renames the VM's own virtio network card to
eth0 at boot. If a stick already holds eth0, the rename fails, the VM's LAN card gets no IP address and the
box drops off the panel until you fix it from the Proxmox console.
The fix: give the VM's LAN card a name that is not ethN (we use lan0), matched by its MAC address, and stop
cloud-init from rewriting the network config at boot. Run this inside the VM as root, from the Proxmox console
(VM → Console) rather than SSH, because the network restarts.
1. Note the MAC address of the VM's own network card (the virtio card, not an enx… stick):
2. Turn off cloud-init's network config, so it does not put the eth0 rename back at the next boot:
3. Replace cloud-init's netplan file with your own. Put in your card's MAC and your own address and gateway
(or dhcp4: true instead of the addresses and routes lines):
4. After the reboot, check that the card is called lan0, has its address and the box is online:
Now shut the VM down, pass the second stick's USB port through (step 3)
and start it again. The sticks can take any ethN or enx… name they like; the agent finds them by IMEI.
Notes and troubleshooting
- The stick's USB path inside the VM changes after a reboot (
usb:2-1one boot,usb:1-1the next). This is QEMU renumbering its virtual hubs; the agent re-identifies the stick by IMEI and keeps its proxy settings. - The very first request after the stick comes up (or after a reboot) answered 403. The proxy shows
online as soon as the stick answers, a few seconds before the SIM's data session is up. In that window the
stick's own DNS answers every name with its own address (
192.168.8.1), which the agent refuses as a private destination, hence a 403 for that one request. Every request after it succeeded. Give a new or rebooted box ~10 s after the proxy appears before you point traffic at it. modinfo cdc_ethersays "not found": you are on a cloud kernel.apt-get install linux-image-amd64and reboot, or rebuild the VM from a generic image.- No proxy appears,
ip -br linkshows noenx…: the VM did not get the stick. On the host runqm monitor <vmid> <<< "info usb"; if the stick is missing, another VM holds it (see the warning in step 1) or the port name is wrong (lsusb -tagain). - The stick shows as
12d1:1f01: it is still in CD-ROM mode.usb_modeswitch -v 12d1 -p 1f01 -Jinside the VM, or installusb-modeswitchthere (it then flips every future plug automatically). - Memory. The agent idles at ~30 MB. If your host is oversubscribed, keep the VM's minimum (balloon) at 512 MB; it ran fine for us at 667 MB usable.
- Backups. Back the VM up like any other; the licence is bound to this box. If you rebuild the VM, click Release machine on the node page first, then run the installer again on the new VM.