Proxmox VE plugin

The plugin asks Proxmox which VMs and containers exist and which host they run on, and matches them to the devices Netlens found (by MAC address, then by IP). The result:

  • the map shows a host-of link from every guest to its host (replacing the heuristic guess),
  • a guest’s device page shows a Virtualization box (“Container (LXC) 105, name, on node X”) with a link to the host,
  • the host’s device page lists all its guests, including stopped ones and guests that are not on the scanned network.

Netlens only reads from Proxmox; it never changes anything. To set it up:

  1. Recommended: create a read-only API token in Proxmox: Datacenter → Permissions → API Tokens → Add (user for example root@pam, token ID netlens, untick “Privilege Separation” or give the token the role below). Then Datacenter → Permissions → Add → API Token Permission: path /, the token, role PVEAuditor. A username and password work too, but a token limits what a leaked credential can do.
  2. In Netlens open Settings → Proxmox VE, enter the URL (https://<proxmox-host>:8006), the token ID (user@realm!tokenname) and its secret, or a username and password.
  3. Proxmox uses a self-signed certificate by default: untick Verify TLS certificate, or install a trusted certificate on Proxmox and keep it ticked.
  4. Test connection, then tick Enable this plugin and Save.

Netlens must be able to see the guests’ MAC addresses, so run it on the same network (host networking, as in the compose file). Guests whose MAC never shows up in a scan are listed on the host page as “not seen on the network”.