qm-guest-passwd:tldr:36fa1
qm-guest-passwd: Set an already hashed password for a specific user in a virtual machine interactively.
$ qm guest passwd ${vm_id} ${username} --crypted 1
try on your machine
This command is used to set a password for a specified user in a virtual machine (VM) using the qm command. Here is a breakdown of the command and its arguments:
qm
: qm is a command-line tool used to manage Proxmox Virtual Environment (PVE) virtual machines and containers.guest
: This subcommand of qm is used to manage guest-related settings in a virtual machine.passwd
: This subcommand is used to set or change the password of a user in a virtual machine.${vm_id}
: This is a placeholder for the ID of the virtual machine where the password for the user is being set. You need to replace${vm_id}
with the actual ID of the target VM.${username}
: Similar to${vm_id}
, this is a placeholder for the username of the user whose password is being set. Replace it with the actual username.--crypted 1
: This option indicates that the password provided will be in encrypted form. The value1
suggests it is already encrypted. If the password is not encrypted, you may need to use the--iscrypt 0
option to indicate that the provided password needs to be encrypted before being set.
Overall, this command is used to set the password of a specified user in a virtual machine, considering that the password is already encrypted.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.