I'm using this script to provision CoreOS onto VMware ESXi:
http://bit.ly/coreos-vmware
Things look pretty good for the most part, but I noticed a strange issue this morning. When I first boot a new CoreOS server, vmtoolsd.service seems to load and work fine. The vSphere client shows extra information about the new CoreOS node, as expected. However, if I login to the server and reboot it, the vmtoolsd.service stops working. I get this error in the journal:
Dec 23 16:19:13 queenbee70 vmtoolsd[523]: /usr/share/oem/bin/vmtoolsd: error while loading shared libraries: libvmtools.so.0: cannot open shared object file: No such file or directory
I am using version 536.0.0. Further investigation:
queenbee70 gclaybur # ldd /usr/share/oem/bin/vmtoolsd
linux-vdso.so.1 (0x00007fffc15bd000)
libvmtools.so.0 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fabd0f29000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00007fabd0d25000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007fabd0ac6000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fabd0776000)
libc.so.6 => /lib64/libc.so.6 (0x00007fabd03bb000)
/lib64/ld-linux-x86-64.so.2 (0x00007fabd1146000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fabd01b7000)
libffi.so.6 => /lib64/libffi.so.6 (0x00007fabcffae000)
queenbee70 gclaybur # find / -name libvmtools.so.0
/usr/share/oem/lib64/libvmtools.so.0
I was able to get it working by adding an EnvironmentFile to the vmtoolsd.service. Is this the correct way to fix this issue?
queenbee70 gclaybur # cat /etc/systemd/system/vmtoolsd.service
[Unit]
Description=VMware Tools Agent
Documentation=http://open-vm-tools.sourceforge.net/
ConditionVirtualization=vmware
[Service]
EnvironmentFile=-/etc/sysconfig/vmtoolsd
EnvironmentFile=LD_LIBRARY_PATH=/usr/share/oem/lib64
A new release to fix this issue should roll out today. https://github.com/coreos/bugs/issues/216