New Question
0

Error 1069: The service did not start due to a logon failure

asked 2020-03-06 08:49:47 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I install cloudbase-init with an account "cloudbase-init". Thus, the service cloudbase-init is logined by user "cloudbase-init" with password. However sometime the user "cloudbase-init" 's password seems to be changed which cause the service cloudbase-init cannot start. When I try start the service, the Windows tells me "1069 the service did not start due to a logon failure".

This is my cloudbase-init.conf


[DEFAULT]

username=Administrator

groups=Administrators

inject_user_password=false

config_drive_raw_hhd=true

config_drive_cdrom=true

config_drive_vfat=true

bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe

mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\

verbose=true

debug=true

logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

logfile=cloudbase-init.log

default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN

logging_serial_port_settings=COM1,115200,N,8

mtu_use_dhcp_config=true

ntp_use_dhcp_config=true

plugins=cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin,cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

allow_reboot=false

retry_count=40

retry_count_interval=5
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2020-03-06 14:43:25 +0300

avladu gravatar image

updated 2020-03-06 14:44:03 +0300

Hello,

Can you provide more information on how did you install the Cloudbase-Init? Did you use the installer?

By default, Cloudbase-Init runs under user cloudbase-init. At each service start, the password is reset for that user and the process is restarted using the new credentials. This behaviour is used to avoid 'pass the hash' attacks from cloned instances.

Also, there is a cli option that disables the password reset (do not use it if you have in your cloud the option to snapshot and reinstatiate the image): resetservicepassword = True. If you set it to False, then the password reset is not performed. Note this is a cli config option, not a file configuration option. It should be used like this: cloudbase-init.exe --resetserviceoption=False --config-file <path to="" config="" file="">.

The best course of action is to install the service under LocalSystem. Still, if you can provide the Cloudbase-Init logs and the way you installed Cloudbase-Init, it would be great to debug and solve the initial issue.

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: 2020-03-06 08:49:47 +0300

Seen: 56 times

Last updated: Mar 06