Proxmox does no longer need to be patched. This was implemented natively in PVE around a year ago.Hello everyone,
First if all thank you for great Proxmox and cloudbase. Coming from Hyper-V and Virtualizator it's a fresh and new.
Looking for some assistance with couldbase for Windows Server 2022 template where password is not set. To make it short I did following .
Using Proxmox 8.0.3
- Created new VM with settings:
Code:4.00 GiB 4 (1 sockets, 4 cores) [host [vcpus=4] Ww BIOS OVMF (UEF) 0 Display SPICE (qxl) Machine pc-q35-8.0 SCSI Controller VirtiO SCSI single CD/DVD Drive (ide2) localiso/WIN_2022_SERVER_EVALX64FRE_en-us.isomedia-cdrom.s. ○ CD/DVD Drive (sata1) localiso/virtio-win.iso,media=cdrom,size=709474K E Hard Disk (scsi0) storage:102/vm-102-disk-1.qcow2.jothread=1,size=32G Cloudlnit Drive (scsi1) storage:102/vm-102-cloudinit.qcow2,media=cdrom,size=4M = Network Device (neto) virtio=36-4E24 26.7F:41,bridge=vmbr0.frewall=1 E EFI Disk storage:102/vm-102-disk-0.qcow2,efitype=4m.pre-enrolled-keys=1,siz. E TPM State storage:102/v-102-disk-2.raw,size=4M,version=y2.0 @ Serial Port (seriall) socket
Installed on vm virtio drivers and guest agent along with cloubase init
Cloudbase conf
INI:[DEFAULT] username=Administrator groups=Administrators inject_user_password=true first_logon_behaviour=no rename_admin_user=true bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\ verbose=true debug=true log_dir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\ log_file=cloudbase-init.log default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN logging_serial_port_settings=COM1,115200,N,8 mtu_use_dhcp_config=true ntp_use_dhcp_config=true local_scripts_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\ check_latest_version=true metadata_services=cloudbaseinit.metadata.services.configdrive.ConfigDriveService plugins=cloudbaseinit.plugins.common.mtu.MTUPlugin, cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin, cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin, cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin, cloudbaseinit.plugins.common.userdata.UserDataPlugin, cloudbaseinit.plugins.windows.createuser.CreateUserPlugin, cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin, cloudbaseinit.plugins.common.sshpublickeys.SetUserSSHPublicKeysPlugin, cloudbaseinit.plugins.windows.winrmlistener.ConfigWinRMListenerPlugin
Converted it to template without sysprep as i dont need it at this phase.
Created new VM with WHMCS from template and I got following working
- Username is changing properly or skipped if it's the same
- VM resources are allocated properly and disk resized properly (recovery partition was removed)
- Network static ip configuration has been assigned along with dns settings.
- hostname/vps or computer name is changed in Windows settings.
Only thing that is not working is password change. On cloudinit i have default template password and I get from Cloudbase logs that username or password were not correct and random password is being generated by cloudbase.
My guess is that password is maybe sent encrypted since this proxmox is not patched. But since I'm still not expert in proxmox I need your assistance to debug this issue.
How to see proxmox cloudinit data that is being sent to vm to check what password is being sent to Cloudbase?
If encrypted password is being sent what file do I need to patch and how since everything else is working except password.
Thanks
Make sure you have the OS type of the VM correctly set.