Forums

Resolved
0 votes
I wish to change the symbolic link:: /etc/centos-release in ClearOS for the following information: CentOS Linux release 7.8.1 (Core)

I am receiving the following log message from ESXi on my setup with the ClearOS current configuration of /etc/centos-release: ClearOS release 7.8.1 (Final)
The configured guest OS (CentOS 4/5/6 (64-bit)) for this virtual machine does not match the guest that is currently running (Other 3.x Linux (64-bit)). You should specify the correct guest OS to allow for guest-specific optimizations.


It appears that this change seems to be relevant for optimizing the performance of ClearOS within an ESXi environment (both being Community Versions). Note that all my ClearOS vm's within my ESXi configuration are all set to CentOS... (which I believe to be the most accurate for ESXi ClearOS combination). I am assuming that vm-tools is providing CLearOS vm the Guest OS version that are set in /etc/centos-release. Having changed the information to the above seems satisfy my ESXI server. Now what I am wondering is if I have created myself future update release issues with CLearOS?

Thank You

For your information it appears that VMware is only looking at the first digit for the version:

/*********************************************************
* Copyright (C) 1998-2018 VMware, Inc. All rights reserved.
* Copyright (C) 1998-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
@@ -790,11 +790,11 @@ HostinfoGetOSShortName(char *distro, // IN: full distro name
} else if (strstr(distroLower, "cobalt")) {
Str_Strcpy(distroShort, STR_OS_COBALT, distroShortSize);
} else if (StrUtil_StartsWith(distroLower, "centos")) {
if (strstr(distroLower, "6.")) {
if (strstr(distroLower, " 6.")) {
Str_Strcpy(distroShort, STR_OS_CENTOS6, distroShortSize);
} else if (strstr(distroLower, "7.")) {
} else if (strstr(distroLower, " 7.")) {
Str_Strcpy(distroShort, STR_OS_CENTOS7, distroShortSize);
} else if (strstr(distroLower, "8.")) {
} else if (strstr(distroLower, " 8.")) {
Str_Strcpy(distroShort, STR_OS_CENTOS8, distroShortSize);
} else {
Str_Strcpy(distroShort, STR_OS_CENTOS, distroShortSize);
In ClearVM
Tuesday, September 29 2020, 02:29 PM
Share this post:

Accepted Answer

Tuesday, September 29 2020, 05:57 PM - #Permalink
Resolved
0 votes
I don't know ESXi so can't comment. I'd just leave it as "Other 3.x Linux (64-bit)".
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Tuesday, September 29 2020, 04:53 PM - #Permalink
    Resolved
    0 votes
    I **think** all your yum updates will fail, bit I'm not sure. If they take the version number from here you have a problem. You could try:
    CentOS Linux 7.8.1 7.8.1 (Core)
    As ClearOS is expecting the string in position 3. This file will get overwritten every time there is an update to clearos-release, so on every point update at a minimum. It also updated for community last week and will update for paid tonight, so the fix is not brilliant.

    Can you tell ESXI that it is a generic Linux installation rather than Centos?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 29 2020, 05:24 PM - #Permalink
    Resolved
    0 votes
    Hello Nick,

    Yes that is what I was concerned with. That this may cause me more grief then needed... as the saying: “if it works, don't touch it”.

    For the change of configuration on the ESXi side of things. Yes indeed I can configure the vm as requested to: Other 3.x Linux (64-bit) and that might be a better approach to the issue? I tried and I do not think this configuration will have any ill effect with ESXi since the status of the vm went from warning to normal. For both configuration the vm-tools service is acknowledge as running by ESXi. The only thing that I do not know is if ESXi does any specific type of optimization for a CentOS configuration that might have been beneficiary?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 29 2020, 06:12 PM - #Permalink
    Resolved
    0 votes
    Agreed, as usual thank you for your input.
    The reply is currently minimized Show
Your Reply