Closed jwaldherr closed 1 month ago
Hello,
You need to remove the plugin cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin
to set the hostname from the Cloudbase-init-unattend.conf, otherwise the plugin won t be executed at the following reboot.
Thanks.
Hello,
Sorry for the Late Reply. This solved the Problem.
Thanks.
I'm working on a MAAS Image to deploy for Bare Metal Devices, on Microsoft Server 2022 the Deployment of the Image works like a charm. On Windows 10 and Windows 11 the Hostname of the Device is Overwritten the final deployment process. The Cloudbase Plugins does Set the Hostname only Windows 10 & 11 Sysprep Process Overwrites the Hostname to DESKTOP-XXXX with a random string on the end. I have found those same issues.
https://ask.cloudbase.it/question/3315/windows-10-hostname-not-set/ https://ask.cloudbase.it/question/1036/windows-10-hostname-not-being-set/
The Fixes on Changing the cloudbase-init run in Unattend.xml & Removing the SetHostnamePlugin from Cloudbase-Init.conf did not help. From the Cloudbase-Init-unattend log on Line 43 it's clear that the Plugin does set the Hostname.
########## My config.ini ##########
########## My Unattend.xml ##########
########## My Cloudbase-init.conf ##########
########## My Cloudbase-init-unattend.conf ##########
########## Cloudbase Init Log ########## cloudbase-init.log ########## Cloudbase Init Unattend Log ########## cloudbase-init-unattend.log