Skip to content

mareklibra/cockpit-ovirt

Repository files navigation

Project moved

This project has been moved to oVirt gerrit: https://gerrit.ovirt.org/#/q/project:cockpit-ovirt.

This repository is no more used for development.

This project became base for ongoing development around Cockpit and Virtual Machines, some of the interesting follow-ups:

  • cockpit-ovirt - View of oVirt host absed on VDSM. Among the others, part of the oVirt NextGen Node.
  • Machines in upstream Cockpit based on Libvirt, added by 4434 PR followed by multiple other patches
  • External Providers for 'machines' plugin in Cockpit to allow integration of upstream code with other providers, like VDSM, ManageIQ or other.

Cockpit-oVirt plugin

Build Status

Virtual Machine Management plugin for Cockpit based on oVirt (VDSM).

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