Cloud-Init Windows
This is a Cloud-Init Agent for Windows. It's used to deploy VServer at Realtoxmedia. It currently sets the following settings in Windows:
- Hostname
- IP Addresses
- Password
As windows needs the password in Cleartext, it cannot be set directly from the Cloud-Init configuration. We implemented a special IP, which compares the hashed password ( which is provided via Cloud-Init ), with the unencrypted password, saved in WHMCS. The Password can be found here
Installation
There is a script called install.ps1
. Copy this script to the VM and execute it using powershell. It will download the latest version and register the service. After installing place the config.json
in the C:\Cloud-Init
folder. Now the image is prepared and you can reset it to the OOBE mode with the unattend.xml file and the following command: C:\Windows\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:"C:\Cloud-Init\unattend.xml"