{% extends 'base/layout.html' %} {% load helpers %} {% load vcenter_tags %} {% block title %}vCenter Import Dashboard{% endblock %} {% block tabs %}
{% endblock %} {% block content %} {% if not servers %}
PLUGINS_CONFIG["netbox_vcenter"]["vcenter_servers"] is empty or missing, so there is
nothing to show in the server dropdown or the Cache Status table below.
Things to check:
configuration.py defines vcenter_servers as a list under the
"netbox_vcenter" key of PLUGINS_CONFIG (not "netbox-vcenter-server"
or another name).plugins.py), confirm
configuration.py actually imports PLUGINS_CONFIG from it — a common Docker
setup mistake is importing PLUGINS but forgetting PLUGINS_CONFIG, which loads
the plugin with no settings.
You can verify what NetBox actually loaded with:
manage.py shell -c "from django.conf import settings; print(settings.PLUGINS_CONFIG.get('netbox_vcenter'))"
| vCenter Server | VMs | Last Sync | Actions |
|---|---|---|---|
| {{ server }} | {% if data %} {{ data.count }} VMs {% else %} Not synced {% endif %} | {% if data.timestamp %} {{ data.timestamp|slice:":19" }} {% else %} Never {% endif %} | {% if data %} Clear Cache {% endif %} |
Connecting to vCenter and fetching VMs...
This may take a moment if MFA is required.
| Name | {% if selected_server == 'all' %}Server | {% endif %}Power | IP Address | vCPUs | Memory | Disk | Cluster | Datacenter | NetBox | |
|---|---|---|---|---|---|---|---|---|---|---|
|
{{ vm.name }}
{% if vm.guest_os %}
{{ vm.guest_os }} {% endif %} |
{% if selected_server == 'all' %}
{{ vm.source_server }} | {% endif %}{% if vm.power_state == 'on' %} ON {% else %} OFF {% endif %} |
{% if vm.primary_ip %}
{{ vm.primary_ip }}
{% else %}
-
{% endif %}
|
{{ vm.vcpus|default:'-' }} | {% if vm.memory_mb %} {{ vm.memory_mb|floatformat:0 }} MB {% else %} - {% endif %} | {% if vm.disk_mb %} {{ vm.disk_mb }} MB {% else %} - {% endif %} | {{ vm.cluster|default:'-' }} | {{ vm.datacenter|default:'-' }} | {% if vm.exists_in_netbox %} Exists {% else %} Missing {% endif %} |