[libvirt] [PATCH v2 0/2] Add .domainGetHostname() support for QEMU driver.

Julio Faracco posted 2 patches 5 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180821023449.32269-1-jcfaracco@gmail.com
Test syntax-check passed
There is a newer version of this series
src/qemu/qemu_agent.c  | 42 ++++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_agent.h  |  4 ++++
src/qemu/qemu_driver.c | 40 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 86 insertions(+)
[libvirt] [PATCH v2 0/2] Add .domainGetHostname() support for QEMU driver.
Posted by Julio Faracco 5 years, 7 months ago
This serie adds a new function into QEMU Guest Agent handlers to use 
the QEMU command 'guest-get-host-name' to retrieve the domain hostname.
This approach requires QEMU-GA running inside the guest, but it is the 
fastest and easiest way to get this info.

Julio Faracco (2):
  qemu: implementing qemuAgentGetHostname() function.
  qemu: adding domainGetHostname support for QEMU.

 src/qemu/qemu_agent.c  | 42 ++++++++++++++++++++++++++++++++++++++++++
 src/qemu/qemu_agent.h  |  4 ++++
 src/qemu/qemu_driver.c | 40 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 86 insertions(+)

-- 
2.17.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v2 0/2] Add .domainGetHostname() support for QEMU driver.
Posted by Han Han 5 years, 7 months ago
On Tue, Aug 21, 2018 at 10:34 AM, Julio Faracco <jcfaracco@gmail.com> wrote:

> This serie adds a new function into QEMU Guest Agent handlers to use
> the QEMU command 'guest-get-host-name' to retrieve the domain hostname.
> This approach requires QEMU-GA running inside the guest, but it is the
> fastest and easiest way to get this info.
>
> Julio Faracco (2):
>   qemu: implementing qemuAgentGetHostname() function.
>   qemu: adding domainGetHostname support for QEMU.
>
How about updating improvements part of news.xml to inform users that they
could use
virDomainGetHostname to qemu VMs :)?

>
>  src/qemu/qemu_agent.c  | 42 ++++++++++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_agent.h  |  4 ++++
>  src/qemu/qemu_driver.c | 40 ++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 86 insertions(+)
>
> --
> 2.17.1
>
> --
> libvir-list mailing list
> libvir-list@redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
>



-- 
Best regards,
-----------------------------------
Han Han
Quality Engineer
Redhat.

Email: hhan@redhat.com
Phone: +861065339333
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v2 0/2] Add .domainGetHostname() support for QEMU driver.
Posted by Julio Faracco 5 years, 7 months ago
Em ter, 21 de ago de 2018 às 00:28, Han Han <hhan@redhat.com> escreveu:
>
>
>
> On Tue, Aug 21, 2018 at 10:34 AM, Julio Faracco <jcfaracco@gmail.com> wrote:
>>
>> This serie adds a new function into QEMU Guest Agent handlers to use
>> the QEMU command 'guest-get-host-name' to retrieve the domain hostname.
>> This approach requires QEMU-GA running inside the guest, but it is the
>> fastest and easiest way to get this info.
>>
>> Julio Faracco (2):
>>   qemu: implementing qemuAgentGetHostname() function.
>>   qemu: adding domainGetHostname support for QEMU.
>
> How about updating improvements part of news.xml to inform users that they could use
> virDomainGetHostname to qemu VMs :)?

I will wait for others feedback before sending a single patch to add
info into news.xml.
Thanks Han for the suggestion.

>>
>>
>>  src/qemu/qemu_agent.c  | 42 ++++++++++++++++++++++++++++++++++++++++++
>>  src/qemu/qemu_agent.h  |  4 ++++
>>  src/qemu/qemu_driver.c | 40 ++++++++++++++++++++++++++++++++++++++++
>>  3 files changed, 86 insertions(+)
>>
>> --
>> 2.17.1
>>
>> --
>> libvir-list mailing list
>> libvir-list@redhat.com
>> https://www.redhat.com/mailman/listinfo/libvir-list
>
>
>
>
> --
> Best regards,
> -----------------------------------
> Han Han
> Quality Engineer
> Redhat.
>
> Email: hhan@redhat.com
> Phone: +861065339333

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list