[Bug 195947] New: emulators/open-vm-tools vmware-kmod does not start on boot

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 13 17:40:48 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195947

            Bug ID: 195947
           Summary: emulators/open-vm-tools vmware-kmod does not start on
                    boot
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: swills at FreeBSD.org
          Reporter: delycid at gmail.com
          Assignee: swills at FreeBSD.org
             Flags: maintainer-feedback?(swills at FreeBSD.org)

My first bug report, please let me know if something is wrong)

*Component: emulators/open-vm-tools and emulators/open-vm-tools-nox11 (version
1280544_9,1)

*OS: FreeBSD 10.1-RELEASE

*Summary: /usr/local/etc/rc.d/vmware-kmod script fails to start on boot.

*Description: 

/usr/local/etc/rc.d/vmware-kmod script fails to start on boot with the
following messages
...
Mounting local file systems:.
>Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"
>Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"
>Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"
>Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"
Writing entropy file:
...

but can be started by hand after from the root shell


*Overview: 

Seems it’s happening because it tries to start too early
rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
…
/etc/rc.d/cleanvar
/etc/rc.d/FILESYSTEMS
/usr/local/etc/rc.d/vmware-kmod <<<< this one
/etc/rc.d/kldxref
/etc/rc.d/kld
/etc/rc.d/addswap
/etc/rc.d/random
/etc/rc.d/postrandom
…

/usr/local/etc/rc.d/vmware-kmod script calls  
checkvm_cmd="/usr/local/bin/vmware-checkvm
which is depends on libglib-2.0.so.0
ldd /usr/local/bin/vmware-checkvm
/usr/local/bin/vmware-checkvm:
    libvmtools.so.0 => /usr/local/lib/libvmtools.so.0 (0x80081e000)
    libkvm.so.6 => /lib/libkvm.so.6 (0x800a96000)
    libcrypt.so.5 => /lib/libcrypt.so.5 (0x800c9e000)
    libthr.so.3 => /lib/libthr.so.3 (0x800ebe000)
    libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x8010e3000) <<<
…


and it’s called before /etc/rc.d/ldconfig

thus /usr/local/etc/rc.d/vmware-kmod fails to start
because vmware-checkvm does not know about $LOCALBASE libs yet

The solution is to modify /usr/local/etc/rc.d/vmware-kmod by adding
# REQUIRE: FILESYSTEMS ldconfig

*Steps to Reproduce:

1) Install open-vm-tools or open-vm-tools-nox11

2) Reboot the system


*Expected Results: rc script starts and loads vmware modules


*Build Date & Hardware: 
13 December 2014
Vmware Fusion 7.1.0  (Vmware software version 6)

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer swills at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list