Skip to content

Windows Server 2022 Template Setup

Setup/Config changes

General updates and Network Config

  1. I the Templates pool, there is a template called tmpdscocsprxwin2k22-golden)
  2. Clone this template in the same pool
  3. Login password for Administrator: Bunnies123
  4. Install updates and make changes to the template
  5. After updates, enable DHCP on the network card

Cloudbase-init install

  1. Run the Cloudbase-init installer located on the Desktop
  2. Follow the wizzard and keep the storage config default
  3. When changing the username in the Wizzard, change the settings to the below: Cloudbase-init install
  4. Install Cloudbase-init

Warning

Do not finish the sysprep process yet

Cloudbase-init config

  1. Edit the file C:\Program Filles\Cloudbase Solutions\Cloudbase-init\conf\cloudbase-init.conf
  2. Add the following config to the bottom of the file:
    metadata_services=cloudbaseinit.metadata.services.configdrive.ConfigDriveService
    config_drive_raw_hhd=true
    config_drive_cdrom=true
    stop_service_on_exit=true
    
  3. Save and exit

Sysprep

  1. Return to the cloudbase-init wizzard
  2. Ensure both checkboxes are selected: Cloudbase-init sysprep
  3. Click on finish (The sysprep will run and the VM will shut down)

Make dashboard template

Existing template

  1. Copy the VMID of the existing dashboard template (ex. 900010)
  2. Remove the existing dashboard template

New template

  1. Clone the setup-VM
  2. Provide teh template the copied VMID (ex. 900010)
  3. Provide it a name following the naming convention:

tmpdscocswin2k22

  1. Select the Templates pool and keep the storage Same as source*

Note

Optional - Delete the setup VM