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

2009-10-21 Thread Daniel Veillard
On Tue, Oct 20, 2009 at 11:30:12PM -0500, Charles Duffy wrote: > 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

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] 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

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

2009-10-19 Thread Carlen, Devin C. (ARC-A)[PEROT SYSTEMS]
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 nudge in the right direction would be appreciated! Best Regards, Devin Carlen -- Libvir-list