New Question
0

Cannot create a user logon session for user: "Admin" [CloudBase-Init 1.1.6, Windows Server 2019]

asked 2025-01-14 07:16:38 +0200

aenagy gravatar image

updated 2025-01-14 07:25:59 +0200

My CloudBase-Init is failing with:

2025-01-13 23:49:12.194 4076 ERROR cloudbaseinit.plugins.windows.createuser [-] Cannot create a user logon session for user: "Admin": cloudbaseinit.exception.WindowsCloudbaseInitException: User logon failed: 'The user name or password is incorrect.'

My user-data looks like this:

users:
  - name: username-Admin
    passwd: password
    primary_group: Users
    groups:
    - Administrators
  - name: "ACME-Admin"
    passwd: &dmin@cme
    primary_group: Users
    groups:
    - Administrators
write_files:
  - path: C:\test.txt
    content: Cloudbase-Init test
runcmd:
  - 'echo Greetings from CloudBase-Init > c:\greeting.txt'
  - 'whoami /all > c:\CloudBase-Init_whoami_all.txt'

I didn't specify that CloudBase-Init should use the account 'admin'. This seems to be an assumption that CloudBase-Init has made.

Where/how do I fix this error?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2025-02-20 16:10:30 +0200

avladu gravatar image

Hello,

According to the docs here: https://cloudbase-init.readthedocs.io... -> if you have enabled this plugin - CreateUserPlugin (it is enabled by default), a user with the name Admin will be created. You can disable the plugin or change the user name to one suited to your scenario.

The list of the default plugins: https://cloudbase-init.readthedocs.io... You can set the desired plugins in the cloudbase-init configuration file.

Thanks.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2025-01-14 07:16:38 +0200

Seen: 2,550 times

Last updated: yesterday