[Bug 468566] [NEW] Plugins in subdirectories are not loaded

/usr/local/dick dick at tienhuis.nl
Sun Nov 1 13:38:34 UTC 2009


Public bug reported:

Binary package hint: open-vm-tools

On a new Karmic server, after compiling modules with m-a, open-vm-tools
works (i.e. Tools are "OK" in VMware VirtualCenter), but fails to report
the IP address and host name.

I turned on logging, and I see this:

root at karmic-test:/etc/vmware-tools# cut -b 25- /var/log/vm.log | head
[ warning] [vmtoolsd] File 'vmsvc' is not a regular file, skipping.
[ warning] [vmtoolsd] File 'vmusr' is not a regular file, skipping.
[   debug] [vmtoolsd] Unable to register guest conf directory capability.
[   debug] [vmsvc] Channel was reset successfully.
[   debug] [vmtoolsd] Setting option 'synctime' to '0'.
[   debug] [vmtoolsd] Setting option 'copypaste' to '1'.
[   debug] [vmtoolsd] Setting option 'autohide' to '0'.
[   debug] [vmtoolsd] Setting option 'broadcastIP' to '1'.
[   debug] [vmtoolsd] Setting option 'enableDnD' to '0'.
[   debug] [vmtoolsd] Setting option 'synctime.period' to '0'.


After reading through the source code, I figured out that for the IP addresses and DNS name to show up in VirtualCenter, I probably need the libguestInfo.so plugin.

The plugins dir is layed out this way:

root at karmic-test:/etc/vmware-tools# tree plugins

plugins
|-- vmsvc
|   |-- libguestInfo.so
|   |-- libhgfsServer.so
|   |-- libpowerOps.so
|   |-- libtimeSync.so
|   |-- libvix.so
|   `-- libvmbackup.so
`-- vmusr
    |-- libhgfsServer.so
    |-- libresolutionSet.so
    |-- libvix.so
    `-- libvixUser.so


Combining this layout with my logfile, it looks like only stuff directly under /etc/vmware-tools/plugins is loaded. To test this, I moved libguestInfo.so up to /etc/vmware-tools/plugins. Things started working right away:


root at karmic-test:/etc/vmware-tools# cut -b 25- /var/log/vm.log | head
[   debug] [vmtoolsd] Plugin 'guestInfo' initialized.
[ warning] [vmtoolsd] File 'vmsvc' is not a regular file, skipping.
[ warning] [vmtoolsd] File 'vmusr' is not a regular file, skipping.
[   debug] [guestinfo] Setting guest uptime to '1718157965'
[   debug] [guestinfo] Entered update vmdb: 7.
[   debug] [guestinfo] Returning after updating guest information
[   debug] [vmtoolsd] Unable to register guest conf directory capability.
[   debug] [vmsvc] Channel was reset successfully.
[   debug] [vmtoolsd] Setting option 'synctime' to '0'.
[   debug] [vmtoolsd] Setting option 'copypaste' to '1'.


In fact, all plugins start working if I move them direcly under plugins:

root at karmic-test:/etc/vmware-tools/plugins# cut -b 25- /var/log/vm.log | head
[   debug] [vmtoolsd] Plugin 'guestInfo' initialized.
[   debug] [vmtoolsd] Plugin 'hgfsServer' initialized.
[   debug] [vmtoolsd] Plugin 'powerops' initialized.
[   debug] [vmtoolsd] Plugin 'timeSync' initialized.
[   debug] [vmtoolsd] Plugin 'vix' initialized.
[   debug] [vmtoolsd] Plugin 'vixUser' initialized.
[   debug] [vmtoolsd] Plugin 'vmbackup' initialized.
[ warning] [vmtoolsd] File 'vmsvc' is not a regular file, skipping.
[ warning] [vmtoolsd] File 'vmusr' is not a regular file, skipping.
[   debug] [guestinfo] Setting guest uptime to '1718168662'


Only libresolutionSet.so kills vmtoolsd, but that is probably because I run an X-less server. 

Have tested with your new PPA open-vm-tools-2009.10.15, but that seems
to behave similarly (i.e. plugins not loaded). Only there I was able to
get things working by moving all plugins into the plugins/common folder
- have not tried out moving them all directly under plugins.

** Affects: open-vm-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Plugins in subdirectories are not loaded
https://bugs.launchpad.net/bugs/468566
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list