Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-06 Thread Konstantin Kostiuk
On Mon, Sep 6, 2021 at 6:59 PM Richard W.M. Jones wrote: > On Mon, Sep 06, 2021 at 06:45:08PM +0300, Konstantin Kostiuk wrote: > > Hi All, > > > > I reviewed glib, libguestfs, and libosinfo tools. All tools read the > registry > > to get information about Windows but read different registry value

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-06 Thread Richard W.M. Jones
On Mon, Sep 06, 2021 at 06:45:08PM +0300, Konstantin Kostiuk wrote: > Hi All, > > I reviewed glib, libguestfs, and libosinfo tools. All tools read the registry > to get information about Windows but read different registry values. All > information is returned in a localized form. > Related key: H

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-06 Thread Konstantin Kostiuk
Hi All, I reviewed glib, libguestfs, and libosinfo tools. All tools read the registry to get information about Windows but read different registry values. All information is returned in a localized form. Related key: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion We can get 'pretty-name' from '

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-02 Thread Marc-André Lureau
Hi On Thu, Sep 2, 2021 at 6:16 PM Konstantin Kostiuk wrote: > I tried to use glib to get OS info. Glib provide 3 values with version > about Windows: > g_get_os_info(G_OS_INFO_KEY_PRETTY_NAME) > g_get_os_info(G_OS_INFO_KEY_VERSION) > g_get_os_info(G_OS_INFO_KEY_VERSION_ID) > > Output for Windows

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-02 Thread Konstantin Kostiuk
I tried to use glib to get OS info. Glib provide 3 values with version about Windows: g_get_os_info(G_OS_INFO_KEY_PRETTY_NAME) g_get_os_info(G_OS_INFO_KEY_VERSION) g_get_os_info(G_OS_INFO_KEY_VERSION_ID) Output for Windows Server 2019: PRETTY_NAME = Windows 10 Server 1809 VERSION = 10 Server 1809

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-02 Thread Richard W.M. Jones
On Thu, Sep 02, 2021 at 02:36:51PM +0100, Daniel P. Berrangé wrote: > On Thu, Sep 02, 2021 at 03:36:01PM +0300, Konstantin Kostiuk wrote: > > Hi Team, > > > > We have several bugs related to 'guest-get-osinfo' command in Windows Guest > > Agent: > > https://bugzilla.redhat.com/show_bug.cgi?id=1998

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-02 Thread Daniel P . Berrangé
On Thu, Sep 02, 2021 at 03:36:01PM +0300, Konstantin Kostiuk wrote: > Hi Team, > > We have several bugs related to 'guest-get-osinfo' command in Windows Guest > Agent: > https://bugzilla.redhat.com/show_bug.cgi?id=1998919 > https://bugzilla.redhat.com/show_bug.cgi?id=1972070 > > This command retu

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-02 Thread Marc-André Lureau
Hi On Thu, Sep 2, 2021 at 4:36 PM Konstantin Kostiuk wrote: > Hi Team, > > We have several bugs related to 'guest-get-osinfo' command in Windows > Guest Agent: > https://bugzilla.redhat.com/show_bug.cgi?id=1998919 > https://bugzilla.redhat.com/show_bug.cgi?id=1972070 > > This command returns the

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-02 Thread Philippe Mathieu-Daudé
Forgot to Cc Richard & Daniel. On 9/2/21 3:11 PM, Philippe Mathieu-Daudé wrote: > On 9/2/21 2:36 PM, Konstantin Kostiuk wrote: >> Hi Team, >> >> We have several bugs related to 'guest-get-osinfo' command in Windows >> Guest Agent: >> https://bugzilla.redhat.com/show_bug.cgi?id=1998919 >>

Re: Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-02 Thread Philippe Mathieu-Daudé
On 9/2/21 2:36 PM, Konstantin Kostiuk wrote: > Hi Team, > > We have several bugs related to 'guest-get-osinfo' command in Windows > Guest Agent: > https://bugzilla.redhat.com/show_bug.cgi?id=1998919 > > https://bugzilla.redhat.com/show_bug.cgi?

Guest Agent issue with 'guest-get-osinfo' command on Windows

2021-09-02 Thread Konstantin Kostiuk
Hi Team, We have several bugs related to 'guest-get-osinfo' command in Windows Guest Agent: https://bugzilla.redhat.com/show_bug.cgi?id=1998919 https://bugzilla.redhat.com/show_bug.cgi?id=1972070 This command returns the following data: { "name": "Microsoft Windows", "kernel-release": "20344", "v