Bug 200637 - emulators/open-vm-tools: vmrun guest commands do not work [FIX]
Summary: emulators/open-vm-tools: vmrun guest commands do not work [FIX]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Steve Wills
Depends on:
Reported: 2015-06-04 14:59 UTC by bms
Modified: 2015-06-07 12:56 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description bms 2015-06-04 14:59:28 UTC
In FreeBSD, the following vmrun commands fail to operate due to a PAM-related permissions issue: copyFileFromHostToGuest, runProgramInGuest, runScriptInGuest.

Symptom: If I try to use vmrun with e.g. a passwordless account, I get the following log message:
Nov 27 16:49:11 myhost vmsvc[9911]: in openpam_load_module(): no
pam_unix2.so found

Root cause: The PAM configuration installed with the port refers to
non-existent PAM modules.

Resolution: Remove the non-existent PAM modules from the configuration installed for vmtoolsd.

sed -i.orig -e '/pam_unix2/d;/pam_unix_auth/d;/pam_unix_acct/d'

With this change, vmrun commands will work with the following caveats at the host:

 - The runScriptInGuest command takes the content -- not a path -- of a script to be executed with /bin/sh.

 - vmrun logs error messages to stdout, so they need to be parsed for guest command return codes.
Comment 1 commit-hook freebsd_committer 2015-06-07 12:54:12 UTC
A commit references this bug:

Author: swills
Date: Sun Jun  7 12:53:17 UTC 2015
New revision: 388693
URL: https://svnweb.freebsd.org/changeset/ports/388693

  emulators/open-vm-tools: Fix pam issue

  While here, fix a plist issue

  PR:		200637

Comment 2 Steve Wills freebsd_committer 2015-06-07 12:56:20 UTC
Fix committed, thanks. The caveats you mention are normal for vmrun and how it's documented to work, as far as I know.