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

Catalog / certification

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.2

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.2
File Size Uploaded Provenance Actions
netbox_opennebula_sync-0.3.2.tar.gz 40.8 kB Without provenance Details for netbox_opennebula_sync-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 86.3 kB

Release files / netbox_opennebula_sync-0.3.2.tar.gz

Download URL netbox_opennebula_sync-0.3.2.tar.gz
Size 40.8 kB
Tags Source
SHA-256 checksum
How to use checksums
337722822f02fa97c02b9153168557420d7213bc8b983fa988f0892f37d34530
BLAKE2b-256 checksum
How to use checksums
ef51452cbbf69a8e4ff62ece9e2807badefe3b5fd71e3282469be9f5fb88aec8
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.2-py3-none-any.whl

Download URL netbox_opennebula_sync-0.3.2-py3-none-any.whl
Size 45.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfde427fd23aa3515a69f658da240e23b2a9c49ef92e01db651fd64f90723576
BLAKE2b-256 checksum
How to use checksums
6291212e5417a3bea73f0635cf2022e4f262757be95e143b00715f6fbc1a86fa
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.2

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