2.0.1 • Published 9 years ago

nodevirt v2.0.1

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

NodeVirt

NPM Version NPM Downloads Travis CI

Simple libvirt module for Node.js

ALERT

This version is not stable for production environment. The code can be changed substantially during the development phases, the documentation is not yet present.

Features

  • Hypervisor
    • Connect - virConnectOpen
    • Disconnect - virConnectClose
    • GetHostname - virConnectGetHostname
    • GetMaxVcpus - virConnectGetMaxVcpus
    • GetSysInfo - virConnectGetSysinfo
    • LookupByName - virDomainLookupByName
    • LookupByUUID - virDomainLookupByUUID
  • Domain
    • Start - virDomainCreate
    • Stop - virDomainDestroy
    • Resume - virDomainResume
    • Reboot - virDomainReboot
    • Reset - virDomainReset
    • Shutdown - virDomainShutdown
    • Undefine - virDomainUndefine
    • GetName - virDomainGetName
    • SetVcpus - virDomainSetVcpus
    • SetMemory - virDomainSetMemory

Example

var nodevirt = require('nodevirt'),
   Hypervisor = nodevirt.Hypervisor;

var hyper = new Hypervisor('qemu:///system');
hyper.connect();

var domain = hyper.lookupByName('nodevirt-testing-instance');
console.log(domain.getName());

hyper.disconnect();

Build

Install Tools:

$ sudo apt-get install make openssl libssl-dev g++ gcc
$ sudo npm install -g node-gyp

Install Libvirt & KVM:

$ sudo apt-get install libvirt-dev qemu-kvm libvirt-bin bridge-utils

Install NodeVirt:

$ npm install nodevirt

To build form source run:

$ npm install
$ node-gyp rebuild
2.0.1

9 years ago

2.0.0

10 years ago

1.2.0

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago