Skip to main content

netbox-opennebula-sync

CI PyPI License NetBox

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 netbox-opennebula-sync

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
  1. Open Plugins → OpenNebula → Settings
  2. Set OpenNebula endpoint, username and token
  3. Select Site and Cluster (existing NetBox objects)
  4. 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

License

Apache License 2.0 — see LICENSE.

Metadata

Release files for netbox-opennebula-sync 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-opennebula-sync 0.3.3
File Size Uploaded Provenance Actions
netbox_opennebula_sync-0.3.3.tar.gz 40.6 kB Without provenance Details for netbox_opennebula_sync-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netbox-opennebula-sync 0.3.3
File Interpreter ABI Platform Actions
netbox_opennebula_sync-0.3.3-py3-none-any.whl Python 3 none any Details for netbox_opennebula_sync-0.3.3-py3-none-any.whl

Total release size: 85.9 kB

Release files / netbox_opennebula_sync-0.3.3.tar.gz

Download URL netbox_opennebula_sync-0.3.3.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c5e1b756bc9c658b81ad44a6017d22d474e0d7cf4ce8d1e195f60b5d0c02b644
BLAKE2b-256 checksum
How to use checksums
ff2d8868a98e73df45ac7cbc3baa1b8ab661550406372db8df38be1e533995bc
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.3-py3-none-any.whl

Download URL netbox_opennebula_sync-0.3.3-py3-none-any.whl
Size 45.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03614879e98eaaacd30f974ca95a0d9a033bde3ae19b1a182328a93a877d9fde
BLAKE2b-256 checksum
How to use checksums
0ce6db65ba989f16330dbce54f423514c39ce275969d57011a8e88e3a6b5f95a
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.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page