New Question

s-cappa's profile - activity

2022-10-04 14:05:49 +0200 received badge  Notable Question (source)
2022-10-04 14:05:49 +0200 received badge  Popular Question (source)
2022-09-01 11:24:30 +0200 edited answer Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

After some experiments I discovered that this happens in this situation: Windows server 2019 with all updates and "sys

2022-09-01 11:02:06 +0200 commented answer Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

I updated the github issue https://github.com/cloudbase/cloudbase-init/issues/100#issuecomment-1233887470 with a better

2022-08-30 11:52:14 +0200 commented answer Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

@avladu and @ross89 I created an issue on github to discuss the problem in a better way https://github.com/cloudbase/clo

2022-06-06 18:10:44 +0200 commented answer Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

Do you have any updates about this? Thank you.

2022-05-24 09:43:50 +0200 received badge  Famous Question (source)
2022-05-20 10:08:34 +0200 commented answer Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

Hi. Ok, so basically this will require an update of cloudbase-init to fix it. Is there a temporary workaround to cancel

2022-05-19 09:59:43 +0200 received badge  Notable Question (source)
2022-05-17 11:21:11 +0200 edited answer Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

After some experiments I discovered that this happens in this situation: Windows server 2019 with all updates and "sys

2022-05-17 11:20:32 +0200 edited question Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

Cloudbase-init localscript exitcode 1003 won't restart I created a powershell script, but when I add "exit 1003" it won'

2022-05-17 11:15:47 +0200 edited answer Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

