VMware Cloud Community
Froggiz
Contributor
Contributor

Error /usr/lib/vmware/config No such file in /var/log/syslog.log

Hi,

i didnt find any informations, so i am trying here.

I am using Esxi 6.5, this morning i was checking logs and i saw lot of lines with some error messages.

All seems to work well, i don't see any trouble on VM. Esxi is running like a charm.

But i Get this kind of messages in syslog:

2020-07-09T02:52:41Z addVob[110227]: Could not expand environment variable HOME.

2020-07-09T02:52:41Z addVob[110227]: DictionaryLoad: Cannot open file "/usr/lib/vmware/config": No such file or directory.

2020-07-09T02:52:41Z addVob[110227]: DictionaryLoad: Cannot open file "~/.vmware/config": No such file or directory.

2020-07-09T02:52:41Z addVob[110227]: DictionaryLoad: Cannot open file "~/.vmware/preferences": No such file or directory.

I saw lof of people on internet with same messages in their log, but none seems to care about it.

Do anyone get info on how can i get/generate this /usr/lib/vmware/config files ?

Or anyway to solve this logs messages ?

Thanks

wiki.frogg.fr
9 Replies
peetz
Leadership
Leadership

Greetings,

these are leftover references to config files that were used in ancient times (with older ESXi version or even other products like the very old VMware GSX server).

/usr/lib/vmware/config is now really at /etc/vmware/config, but a lot of the ESXi code still checks the old location. You will find these references in a lot of other log files in /var/log and also in the per-VM log files.

I just checked an ESXi 7.0 host, and even there you find these messages.

However, I would not consider them real error messages, and they are definitely not harmful. Just ignore them.

- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
peetz
Leadership
Leadership

I submitted a new idea for this on the vSphere Ideas site.

Please vote for it: https://vsphere.ideas.aha.io/ideas/VSP-I-229

- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Reply
0 Kudos
lamw
Community Manager
Community Manager

Thanks for the response Andreas. I've just filed an internal bug on this issue.

Froggiz
Contributor
Contributor

Thanks a lot for the answer and explaination.

As it is a production server i can't make some tests, but :

if i try to create a symlink from /etc/vmware/config to /usr/lib/vmware/config it may launch scripts that are obsolet and add trouble ?

If you have information about it, it would be nice, thanks

wiki.frogg.fr
Reply
0 Kudos
peetz
Leadership
Leadership

No guarantee, but I guess it's safe to create this symlink. It's just a config file (not a script) and the system already reads /etc/vmware/config, so it would just read it twice.

However, please note that the system runs from a volatile RAM disk, so after a reboot the symlink will be gone and you need to recreate it.

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Reply
0 Kudos
peetz
Leadership
Leadership

I think a better idea is to create an empty file with

  touch /usr/lib/vmware/config

instead of linking to another one that is already evaluated anyway.

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Froggiz
Contributor
Contributor

Thanks a lot for the "touch" tips, it is a better solution and it worked for this message

To keep the changes after reboot, i use

/etc/rc.local.d/local.sh

I added in it the command

touch /usr/lib/vmware/config

I don't know if it is a good practice but it works

There is still some messages:

020-07-10T14:38:54Z addVob[78015]: Could not expand environment variable HOME.

2020-07-10T14:38:54Z addVob[78015]: Could not expand environment variable HOME.

2020-07-10T14:38:54Z addVob[78015]: DictionaryLoad: Cannot open file "~/.vmware/config": No such file or directory.

2020-07-10T14:38:54Z addVob[78015]: DictionaryLoad: Cannot open file "~/.vmware/preferences"

With the information provided in this post, if i understand well, in the past root as a home folder was used

So i tried

mkdir /root

export HOME=/root

mkdir /root/.vmware/

touch /root/.vmware/config

touch /root/.vmware/preferences

but it didn't worked, does any one has idea how could i achieve it ?

Thanks

wiki.frogg.fr
Reply
0 Kudos
peetz
Leadership
Leadership

Try to add

  export HOME=/root

to the file

/etc/profile.local

But please note that both /etc/rc.local.d/local.sh and /etc/profile.local will not be evaluated if the esxi host has UEFI secure boot enabled.

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Reply
0 Kudos
ezevmwaresp
Contributor
Contributor

Eu tenho a mesma mensagem de erro no arquivo de log vnetlib. Isso parece ser um problema com a configuração de rede do vmware. Não consigo acessar a internet no meu vm. Tentei configurar com as instruções do próprio desenvolvedor e não consegui. Eu ainda tenho o problema e não consigo acessar a internet porque a interface de rede não reconhece minha interface de ponte no host.

Reply
0 Kudos