<div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#351c75">> Libvirt can't tell you what the guest is running.  For that, you need<br>> higher-level software, such as libguestfs.  virt-manager is an example<br>

</font><div class="gmail_extra"><font style="background-color:rgb(255,255,255)" color="#351c75">> of a program that uses libguestfs to probe which OS is running in the guest.</font></div><div><br></div>Awesome! you guys are of so much help. And sorry for top posting.<div>

<br></div><div>Ran into something else today, why are calls like<div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>a) virConnectListAllNetworks(...)</div></div><div><div>b) virConnectListAllStoragePools(...)</div>

</div></blockquote><div><div><br></div><div>return "not supported by connection driver". I am running ESX with libvirt-1.2.1. But I can use </div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">

<div><div>a) virConnectListStoragePools(...)</div></div><div><div>b) virConnectListNetworks(...)</div></div></blockquote><div><div><br></div><div>without any problems. Do you guys think I have libvirt configured incorrectly at my end?</div>

<div><br></div><div>Thanks,</div><div>Vik.<br><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 6:03 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On 02/24/2014 05:09 PM, vikhyath reddy wrote:<br>
<br>
[Please don't top-post on technical lists]<br>
<div class=""><br>
> Thanks for the replies guys, libvirt-glib sure sounds interesting. On the<br>
> other hand I was able to leave libvirt.so alone and write my own wrapper<br>
> (based on libvirt/examples) for easy calls from NodeJS. I can get to list<br>
> VMs, their config etc. from node but not able to list the operating system<br>
> running on the VM (ubuntu, win7, etc.). I can get the os_type though (hvm<br>
> in my case) but that does not tell me whether it is running a windows or a<br>
> linux distro.<br>
<br>
</div>Libvirt can't tell you what the guest is running.  For that, you need<br>
higher-level software, such as libguestfs.  virt-manager is an example<br>
of a program that uses libguestfs to probe which OS is running in the guest.<br>
<span class=""><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div></div></div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div class="gmail_extra"><br></div></div></div></div></blockquote></div>