Proxmox2NetBox
NetBox plugin for synchronizing Proxmox inventory data into NetBox (NetBox v4).
[!WARNING] We are aware that there are issues in the codebase. This is a hobby project maintained in spare time. Fixes and improvements are implemented when time allows. Do not deploy in production without proper validation.
Compatibility
- NetBox:
>=4.2.0, <5.0.0 - Python:
>=3.11 - Plugin package version in this repository:
1.2.12
What Works (Current Runtime)
Out-of-the-box sync requires only a configured Proxmox Endpoint in NetBox.
Implemented sync flows:
- Proxmox nodes → NetBox
dcim.Device - Proxmox QEMU/LXC VMs → NetBox
virtualization.VirtualMachine - VM interfaces from Proxmox config → NetBox
virtualization.VMInterface, with per-interface IP assignment - QEMU guest-agent IPs as fallback when static config lacks IPs (MAC-based interface matching)
- Endpoint-level Site and VRF mapping — devices and IPs are placed in the correct NetBox Site/VRF
- Endpoint-level Node Device Type — select a real NetBox DeviceType (e.g. Dell PowerEdge R740) for synced nodes; falls back to generic Proxmox Node type
- Per-node Device Type Mapping — override device type per individual node name via Node Type Mappings UI (
Plugins → Proxmox2NetBox → Configuration → Node Type Mappings) - Per-endpoint sync controls — enable/disable each endpoint and choose nodes, QEMU VMs, LXC containers, VM interfaces, VM IPs, guest-agent IP fallback, virtual disks, and stale-object pruning
- Endpoint metadata refresh (
mode,version,repoid, cluster name) - Sync process tracking in
SyncProcess - Stale IP cleanup — plugin-managed IPs removed from Proxmox config are removed from NetBox interfaces when endpoint pruning is enabled
Runtime Architecture (Source of Truth)
Core sync logic is consolidated in:
proxmox2netbox/services/proxmox_sync.py
Backward-compatible import shim (kept intentionally):
proxmox2netbox/proxmox_sync.py
Primary runtime entrypoints:
- UI endpoints:
proxmox2netbox/views/sync.py - Connection/status badge:
proxmox2netbox/views/keepalive_status.py - Proxmox card data:
proxmox2netbox/views/cards.py - Job wrapper:
proxmox2netbox/jobs.py(Proxmox2NetBoxSyncJob)
Installation (NetBox v4)
1. Install plugin package
Inside NetBox environment:
pip install proxmox2netbox
If you run netbox-docker, also pin the package in your Docker requirements file so it survives rebuilds/redeploys:
# local_requirements.txt
proxmox2netbox==1.2.12
2. Enable plugin
In NetBox configuration.py:
PLUGINS = ["proxmox2netbox"]
3. Run migrations/static
python manage.py migrate
python manage.py collectstatic --no-input
Configure and Run Sync
Configure Proxmox Endpoint
In NetBox UI:
Plugins -> Proxmox2NetBox -> Endpoints -> Proxmox Endpoints- Create at least one endpoint with:
username- either
passwordor (token_name+token_value) - host via
domainand/orip_address - optional NetBox Site/VRF/Node Device Type mapping
- optional sync controls for what this endpoint may create, update, and prune
Per-endpoint sync controls default to the previous behavior: endpoint enabled, nodes enabled, QEMU and LXC VM sync enabled, VM interfaces/IPs/disks enabled, guest-agent IP fallback enabled, and stale plugin-managed interfaces/IPs/disks pruned when Proxmox no longer reports them.
NetBox Permissions
For regular NetBox users, use object permissions:
viewonproxmox2netbox.ProxmoxEndpointto open the plugin home page and endpoint status cardschangeonproxmox2netbox.ProxmoxEndpointto run manual sync actions or change the sync scheduleviewonproxmox2netbox.SyncProcessto view sync historyview/add/change/deleteonproxmox2netbox.ProxmoxNodeTypeMappingto manage per-node device type mappings
Run sync from UI
Plugins -> Proxmox2NetBox -> Full Update- Available actions:
Sync NodesSync Virtual MachinesFull Update Sync
Run sync as NetBox Job (wrapper)
jobs.py provides a queue-compatible wrapper around the existing service layer.
Example from NetBox shell:
from proxmox2netbox.jobs import Proxmox2NetBoxSyncJob
from proxmox2netbox.choices import SyncTypeChoices
# Full sync
Proxmox2NetBoxSyncJob.enqueue(sync_type=SyncTypeChoices.ALL)
# Devices only
Proxmox2NetBoxSyncJob.enqueue(sync_type=SyncTypeChoices.DEVICES)
# Virtual machines only
Proxmox2NetBoxSyncJob.enqueue(sync_type=SyncTypeChoices.VIRTUAL_MACHINES)
Behavior note:
- Job class is an orchestrator only.
- Sync mapping, payloads, and upsert logic remain in
services/proxmox_sync.py.
Development & Validation
Static checks
ruff check proxmox2netbox --select F401,F403,F811,F821,F841,E712
python -m compileall -q proxmox2netbox
Django checks (inside NetBox runtime)
python manage.py check
python manage.py makemigrations --check --dry-run
Tests
The repository includes pytest coverage for the sync services, parsers, API views, and UI views.
pytest
Publish to PyPI
Prerequisites
- You must have access to the
proxmox2netboxproject on PyPI. - If the name is unavailable for your account, change
project.nameinpyproject.tomlto a unique name before publishing. - Configure a matching Trusted Publisher in PyPI for this GitHub repository/workflow:
- Owner:
patricklind - Repository:
Proxmox2Netbox - Workflow file:
.github/workflows/publish-python-package.yml - Environment name:
pypi
Local preflight
python -m build
twine check dist/*
Publish via GitHub Actions
- Bump
versioninpyproject.tomland plugin config version in source. - Create and push a tag:
git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin vX.Y.Z
release.ymlcreates the GitHub Release from the tag after lint/tests pass.publish-python-package.ymlpublishes to PyPI using GitHub OIDC Trusted Publisher.- If no publish run appears after the release is created, run Publish Python Package manually from Actions for the same tag. GitHub releases created by Actions with
GITHUB_TOKENdo not always emit a follow-up event that starts another workflow. - After publish:
pip install proxmox2netbox
Repository Layout (Relevant Runtime Files)
proxmox2netbox/
__init__.py
jobs.py
choices.py
filtersets.py
navigation.py
models/
__init__.py # ProxmoxEndpoint, ProxmoxNodeTypeMapping, SyncProcess
services/
proxmox_sync.py # Core sync logic (nodes, VMs, interfaces, IPs)
proxmox_sync.py # Backward-compat import shim
views/
__init__.py
sync.py
keepalive_status.py
cards.py
node_type_mapping.py # CRUD views for ProxmoxNodeTypeMapping
forms/
__init__.py
proxmox.py # Endpoint + NodeTypeMapping forms
tables/
__init__.py
api/
serializers.py # Endpoint, node type mapping, and sync process serializers
views.py # NetBox REST API viewsets
migrations/
0001_initial.py … 0020_endpoint_sync_controls.py
templates/
proxmox2netbox/
home.html
proxmoxendpoint.html
proxmoxnodetypemapping.html
syncprocess.html
inc/
urls.py
Scope
This repository ships a NetBox plugin runtime only.
Legacy FastAPI/backend-service components are removed from runtime, docs, and packaging scope.
Wiki
- GitHub Wiki URL:
https://github.com/patricklind/Proxmox2Netbox/wiki - Wiki source files in this repository:
wiki/
Metadata
Release files for proxmox2netbox 1.2.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| proxmox2netbox-1.2.12.tar.gz | 3.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| proxmox2netbox-1.2.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 MB
Release files / proxmox2netbox-1.2.12.tar.gz
| Download URL | proxmox2netbox-1.2.12.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19507dcc8a7db88ce9e12ea9e361a7a58c363c902a77bf32ab8af83f116130aa
|
|
BLAKE2b-256 checksum How to use checksums |
07e95a2fe59cf40a18e144734496ac33ccb7836cc3d1ebd473fcbfd68c41dcae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logRelease files / proxmox2netbox-1.2.12-py3-none-any.whl
| Download URL | proxmox2netbox-1.2.12-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76495f42ffcf9e235e75f363aeb7e7b740afc7131c9821ab563e751710478b18
|
|
BLAKE2b-256 checksum How to use checksums |
fe91a7d1e8cd8593b2d262ee55aad51aaac80d52d2e1b475e7a2b3f8a94cb1d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency log