VMware Modern Apps Community
hchchchc
Contributor
Contributor

PAM error when trying to Run Program in Guest through vCO in PhotonOS

hi,

i have an issue with PhotonOS and Orchestrator.

when i try to run a script inside PhotonOS through VMware Tools i get the following error messages:

[Mar 31 14:11:07.011] [ warning] [VCGA] PAM error: Authentication failure (7)

[Mar 31 14:11:07.011] [ warning] [vix] VixToolsImpersonateUser: impersonation failed (3050)

[Mar 31 14:11:07.011] [ message] [vix] VixToolsCreateTempFile: opcode 182 returning 3050

[Mar 31 14:11:07.011] [ message] [vix] ToolsDaemonTcloReceiveVixCommand: additionalError = 2

[Mar 31 14:26:52.492] [ message] [vix] VixTools_ProcessVixCommand: command 186

[Mar 31 14:26:52.494] [ warning] [VCGA] PAM error: Authentication failure (7)

[Mar 31 14:26:52.494] [ warning] [vix] VixToolsImpersonateUser: impersonation failed (3050)

[Mar 31 14:26:52.494] [ message] [vix] VixToolsListProcessesEx: opcode 186 returning 3050

[Mar 31 14:26:52.494] [ message] [vix] ToolsDaemonTcloReceiveVixCommand: additionalError = 2

Mar 31 14:11:07 demchhc031x VGAuth[339]: vmtoolsd: Username and password mismatch for 'root'.

Mar 31 14:20:24 demchhc031x syslog-ng[185]: Log statistics; processed='center(received)=214', processed='src.internal(s_local#2)=142', stamp='src.internal(s_local#2)=1459433424', processed='center(queued)=214', processed='src.none()=0', stamp='src.none()=0', processed='global(payload_reallocs)=217', processed='global(sdata_updates)=0', processed='destination(d_local)=214', processed='global(msg_clones)=0', processed='source(s_local)=214', processed='global(internal_queue_length)=0'

Mar 31 14:26:52 demchhc031x VGAuth[339]: pam_warn(vmtoolsd:auth): function=[pam_sm_authenticate] service=[vmtoolsd] terminal=[<unknown>] user=[root] ruser=[<unknown>] rhost=[<unknown>]

Mar 31 14:26:52 demchhc031x VGAuth[339]: vmtoolsd: Username and password mismatch for 'root'.

Mar 31 14:30:24 demchhc031x syslog-ng[185]: Log statistics; processed='center(received)=217', processed='src.internal(s_local#2)=143', stamp='src.internal(s_local#2)=1459434024', processed='center(queued)=217', processed='src.none()=0', stamp='src.none()=0', processed='global(payload_reallocs)=220', processed='global(sdata_updates)=0', processed='destination(d_local)=217', processed='global(msg_clones)=0', processed='source(s_local)=217', processed='global(internal_queue_length)=0'

root password is 100% right (sopy paste).

i can log on through ssh with this password.

but when i run the workflow "Run Program in Guest" i get these errors.

Failed to authenticate with the guest operating system using the supplied credentials. (Workflow:Run program in guest / Scriptable task (item1)#15)

where line #15 is:

     result = processManager.startProgramInGuest(vm , guestAuth , guestProgramSpec);

thanks for your help !

Chris

Reply
0 Kudos
3 Replies
afonya
Contributor
Contributor

Could you solve this issue? I get the same error when I try to use the invoke-vmscript commandlet which is very frustrating. I cannot deploy from template without manual interaction..

Reply
0 Kudos
KBails
Contributor
Contributor

Did you ever resolve this. Also experiencing the same issue
Reply
0 Kudos
Notch201110141
Contributor
Contributor

Re-install of vmtools fixed this for me.

sudo yum reinstall open-vm-tools.x86_64 -y

Reply
0 Kudos