[libvirt-users] Get data of Physical Machine

Vinicius Gonçalves Braga vinicius.braga at lupa.inf.ufg.br
Tue Oct 23 13:37:03 UTC 2012


What kind of data de NodeInfo represents? With my researches I thought that
it should return the data of the physical machine. But in my tests, when I
run with diferents URLs in Connect creation the values of nodeInfo
variables are differents. For example: it's the same machine, but if I run
with xen:/// the memory is X and if I run with qemu:///session the memory
is Y.

Connect conn = new Connect("xen:///", false);
NodeInfo nodeInfo = conn.nodeInfo();

assertEquals("nodeInfo.model", "i686", nodeInfo.model);
assertEquals("nodeInfo.memory", 3145728, nodeInfo.mhz);
assertEquals("nodeInfo.cpus", 16, nodeInfo.cpus);
assertEquals("nodeInfo.cpus", 16, nodeInfo.maxCpus());
assertEquals("nodeInfo.nodes", 2, nodeInfo.nodes);
assertEquals("nodeInfo.sockets", 2, nodeInfo.sockets);
assertEquals("nodeInfo.cores", 2, nodeInfo.cores);
assertEquals("nodeInfo.threads", 2, nodeInfo.threads);

Another question is how can I connect with XenServer, the native
hypervisor? Is it the same driver for Xen?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121023/d9e21d33/attachment.htm>

More information about the libvirt-users mailing list