Re: Question about building libvirt.so

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the replies guys, libvirt-glib sure sounds interesting. On the other hand I was able to leave libvirt.so alone and write my own wrapper (based on libvirt/examples) for easy calls from NodeJS. I can get to list VMs, their config etc. from node but not able to list the operating system running on the VM (ubuntu, win7, etc.). I can get the os_type though (hvm in my case) but that does not tell me whether it is running a windows or a linux distro.



On Mon, Feb 24, 2014 at 5:00 AM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
Hey,

On Fri, Feb 21, 2014 at 07:30:08AM -0800, Vikhyath Reddy wrote:
> Thanks for the reply Cedric,
>
> wrappers is a dir that I made similar to examples which wraps the libvirt
> c code. The reason why I am doing this is to simplify the usage of
> virConnectOpenAuth - it's arguments and callbacks from _javascript_. Using
> ffi, I am unable to create the right callbacks and have it pass the
> correct arguments.

Depending on what parts of libvirt API you need to use from _javascript_,
libvirt-glib may be an option as it already makes some parts of libvirt API
accessible from _javascript_, see
http://libvirt.org/git/?p=libvirt-glib.git;a=blob;f=examples/conn-test.js;h=7f9784b8fc55a2be6c7596cfd365d4273d057a2e;hb=HEAD
for example. I don't know if this would be usable from nodejs?
If this is a good fit for what you need, patches extending the libvirt API
wrapped by libvirt-glib are very welcome ;)

Christophe

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]