VMware Cloud Community
tdubb123
Expert
Expert

created local user but cannot login

I created a localuser on 6.5 esxi server but cannot login as user

connect-viserver -server esxiserver -user root -password "mypass"

New-VMHostAccount -Id test -Password "mypass" -UserAccount -GrantShellAccess -Server esxiserver

new-vipermission -entity -principal test -role admin -server esxiserver

any idea?

0 Kudos
4 Replies
LucD
Leadership
Leadership

What kind of login, SSH or Connect-VIServer?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
tdubb123
Expert
Expert

connect-viserver local to esxi user

0 Kudos
LucD
Leadership
Leadership

Are you sure the user has been created, the password you provide needs to follow the complexity rules (as defined to the PAM).

Just tried, for me it seems to be working (with a password that follows the rules).


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
bhushanpai
Contributor
Contributor

try login with domain\username and your password

default domain is vsphere.local

0 Kudos