New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodevirt

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodevirt

Simple libvirt module for Node.js

2.0.1
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

nodevirt

FAQs

Package last updated on 11 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts