netbox-opennebula-sync
NetBox Community plugin that discovers OpenNebula zones, hypervisors and VMs and reconciles them into NetBox Virtualization, DCIM and IPAM — using the Django ORM in-process (no NetBox API token required for the plugin path).
Ideal for operators who already run OpenNebula and want NetBox as the single source of truth for guests, interfaces, MACs and IPs.
Features
| Area | What you get |
|---|---|
| UI | Plugins → OpenNebula → Live Status (ONE probe) + Settings |
| Sync | RQ job: on-demand Sync now + configurable interval (minutes) |
| Mapping | Site & Cluster picked from existing NetBox objects (dropdowns) |
| Inventory | Cluster type/group, hypervisors as devices, VMs, VM interfaces, virtual disks |
| IPAM | MAC addresses, IP assignments, optional primary IPv4, VLAN hints |
| SNMP | Optional SNMPv2c guest enrichment (hostname / interfaces) |
| Safety | Dry-run, orphan policy (mark_offline / delete / ignore), OpenNebula custom fields |
| CLI | Standalone YAML+HTTP client for remote NetBox; manage.py opennebula_sync for ORM |
Compatible with NetBox 4.2+ (tested on 4.7). License: Apache-2.0.
Screenshots
Add screenshots of Live Status and Settings after first public release (optional).
Requirements
- NetBox 4.2 or newer with netbox-rq running
- OpenNebula XML-RPC endpoint (user with inventory read rights)
- Python 3.11+
Installation
/opt/netbox/venv/bin/pip install git+https://github.com/mael-chouteau/netbox-opennebula-sync.git
In configuration.py:
PLUGINS = [
'netbox_opennebula_sync',
]
sudo -u netbox /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py migrate netbox_opennebula_sync
sudo systemctl restart netbox netbox-rq
- Open Plugins → OpenNebula → Settings
- Set OpenNebula endpoint, username and token
- Select Site and Cluster (existing NetBox objects)
- Save, then Live Status → Sync now
The plugin writes through the Django ORM. You do not configure a NetBox URL or API token in the UI.
Configuration reference
| Setting | Description |
|---|---|
| OpenNebula endpoint / user / token | XML-RPC credentials |
| Sync interval | Minutes between automatic RQ runs |
| Orphan policy | What to do with NetBox VMs tagged opennebula that disappeared from ONE |
| Dry run | Log intended changes without writing |
| Site / Cluster | Target NetBox objects for synced inventory |
| DNS suffix | Appended to short guest names when needed |
| Create missing hosts | Create hypervisor devices if absent |
| SNMP | Community, ignore list, interface exclude regex |
Custom fields created on first sync: opennebula_zone_id, opennebula_cluster_id, opennebula_host_id, opennebula_vm_id, opennebula_vm_uuid, opennebula_template_id.
Operations
# Same path as the RQ job (ORM)
sudo -u netbox /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py opennebula_sync
sudo -u netbox /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py opennebula_sync --dry-run
Standalone CLI (remote NetBox over HTTP)
pip install .
cp config.example.yaml config.yaml # fill NETBOX_* and ONE_*
netbox-opennebula-sync -c config.yaml bootstrap
netbox-opennebula-sync -c config.yaml sync --dry-run
Development
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
ruff check src tests
pytest -q
Catalog / certification
- Catalog blurb:
docs/CATALOG_SUBMISSION.md - Plugin Certification application (email
plugincertification@netboxlabs.com):docs/CERTIFICATION_SUBMISSION.md
Certification requires a published PyPI package plus GitHub, PyPI and NetDev Slack maintainer IDs.
License
Apache License 2.0 — see LICENSE.
Metadata
Release files for netbox-opennebula-sync 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netbox_opennebula_sync-0.3.0.tar.gz | 40.2 kB | Without provenance | Details for netbox_opennebula_sync-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netbox_opennebula_sync-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for netbox_opennebula_sync-0.3.0-py3-none-any.whl |
Total release size: 85.2 kB
Release files / netbox_opennebula_sync-0.3.0.tar.gz
| Download URL | netbox_opennebula_sync-0.3.0.tar.gz |
|---|---|
| Size | 40.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3ffc50517e05357cbd8921ca8a55b05f47623cfd9895b66775f61c3379d66d8
|
|
BLAKE2b-256 checksum How to use checksums |
731785091b05328b61fb79eb8855cb0f6abeb4c1f3827c7b53f116ef0c896964
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / netbox_opennebula_sync-0.3.0-py3-none-any.whl
| Download URL | netbox_opennebula_sync-0.3.0-py3-none-any.whl |
|---|---|
| Size | 45.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4f605efb6d37ce00787108d5034859c1ab73c6fcd0c5239acb51d3b48d1d1f3
|
|
BLAKE2b-256 checksum How to use checksums |
8833eb2ff939d5bb18db8fec38d098a5761253219fce6d21f274d423886478c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for netbox-opennebula-sync 0.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.