0.0.1 • Published 7 years ago

simple-libvirt v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Simple-libvirt

This package is a simple Libvirt NodeJS wrapper.

Installation

Dependencies

  • Libvirt
  • NodeJS v0.12.x or higher

Package installation

$ npm install --save simple-libvirt

Example of use

var simple_libvirt = require('simple-libvirt');

var hyperv = simple_libvirt.Hypervisor();
hyperv.connect('test:///default', function(err) {
    if (err)
        console.log('Error: ' + err);
    else
        console.log('Connection succeeded!');
});

API status

Work in progress...

CommandMethodStatus
Connect to the virt-manager serverconnect
Disconnect the current connectiondisconnect
Start a domain by his namestartByName
Shutdown a domain by his nameshutdownByName
Delete a domain by his namedeleteByName
Get all domains infosgetAllDomains
Get domain info by his namegetDomainByName

References

The wrappered API propose the very simple libvirt calls, please see: