LinuxCommandLibrary

qm-cloud-init

Configure cloudinit settings for virtual machines managed by Proxmox Virtual Environment (PVE).

TLDR

Configure cloudinit settings for a specific user and set password for the user

$ qm cloud-init [vm_id] -user=[user] -password=[password]
copy


Configure cloudinit settings for a specific user and set password for the user with a specific SSH key
$ qm cloud-init [vm_id] -user=[user] -password=[password] -sshkey=[ssh_key]
copy


Set the hostname for a specific virtual machine
$ qm cloud-init [vm_id] -hostname=[hostname]
copy


Configure the network interface settings for a specific virtual machine
$ qm cloud-init [vm_id] -ipconfig [ipconfig]
copy


Configure a shell script to execute before cloud-ini is run on a virtual machine
$ qm cloud-init [vm_id] -pre [script]
copy

Copied to clipboard