[go: up one dir, main page]

Skip to content

xandradx/cockpit-ovirt

 
 

Repository files navigation

Cockpit-oVirt plugin

Build Status

Virtual Machine Management plugin for Cockpit based on oVirt.

Features in recent release:

  • list of VMs running on a host

  • single VM detail

  • VM monitoring (statistics and usage charts)

  • basic VM operations

  • edit of vdsm.conf

  • plugin's components are embeddable to other tools/dashboard, like VM detail

  • With optional Engine login available

    • list of VMs administered by the oVirt Engine in a cluster
    • VM details

The plugin requires Virtual Desktop Server Manager VDSM, part of the oVirt project.

With optional oVirt Engine installed, the plugin allows basic monitoring/management of VMs administered by the engine beyond the scope of the single host running the cockpit.

About Cockpit

Cockpit is easy-to-use sysadmin tool with web-based UI.

About oVirt

oVirt manages Virtual Machines (VMs) in a datacenter/cluster. Scales easily from tens to tens of thousands VMs running on multiple KVM hypervisor hosts.

The oVirt deals with

  • VM definition, monitoring and tuning
  • (automatic|manual) migration
  • storage or network management
  • SLA
  • security
  • easy to use web UI
  • and more (see website)

How to Install

Prerequisites

Install From Sources

Build

For build you will need Node.js v4 (LTS). If your OS repositories don't contain required version you can always use Node Version Manager nvm to install and manage multiple Node.js versions side by side.

Run npm i to install dependencies.

Use npm t to run tests and lint the code.

Use npm run build to create production build.

The last command will generate /dist directory containing all files that are needed to be copied to your cockpit installation.

Developer's note: you can use npm run dev to start a background build service that will incrementally recompile the code on the fly and update the contents of /dist directory. Symbolically linking the /dist directory into proper place (see below) one can achieve automatic code updates in running cockpit instance.

Deploy Plugin

  • after build, copy contents of /dist to /root/.local/share/cockpit/ovirt/

  • Alternative:

    • copy contents of /dist to /usr/share/cockpit/ovirt/
    • change VDSM variable in ovirt.js to new location of vdsm/vdsm shell script
  • Troubleshooting tips:

    • Installation instructions stated above should lead to successful setup on Centos 7. If not, following tips might help:

      • If VDSM is properly configured, following command should return without any error:

        # /root/.local/share/cockpit/ovirt/vdsm/vdsm getAllVmStats

    • As the plugin is in early development state, PLEASE let author know about all issues you encounter during installation/use, it will help in making the product better.

Install From RPM

RPM is recently built for Fedora 23 and Centos 7 and stored within oVirt's ovirt-master-snapshot-static repo.

Verify

  • Follow:
    • https://YOUR_HOST:9090/ovirt/ovirt
    • or https://YOUR_HOST:9090/ovirt/ovirt#/ping

TODO:

Please note, the plugin is in early development state.

See the issue tracker for list of planed changes.

More Info

About

Cockpit plugin for oVirt

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 62.5%
  • HTML 21.3%
  • Python 12.0%
  • Shell 4.2%