Displaying 19 results from an estimated 19 matches for "virdomaininterfacestats".
2014 Jul 09
2
Disk and Network Statistics for a Specific Interval
Hi,
virDomainInterfaceStats - This function returns network interface stats for
interfaces attached to the domain.
virDomainBlockStats- This function returns block device (disk) stats for
block devices attached to the domain.
Based on which time interval these function returns values.
Is it cumulative from the vms uptime....
2012 Apr 06
2
[API reference] Are there XML-handling API to retrieve info directly from xml configure file
Hi, everyone
I'm writing a application using libvirt and need to query guest
os's virtual network interface usage, like bytes read or written
through a given interface. I know int
virDomainInterfaceStats(virDomainPtr dom, const char * path,
virDomainInterfaceStatsPtr stats, size_t size) is designed for my
purpose but I 'm not sure how I determine the second parameter path.
I'm now think of determining the virtual interface by parsing the
domain's xml configure file.
But I don't f...
2012 Sep 03
2
virtual network bug?
I have had a number of occasions lately where a virtual "NAT" network
(such as default) has stopped working. I have attempted to stop and
then restart the network from the "network details" but the only thing
that seems to work is to restart all of the virtual guests which use
that network. I don't believe that I should have to do that. Is there
some command which
2007 Nov 26
3
xm top
Hello everybody!
I´d like to know where "xm top" gets its information from. I want to get
those informations (cpu-load, mem etc. from the domUs) and display them
with php in a browser. So are the informations stored and updated in a
textfile or something like that? Can anybody help me with this?
Regards
Alexandros
_______________________________________________
Xen-users mailing
2012 Feb 10
1
Unable to collect VM metrics for ESX using libvirt
...lect statistics.
I am using the python interface and if I do ,
conn=libvirt.openAuth(uri, auth, 0)
dom-conn.lookupByID(id) // Where id is the domain id of the vms
netstats=dom.interfaceStats(interface)
gives an error libvirt.libvirtError: this function is not supported by the
connection driver: virDomainInterfaceStats
The same goes for block stats. For the cpu, I used,
cpu=dom.info()[4]
but, that always returns 0 (I thought it was cumulative and returns a huge
value)
I have used similar scripts with xen and kvm and it worked well. Can
someone tell me what mistake I am doing or if the driver doesnt support
th...
2012 Mar 22
0
HDD- and NIC-stats for dom0
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120322/a53547cf/attachment.htm>
2014 Jul 09
0
Re: Disk and Network Statistics for a Specific Interval
On 07/09/2014 05:28 AM, Sijo Jose wrote:
> Hi,
> virDomainInterfaceStats - This function returns network interface stats for
> interfaces attached to the domain.
>
> virDomainBlockStats- This function returns block device (disk) stats for
> block devices attached to the domain.
>
> Based on which time interval these function returns values.
>
>...
2012 Jan 12
1
Libvirt API for C/C++ : Monitoring Support
Greetings,
I am a developer, trying to develop a system for monitoring Servers and Virtual Machines using Libvirt API for C/C++. I am facing an issue that there are no functions for monitoring some parameters which I have listed below. I would like to know if there is any there way I can retrieve these parameters since they are critical to my Monitoring Application. Also I am using CentOS 5.6 as
2010 Oct 01
3
Monitoring and statistics through libvirt
Hi folks,
is it possible to monitor and gather statistics in realtime (CPU,
memory, HDD, network, ... - something like dstat) of guest systems
with libvirt through console from host system (KVM based)? If yes, do
those guests need to be created through libvirt? Thanks for your help
and time.
2018 Mar 19
2
Network interface name of guest via python API
Hi,
I'm trying to get some basic data from running guests on a libvirt HV
but one thing I'm missing is the name of the network interfaces of the
guests. I can get the MAC address from the XML but there seems to be no
function to actually get the name of the interface.
The only function that comes close is this one:
2020 Jan 10
2
Re: [PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
...eviceFlags (
virDomainFree (
virDomainGetConnect (
virDomainGetCPUStats(
virDomainGetID (
virDomainGetInfo (
virDomainGetMaxMemory (
virDomainGetName (
virDomainGetSchedulerParameters (
virDomainGetSchedulerType (
virDomainGetUUID (
virDomainGetUUIDString (
virDomainGetVcpus (
virDomainGetXMLDesc (
virDomainInterfaceStats (
virDomainLookupByID (
virDomainLookupByName (
virDomainLookupByUUIDString (
virDomainMemoryPeek (
virDomainMigrate (
virDomainPinVcpu (
virDomainRef(
virDomainSetMaxMemory (
virDomainSetMemory (
virDomainSetSchedulerParameters (
virDomainSetVcpus (
virDomainStatsRecordListFree (
virEventAddTimeou...
2020 Jan 10
5
[PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
libguestfs usually needs qemu. However it only requires an emulator
for the same architecture, not for all architectures.
libvirt-daemon-kvm pulls in qemu which pulls in emulators for all
architectures, as well as a bunch of other stuff we don't need at all
like network interface support and nwfilter.
There are no Fedora TCG-only arches, so drop the conditional section.
I also made support
2019 Apr 08
0
[PATCH v4 2/7] common: Bundle the libvirt-ocaml library for use by virt-v2v
...l_copy_int64 (stats.errs); Store_field (rv, 4, v);
+
+ CAMLreturn (rv);
+}
+
+CAMLprim value
+ocaml_libvirt_domain_interface_stats (value domv, value pathv)
+{
+ CAMLparam2 (domv, pathv);
+ CAMLlocal2 (rv,v);
+ virDomainPtr dom = Domain_val (domv);
+ char *path = String_val (pathv);
+ struct _virDomainInterfaceStats stats;
+ int r;
+
+ NONBLOCKING (r = virDomainInterfaceStats (dom, path, &stats, sizeof stats));
+ CHECK_ERROR (r == -1, "virDomainInterfaceStats");
+
+ rv = caml_alloc (8, 0);
+ v = caml_copy_int64 (stats.rx_bytes); Store_field (rv, 0, v);
+ v = caml_copy_int64 (stats.rx_packet...
2019 Dec 16
3
[v2v PATCH 0/2] Move libvirt-ocaml copy to v2v repo
libvirt-ocaml is used only by virt-v2v, so move it to this repository,
instead of having it around in the common submodule.
The removal from common will happen later.
Pino Toscano (2):
common: Bundle the libvirt-ocaml library for use by virt-v2v
build: switch embedded copy of libvirt-ocaml
.gitignore | 2 +
3rdparty/libvirt-ocaml/Makefile.am |
2018 Aug 30
8
[PATCH 0/7] RFC: switch v2v to ocaml-libvirt
Hi,
this is a mostly done attempt to switch to ocaml-libvirt, embedding the
latest version of it from git. This way, it is possible to improve the
way v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not
2018 Nov 27
8
[PATCH v2 0/7] RFC: switch v2v to ocaml-libvirt
Hi,
this is a mostly done attempt to switch to ocaml-libvirt, embedding the
latest version of it from git. This way, it is possible to improve the
way v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not
2019 Jan 30
8
[PATCH v3 0/7] RFC: switch v2v to ocaml-libvirt
Hi,
this is a mostly done attempt to switch to ocaml-libvirt, embedding the
latest version of it from git. This way, it is possible to improve the
way v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not
2019 May 20
8
[PATCH v5 0/7] v2v: switch to ocaml-libvirt
Hi,
this series switches virt-2v to ocaml-libvirt, embedding the latest
version of it from git. This way, it is possible to improve the way
v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not test all
2019 Apr 08
12
[PATCH 43 0/7] v2v: switch to ocaml-libvirt
Hi,
this series switches virt-2v to ocaml-libvirt, embedding the latest
version of it from git. This way, it is possible to improve the way
v2v connects to libvirt for both input, and output modules, and
interacts with libvirt (e.g. no more virsh calls needed in virt-v2v).
As side effect, virt-v2v now requires libvirt, as keeping it optional
would create too much burden.
I could not test all