Hello guys,
I'm currently trying to automate deployment of vm windows servers with terraform & proxmox using cloud init config.
After following some basic howto, I'm able to have the user password modified and ip configured successfully but the hostname is not set to the current vm name. I'm quiet new on cloud init and trying to understand how it work.
After checking logs, I can see some errors about that :
2024-09-25 01:57:06.278 3788 INFO cloudbaseinit.init [-] Executing plugin 'SetHostNamePlugin'
2024-09-25 01:57:06.278 3788 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
2024-09-25 01:57:06.294 3788 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:72
2024-09-25 01:57:06.310 3788 DEBUG cloudbaseinit.plugins.common.sethostname [-] Hostname not found in metadata execute C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\plugins\common\sethostname.py:30
2024-09-25 01:57:06.325 3788 INFO cloudbaseinit.init [-] Executing plugin 'CreateUserPlugin'
2024-09-25 01:57:06.325 3788 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:72
2024-09-25 01:57:06.341 3788 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
2024-09-25 01:57:06.357 3788 INFO cloudbaseinit.plugins.common.createuser [-] Setting password for existing user "Administrator"
It's currently using openstack configuration drive.
Am I missing something ?
It's the last thing I need before creating my doc howto and later create a public tuto of how I managed to deploy my whole infrastructure because there are a lot of lack of recent ressources on latest proxmox and could help a lot.
For anyone, fixed by adding the plugin cloudbaseinit.plugins.common.userdata.UserDataPlugin which was not documented anywhere it was needed. Will create a full how to soon to share how to with proxmox 8.2
Hello guys, I'm currently trying to automate deployment of vm windows servers with terraform & proxmox using cloud init config. After following some basic howto, I'm able to have the user password modified and ip configured successfully but the hostname is not set to the current vm name. I'm quiet new on cloud init and trying to understand how it work.
After checking logs, I can see some errors about that :
Here my config files
And here the user data generated
It's currently using openstack configuration drive. Am I missing something ? It's the last thing I need before creating my doc howto and later create a public tuto of how I managed to deploy my whole infrastructure because there are a lot of lack of recent ressources on latest proxmox and could help a lot.
Thanks for your help.