Re: [libvirt] RFC: API to report guest IP address(es)

2012-02-09 Thread Daniel P. Berrange
On Wed, Feb 08, 2012 at 12:30:16PM +0100, Michal Privoznik wrote: Hi, Now we have qemu guest agent it is possible for us to: 1) extend guest agent to report IP addresses (not trivial among OSes). 2) Write API which will report these to mgmt application. One thing that I am not sure

Re: [libvirt] RFC: API to report guest IP address(es)

2012-02-09 Thread Laine Stump
On 02/09/2012 04:36 AM, Daniel P. Berrange wrote: On Wed, Feb 08, 2012 at 12:30:16PM +0100, Michal Privoznik wrote: Hi, Now we have qemu guest agent it is possible for us to: 1) extend guest agent to report IP addresses (not trivial among OSes). 2) Write API which will report these to mgmt

[libvirt] RFC: API to report guest IP address(es)

2012-02-08 Thread Michal Privoznik
Hi, Now we have qemu guest agent it is possible for us to: 1) extend guest agent to report IP addresses (not trivial among OSes). 2) Write API which will report these to mgmt application. One thing that I am not sure about and would like you to ask is: how should the API look like? In

Re: [libvirt] RFC: API to report guest IP address(es)

2012-02-08 Thread Michal Privoznik
On 08.02.2012 12:30, Michal Privoznik wrote: Therefore I lean to something like: int virDomainGetIPAddresses(virDomainPtr dom, char **addr[], int *addr_size); Oh my, I've forgotten the flags, but that's not the issue right now, is it? -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] RFC: API to report guest IP address(es)

2012-02-08 Thread Michal Privoznik
On 08.02.2012 12:30, Michal Privoznik wrote: Hi, Now we have qemu guest agent it is possible for us to: Seems like Virtual Box can report this as well: https://forums.virtualbox.org/viewtopic.php?f=1t=36592 What brings up question: Do we want to report netmasks too? What else? --

Re: [libvirt] RFC: API to report guest IP address(es)

2012-02-08 Thread Osier Yang
On 2012年02月08日 19:30, Michal Privoznik wrote: Hi, Now we have qemu guest agent it is possible for us to: 1) extend guest agent to report IP addresses (not trivial among OSes). 2) Write API which will report these to mgmt application. One thing that I am not sure about and would like you to