LoginSignup
6
5

More than 5 years have passed since last update.

VirtualBoxをAPIから操作

Posted at

VirtualBoxはコマンドラインから操作が出来たりする訳ですが、
http://qiita.com/zakkied/items/abf43c69fae92e4c5207
もうちょっと色々出来ないかということで、APIを探してみた。

2つとも試したがうまく行かなかった、VirtualBoxのバージョンが違うから?

これは出来た。

$ npm install virtualbox

//マシン一覧を出力
var virtualbox = require('virtualbox');
virtualbox.list(function (machines, error) {
  console.log(machines);
  if (error) throw error;
  // Act on machines
});

とりあえず、ここまで。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5