VMware Cloud Community
TheVMinator
Expert
Expert

ESXi local accounts

I need to have a user account added to the local authentication mechanism of every ESXi host.  Is there a way to do this with Host Profiles or otherwise automate the addition of this local account for Every ESXi host?

All the ESXi hosts are connected to vCenter and I'm running ESXi 5.5.

0 Kudos
3 Replies
markdjones82
Expert
Expert

You can use powercli to loop through all of the hosts and add.  See the cmdlet below

vSphere 5.5 Documentation Center

http://www.twitter.com/markdjones82 | http://nutzandbolts.wordpress.com
TheVMinator
Expert
Expert

Thanks for the input.  I think PowerCLI is a great option for a one time thing to add the account to ESXi hosts.  In terms of a robust provisioning process, I would like to not depend on needing to run a PowerCLI script each time I add a host to a cluster, I would rather that be done via host profiles if possible since currently that is a process already in place.  Is there a way to do this with Host Profiles?

0 Kudos
markdjones82
Expert
Expert

I used to do it using ESXi kickstart.  As far as I know host profiles does not contain that information and won't create the accounts, but if anyone knows otherwise that would be great.  You might just have to run powercli as a post provision option.

http://www.twitter.com/markdjones82 | http://nutzandbolts.wordpress.com
0 Kudos