For VMs that run Qemu Guest Agent, log into the Proxmox Hypervisor and run the following command:
qm guest passwd <vmid> <username>