That change expects a space before the the '10', so it shouldn't match 9.10.

Oliver

________________________________
From: Bernd Zeimetz <be...@bzed.de>
Sent: Monday, August 5, 2019 11:51 PM
To: Oliver Kurth <oku...@vmware.com>; 934...@bugs.debian.org 
<934...@bugs.debian.org>
Subject: Re: Bug#934005: guest OS is not reported correctly

Hi Oliver,

don't have the full code available right now, but please make sure this does 
not match 9.10, which will be the next oldstable pointrelease.

Thanks,
Bernd

Am 6. August 2019 02:06:50 MESZ schrieb Oliver Kurth <oku...@vmware.com>:
Package: open-vm-tools
Version: 2:10.3.5-8

During testing, we found this problem:

After install the open-vm-tools 10.3.10 by "apt-get install open-vm-tools" in 
Debian 10.0.0 on ESXi 6.7GA , the guestID and guestFullName are not correct.

---VM Tools Version---
# apt-get install open-vm-tools
# vmtoolsd -v
VMware Tools daemon, version 10.3.10.10540 (build-12406962)

---guestInfo in ESXi 6.7GA---
Guest information:

(vim.vm.GuestInfo) {
   toolsStatus = "toolsOk",
   toolsVersionStatus = "guestToolsUnmanaged",
   toolsVersionStatus2 = "guestToolsUnmanaged",
   toolsRunningStatus = "guestToolsRunning",
   toolsVersion = "10346",
   toolsInstallType = "guestToolsTypeOpenVMTools",
   toolsUpdateStatus = (vim.vm.GuestInfo.ToolsUpdateStatus) null,
   guestId = "other4xLinux64Guest", <----------------------------guestID
   guestFamily = "linuxGuest",
   guestFullName = "Other 4.x or later Linux (64-bit)",  
<----------------------------guestFullName

Root cause is the output of lsb_release, which outputs:

$ lsb_release -sd
Debian GNU/Linux 10 (buster)

But the code in open-vm-tools expects '10.'.

Here is a patch to fix the issue:

vmware@debian:~$ diff open-vm-tools-10.3.10-12406962/lib/misc/hostinfoPosix.c 
open-vm-tools-10.3.10-12406962.patched/lib/misc/hostinfoPosix.c
817c817
<       } else if (strstr(distroLower, "10.")) {
---
>       } else if (strstr(distroLower, " 10")) {


There is a possible workaround with changing the code by putting these two 
lines into /etc/vmware-tools/tools.conf :

[guestosinfo]
short-name = debian10-64

Oliver





--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Reply via email to