Destroying a Domain
ssbanerje opened this issue · 5 comments
Hi,
I am trying to destroy a domain using the following code
var libvirt = require('node-libvirt');
var hypervisor = new libvirt.Hypervisor('vbox:///session');
var domain = hypervisor.lookupDomainByName('ubuntu1204');
console.log(domain.start());
setTimeout(console.log(domain.stop()), 5000);
setTimeout(console.log(domain.start()), 5000);
But it seems to be giving me this error
true
true
libvir: Domain error : invalid domain pointer in virDomainCreate
/Users/Subho/Documents/Workshop/Megh/test.js:12
setTimeout(console.log(domain.start()), 5000);
^
[object Error]
What is the problem here?
Cheers,
Subho
Hey @subszero, even though, node-libvirt bindings are pretty complete, they haven't been tested properly and need to be updated to recent nodejs versions. Also, issue #9 is a big deal for production systems since it will block the main nodejs thread. At this point, I don't really know when I'm going to have spare time to give more attention to this module :/. Sorry about that and contributions are very welcome.
I'm planning on contributing :)
awesome, pull requests are welcome @PreetamJinka
The existing issues are very broad, I'd say that for now they are the more urgent changes that need to happen.
Camilo Aguilar
Software Engineer
On Friday, August 10, 2012 at 12:45 PM, Preetam Jinka wrote:
@c4milo (https://github.com/c4milo) is there an official TODO list? Looks like there just needs to be testing (switching to Mocha) and the async stuff (#9 (#9)).
—
Reply to this email directly or view it on GitHub (#14 (comment)).