If you update to 8.2.4 (available in enterprise repo), you get the patched version from the repository.Someone can upload the patched files for Proxmox 8.2.2 ?
/usr/share/perl5/PVE/API2/Qemu.pm and /usr/share/perl5/PVE/QemuServer/Cloudinit.pm
Thanks
first_logon_behavior=no
Same here with Windows Server 2019, PVE8.3.2 and Cloudbase-init 1.1.7.dev9. I always have to change the password on first start and the username and password set in Proxmox' cloudinit config is ignored.Hey,
I’ve installed Windows Server 2025 with Cloudbase Setup. Everything seems to work fine, except that the password set via Cloud-Init isn’t applied. The IPv4 address configured through Cloud-Init works without any issues.
When I start the VM, Windows prompts me to set a new password.
Has anyone encountered this issue before or knows how to fix it?
Additional info:
In Proxmox, the username is set to "Default" by default, while in the Cloudbase Config, it’s set to "Administrator." Even if I change the username in Proxmox to "Administrator," the problem persists.
Thanks in advance!
Did you setSame here with Windows Server 2019, PVE8.3.2 and Cloudbase-init 1.1.7.dev9. I always have to change the password on first start and the username and password set in Proxmox' cloudinit config is ignored.
Is it still needed to patch some Proxmox files? And did you ever find a solution?
first_logon_behavior=no
in the cloudbase-init.conf file, as mentioned above and in the docs?[DEFAULT]
username=Admin
groups=Administrators
inject_user_password=true
first_logon_behaviour=no
rename_admin_user=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
log_dir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\
log_file=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
local_scripts_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
check_latest_version=true
metadata_services=cloudbaseinit.metadata.services.configdrive.ConfigDriveService
plugins=cloudbaseinit.plugins.common.mtu.MTUPlugin,
cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin,
cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin,
cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin, cloudbaseinit.plugins.common.userdata.UserDataPlugin,
cloudbaseinit.plugins.windows.createuser.CreateUserPlugin,
cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin,
cloudbaseinit.plugins.common.sshpublickeys.SetUserSSHPublicKeysPlugin,
cloudbaseinit.plugins.windows.winrmlistener.ConfigWinRMListenerPlugin
{"network_config":{"content_path":"/content/0000"},"admin_pass":"<password>","uuid":"0e6d5741cb810029225256ca05711b409762699a"}
#cloud-config
hostname: cloudinit-test
manage_etc_hosts: true
fqdn: cloudinit-test
user: proxmox
password: <password>
chpasswd:
expire: False
users:
- default
package_upgrade: true
2025-01-22 14:50:38.355 2408 INFO cloudbaseinit.init [-] Executing plugin 'CreateUserPlugin'
2025-01-22 14:50:38.355 2408 DEBUG cloudbaseinit.metadata.services.base [-] Using cached copy of metadata: 'openstack/latest/meta_data.json' _get_cache_data C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\metadata\services\base.py:75
2025-01-22 14:50:38.355 2408 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' load_class C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\utils\classloader.py:35
2025-01-22 14:50:38.371 2408 INFO cloudbaseinit.plugins.common.createuser [-] Renaming builtin admin user "Administrator" to Admin and setting password
2025-01-22 14:50:38.449 2408 DEBUG cloudbaseinit.osutils.windows [-] Creating logon session for user: True\Admin create_user_logon_session C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\osutils\windows.py:650
That's a limitation of the disk-based ConfigDrive datasource we currently use. So this change would have to be in cloudbase-init.Oh. Read about this. But thought this is fixed in the meantime.
Who would have to do some work here? Cloudbase or Proxmox?
Hi @mira, sorry for the late reply.Did you setfirst_logon_behavior=no
in the cloudbase-init.conf file, as mentioned above and in the docs?
first_logon_behavior=no
is active.[DEFAULT]
username=Administrator
groups=Administrators
netbios_host_name_compatibility=true
inject_user_password=true
first_logon_behaviour=no
config_drive_raw_hhd=true
config_drive_cdrom=true
config_drive_vfat=true
locations=cdrom
bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe
mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\
metadata_services=cloudbaseinit.metadata.services.configdrive.ConfigDriveService
verbose=true
debug=true
ntp_use_dhcp_config=true
real_time_clock_utc=true
ntp_enable_service=true
rdp_set_keepalive=true
enable_automatic_updates=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
local_scripts_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
plugins=cloudbaseinit.plugins.common.mtu.MTUPlugin, cloudbaseinit.plugins.windows.ntpclient.NTPClientPlugin, cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin, cloudbaseinit.plugins.windows.createuser.CreateUserPlugin, cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin, cloudbaseinit.plugins.common.sshpublickeys.SetUserSSHPublicKeysPlugin, cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin, cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin, cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin
allow_reboot=true
stop_service_on_exit=false
check_latest_version=false
We use essential cookies to make this site work, and optional cookies to enhance your experience.