Cloud-init and RANDOM passwords

bindi

Member
Jul 5, 2021
8
1
8
30
Hey, when using user:RANDOM password in a custom.yaml, is it possible to get the output of the passwords set to the task status window in the webgui?

The config works, but I have to be fast to attach to the VM on a first boot to catch the passwords. I'm aware that I should use public keys, but this is just at home and for friends who need quick VMs.

YAML:
#cloud-config
hostname: debian12-cloudinit
manage_etc_hosts: true
fqdn: debian12-cloudinit
chpasswd:
  list: |
    debian:RANDOM
    root:RANDOM
  expire: True
users:
  - default
package_upgrade: true
 

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 yours easily in our online shop.

Buy now!