django-vsphere is an app for Django to have a centralized dashboard for all your VMWare vSphere ESXi.
- django-tastypie
- python-mimeparse (un-resolved tastypie dependencie)
Add "vsphere" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'vsphere', )
Include the polls URLconf in your project urls.py like this:
url(r'^', include('vsphere.urls')),
Run syncdb to create the vsphere models:
python manage.py syncdb
Start the development server and visit http://127.0.0.1:8000/admin/
python manage.py runserver
Visit http://127.0.0.1:8000/ to display the dashboard.
Visit the guest API at http://127.0.0.1:8000/api/guest/?name=vm1
You can find an example script to import an hypervisor in "tools".
run import
$ pip install pysphere
$ python import_hypervisor.py -H hv.example.com -u user1 -d DatacenterX -p mypassword
The import script can use password stored in ~/.hypervisor.ini