Automate deploying Windows Server 2019 with Terraform and Cloudbase-init

UnreleasedCode

New Member
Feb 24, 2020
2
0
1
30
Good evening Proxmox community,

I use the Terraform-proxmox-provider for automated deploying of Windows Server 2019 instances.
https://github.com/Telmate/terraform-provider-proxmox

I prepared a Windows Server 2019. Installed Cloudbase-init and configured the cloudbase-init.conf and cloudbase-init-unattend.conf as described here:
https://forum.proxmox.com/threads/finally-cloudbase-init-windows-servers.48823/#post-235085

My question is, how can I use the Metadata-service and Userdata-service to set a User/password and the hostname?

Thanks in advance, UnreleasedCode
 

al1304

New Member
Jan 29, 2020
1
1
3
37
Hi,

I faced a similar issue few days/weeks ago and I came across this post https://forum.proxmox.com/threads/finally-cloudbase-init-windows-servers.48823/

proxmox does not put the password in the metadata when generating the cloudrive image, but in userdata, so cloudbase is not able to fetch it.
I solved the issue by patching the CloudInit.pm file in order to put he password in the meta_data.json file only when working with a windows vm. According to my tests, the password shall be put under "meta" : {"admin_pass" : "<password value>"}
 
  • Like
Reactions: UnreleasedCode

smadern

New Member
Feb 2, 2020
1
0
1
32
Any solution to this? Maybe cloudinit with pve without terraform? I see others posts using it in starts 2019 but now with the pve v6.X its different..
 

jowendtd

New Member
Jul 24, 2020
1
0
1
33
Good evening Proxmox community,

I use the Terraform-proxmox-provider for automated deploying of Windows Server 2019 instances.
https://github.com/Telmate/terraform-provider-proxmox

I prepared a Windows Server 2019. Installed Cloudbase-init and configured the cloudbase-init.conf and cloudbase-init-unattend.conf as described here:
https://forum.proxmox.com/threads/finally-cloudbase-init-windows-servers.48823/#post-235085

My question is, how can I use the Metadata-service and Userdata-service to set a User/password and the hostname?

Thanks in advance, UnreleasedCode

Can you share your Terraform code and cloudbase-init files? I haven't been able to get that far. I've tried Win7 and 2008R2. Running Prox 6.2
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!