After some experiments I discovered that this happens in this situation: Windows server 2019 with all updates (the VM

2022-05-17 11:15:04 +0200 answered a question Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

After some experiments I discovered that this happens in this situation: - Windows server 2019 with all updates (the VM

2022-05-17 09:48:56 +0200 received badge  Editor (source)
2022-05-17 09:48:56 +0200 edited question Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

Cloudbase-init localscript exitcode 1003 won't restart I created a powershell script, but when I add "exit 1003" it won'

2022-05-17 09:48:39 +0200 received badge  Popular Question (source)
2022-05-13 13:06:36 +0200 answered a question Cloudbase-init localscript exitcode 1003 won't restart

Oh, I forgot to say that I'm using cloudbase-init 1.1.3 dev

2022-05-13 12:50:47 +0200 asked a question Cloudbase-init localscript exitcode 1003 won't restart

Cloudbase-init localscript exitcode 1003 won't restart I created a powershell script, but when I add "exit 1003" it won'

2022-05-13 12:49:54 +0200 asked a question Cloudbase-init localscript exitcode 1003 won't restart when converting to DomainController

Cloudbase-init localscript exitcode 1003 won't restart I created a powershell script, but when I add "exit 1003" it won'

2021-09-29 13:46:07 +0200 received badge  Enthusiast
2021-09-22 12:53:41 +0200 commented answer If I add LocalScripts, Clousebase-init resets my Administrator account password

What do you mean exactly for "cloud-config information"? Are you talking about "cloud-config" conf files or "user-data"?

2021-09-22 12:53:32 +0200 commented answer If I add LocalScripts, Clousebase-init resets my Administrator account password

What do you mean exactly for "cloud-config information"? Are you talking about "cloud-config" conf files or "user-data"?

2021-09-22 12:53:18 +0200 commented answer If I add LocalScripts, Clousebase-init resets my Administrator account password

What do you mean exactly for "cloud-config information"? Are you talking about "cloud-config" conf files or "user-data"?

2021-09-22 10:13:03 +0200 marked best answer If I add LocalScripts, Clousebase-init resets my Administrator account password

Hi! I'm using cloudbase-init in this environment:

  • Windows Server 2016 with all available updates installed
  • sysprepped Windows Server 2016 with sysprep.exe /generalize /oobe /shutdown /unattend:Unattend.xml
  • Network with static ipv4 address
  • Cloudbase-init 1.1.2 stable x64
  • NoCloudConfigDrive (iso image called cidata)
  • power shell localscripts are in a dedicated folder of cidata iso image (D:\localscripts)

These are the steps executed automatically:

  1. Windows server 2016 starts asking to change Administrator password
  2. After a couple of minutes it reboots automatically (thanks to delayed start). Now I can login with both "Administrator" and "Boris" accounts with the passwords defined in user-data
  3. After a couple of minutes it reboots again (when It runs local scripts)
  4. Now I cannot login anymore as Administrator, because password is changed <---- WHY????

I'm having lot of troubles posting in this text editor, so I added a link at the end of the post to download all files.

These are my Configuration files: - config-init.conf

[DEFAULT]
username=Administrator
groups=Administrators
inject_user_password=true
first_logon_behaviour=no
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=
mtu_use_dhcp_config=false
ntp_use_dhcp_config=false
local_scripts_path=D:\localscripts\
metadata_services=cloudbaseinit.metadata.services.nocloudservice.NoCloudConfigDriveService
plugins=cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin,
      cloudbaseinit.plugins.windows.createuser.CreateUserPlugin,
      cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin,
      cloudbaseinit.plugins.common.userdata.UserDataPlugin,
      cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin,
      cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin
allow_reboot=true
stop_service_on_exit=false
check_latest_version=false
  • config-init-unattend.conf

    [DEFAULT] injectuserpassword=false firstlogonbehaviour=no configdriverawhhd=true configdrivecdrom=true configdrivevfat=true bsdtarpath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe mtoolspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\ verbose=true debug=true logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\ logfile=cloudbase-init-unattend.log defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN loggingserialportsettings= mtuusedhcpconfig=false ntpusedhcpconfig=false localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\ metadataservices= plugins= allowreboot=true stopserviceonexit=false checklatest_version=false

  • Unattend.xml (no changes, I'm using the default file provided by Cloudbase-init)

File in cidata iso image:

  • user-data:

    cloud-config

    hostname: windows-server users:

    • name: Administrator passwd: Password1! primary_group: Administrators
    • name: Boris passwd: Password1! primary_group: Users
  • meta-data:

    instance-id: b4883f9ee294 network-interfaces: | auto Ethernet iface Ethernet inet static address 192.168.100.30 network 192.168.100.0 netmask 255.255.255.0 broadcast 192.168.100.255 gateway 192.168.100.234 hwaddress ether 02:00:00:84:fa:04 dns-nameservers 1.1.1.1

  • localscripts/powershell.ps1

    ps1_sysnative

    // do something only to try localscripts: Get-CimClass -ClassName Win32_*System
    exit 1001

I also configure Cloudbase-init with delayed-auto in this way:

sc.exe config "cloudbase-init" start= delayed-auto

Here you can download my .conf and .log files ... (more)

2021-09-22 10:13:03 +0200 received badge  Scholar (source)
2021-09-22 10:12:57 +0200 commented answer If I add LocalScripts, Clousebase-init resets my Administrator account password

thank you, now it's working

2021-09-21 12:49:22 +0200 received badge  Famous Question (source)
2021-09-20 10:47:12 +0200 answered a question If I add LocalScripts, Clousebase-init resets my Administrator account password

If you missed my log files, I added a link at the end of the initial post. However, to be sure I repost the download lin

2021-09-20 10:45:05 +0200 received badge  Notable Question (source)
2021-09-20 10:45:05 +0200 received badge  Popular Question (source)
2021-09-16 17:51:45 +0200 asked a question If I add LocalScripts, Clousebase-init resets my Administrator account password

If I add LocalScripts, Clousebase-init resets my Administrator account password Hi! I'm using cloudbase-init in this env

2021-09-07 18:25:53 +0200 commented answer Windows 2016 - cloudbase error - device not ready

I have the same problem, but I can't try the new installer because it's expired again. Does Beta 1.1.3dev build contain