Re: [libvirt] Using libvirt to obtain mac address of virtual domain

2009-10-20 Thread Charles Duffy
Daniel Berteaud wrote: If you need to get the mac address from bash, you can use this: virsh dumpxml myguest | grep 'mac address' | cut -d\' -f2 You'll get one mac address per line (one line per NIC on the guest) An alternate approach which doesn't depend on the specific manner in which the

Re: [libvirt] [PATCH 2/3] node device: Break out get_wwns and get_parent_node helpers

2009-10-20 Thread Cole Robinson
On 10/20/2009 11:55 AM, Dave Allan wrote: > Cole Robinson wrote: >> These will be used by the test driver, so move them to a shareable space. >> >> Signed-off-by: Cole Robinson >> --- >> src/conf/node_device_conf.c | 89 +++ >> src/conf/node_device_conf.h

Re: [libvirt] [PATCH 1/3] node device: Fix locking issue in virNodeDeviceDestroy

2009-10-20 Thread Cole Robinson
On 10/19/2009 05:28 PM, Dave Allan wrote: > Cole Robinson wrote: >> Certain error paths won't unlock the node device object. >> >> Signed-off-by: Cole Robinson >> --- >> src/node_device/node_device_driver.c |2 ++ >> 1 files changed, 2 insertions(+), 0 deletions(-) >> >> diff --git a/src/node

Re: [libvirt] [PATCH] tests: Centralize VIR_TEST_DEBUG lookup, and document it

2009-10-20 Thread Cole Robinson
On 10/19/2009 10:38 AM, Cole Robinson wrote: > On 10/17/2009 08:03 AM, Matthias Bolte wrote: >> 2009/10/16 Cole Robinson : >>> Provide a simple interface for other tests to lookup the testDebug variable. >>> Also remove a redundant error message in interface tests. >>> >>> If anyone feels inclined

Re: [libvirt] [PATCH] tests: Initialize virRandom in for test suite.

2009-10-20 Thread Cole Robinson
On 10/19/2009 08:40 AM, Daniel Veillard wrote: > On Fri, Oct 16, 2009 at 11:59:20AM -0400, Cole Robinson wrote: >> Otherwise any virRandom calls will result in a segfault. >> >> Signed-off-by: Cole Robinson >> --- >> tests/testutils.c |3 ++- >> 1 files changed, 2 insertions(+), 1 deletions(-

Re: [libvirt] Re: [virt-tools-list] libvirt 0.7.2 linker issues

2009-10-20 Thread Daniel P. Berrange
On Mon, Oct 19, 2009 at 11:48:09AM -0600, Jim Fehlig wrote: > Laurent Léonard wrote: > > Le lundi 19 octobre 2009 à 15:21, Cole Robinson a écrit : > > > >> On 10/19/2009 08:54 AM, Laurent Léonard wrote: > > commit 1e0ec790a0f1f8b8d54c862db42050a51f62ba61 > Author: Jim Fehlig > Date: Mon Oct

Re: [libvirt] [PATCH] Fix virsh.c compilation warning

2009-10-20 Thread Daniel P. Berrange
On Mon, Oct 19, 2009 at 02:03:21PM -0600, Jim Fehlig wrote: > A call to vshError() containing 'doexit' parameter sneaked in after I > removed said parameter. > > Regards, > Jim > > commit edea3dfdd861d5eee4712da43781908f0fa2a6d5 > Author: Jim Fehlig > Date: Mon Oct 19 13:53:40 2009 -0600 > >

Re: [libvirt] [PATCH 2/3] node device: Break out get_wwns and get_parent_node helpers

2009-10-20 Thread Dave Allan
Cole Robinson wrote: These will be used by the test driver, so move them to a shareable space. Signed-off-by: Cole Robinson --- src/conf/node_device_conf.c | 89 +++ src/conf/node_device_conf.h | 11 +++ src/libvirt_private.syms |2

Re: [libvirt] Re: [virt-tools-list] libvirt 0.7.2 linker issues

2009-10-20 Thread Laurent Léonard
Le lundi 19 octobre 2009 à 19:48, Jim Fehlig a écrit : > Laurent Léonard wrote: > > Le lundi 19 octobre 2009 à 15:21, Cole Robinson a écrit : > >> On 10/19/2009 08:54 AM, Laurent Léonard wrote: > >>> Hi, > >>> > >>> I'm trying to package libvirt 0.7.2 for Debian and get some linker > >>> issues > >

Re: [libvirt] Using libvirt to obtain mac address of virtual domain

2009-10-20 Thread Daniel Berteaud
Le lundi 19 octobre 2009 à 17:27 -0500, Carlen, Devin C. (ARC-A)[PEROT SYSTEMS] a écrit : > Greetings, I am new to libvirt and am looking for the most efficient > way to programmatically obtain the mac address from a virtual domain. > Libvirt is providing access to xen and kvm in my case. A n