Showing posts with label opensuse. Show all posts
Showing posts with label opensuse. Show all posts

Thursday, February 5, 2009

VMware Server Console 1.0.x cannot connect to VMware Server on openSuSE 11.1 64 bit

VMware Server Console shows:
There was a problem connecting:

Cannot connect to host www.xxx.yyy.zzz: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd

VMware Server Connection Refused


Check if xinetd is installed:
myserver # rpm -q xinetd
xinetd-2.3.14-129.35


Check current runlevel and check if xinetd is on in chkconfig runlevels
myserver # runlevel; chkconfig --list xinetd
N 5
xinetd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

myserver # rcxinetd start
Starting INET services. (xinetd) done
myserver # chkconfig xinetd on

myserver # chkconfig --list xinetd
xinetd 0:off 1:off 2:off 3:on 4:off 5:on 6:off


From Windows:
telnet www.xxx.yyy.zzz 904

Got response:
220 VMware Authentication Daemon Version 1.10: SSL Required, MKSDisplayProtocol:VNC

So there is a port listening


No Connection Refused anymore!

tnx web: http://communities.vmware.com/thread/115879


VMware Server Console shows a new dialog:
Login (username/password) incorrect

/var/log/messages on my VMware Server host:
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM unable to dlopen(/usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so)
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM [error: /usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so: cannot open shared object file: No such file or directory]
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM adding faulty module: /usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM unable to dlopen(/lib/security/pam_warn.so)
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM [error: /lib/security/pam_warn.so: cannot open shared object file: No such file or directory]
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM adding faulty module: /lib/security/pam_warn.so
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM unable to dlopen(/lib/security/pam_deny.so)
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM [error: /lib/security/pam_deny.so: cannot open shared object file: No such file or directory]
Feb 5 13:20:09 pc2019 vmware-authd[4736]: PAM adding faulty module: /lib/security/pam_deny.so
Feb 5 13:20:09 pc2019 vmware-authd[4736]: pam_unix_auth(vmware-authd:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
`


Install pam-32bit package with yast
myserver # yast -i pam-32bit

Modify /etc/pam.d/vmware-authd
vi /etc/pam.d/vmware-authd
#%PAM-1.0
#auth sufficient /usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so shadow nullok
#auth required /usr/lib/vmware/lib/libpam.so.0/security/pam_unix_auth.so shadow nullok
#account sufficient /usr/lib/vmware/lib/libpam.so.0/security/pam_unix2.so
#account required /usr/lib/vmware/lib/libpam.so.0/security/pam_unix_acct.so
auth sufficient /lib/security/pam_unix.so shadow nullok
auth required /lib/security/pam_unix_auth.so shadow nullok
account sufficient /lib/security/pam_unix.so
account required /lib/security/pam_unix_acct.so


Make softlink for ease-of-use:
ln -s /etc/init.d/vmware /usr/sbin/rcvmware

Restart VMware
myserveretc/pam.d # rcvmware restart
Stopping VMware virtual machines...
Stopping VMware services:
Virtual machine monitor done
Bridged networking on /dev/vmnet0 done
Virtual ethernet done
Starting VMware services:
Virtual machine monitor done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done
Starting VMware virtual machines... done


This worked for me: no problems anymore

My var/log/messages now shows:

Feb 5 14:41:21 pc2019 vmware-authd[6601]: login from 172.16.16.252 as root
Feb 5 14:41:22 pc2019 vmware-authd[6602]: login from 172.16.16.252 as root



tnx web: http://blog.netnerds.net/2007/10/vmware-server-install-vmware-server-10-on-suse-102-x64/