Forrest logo
back to the qm tool

qm-guest-passwd:tldr:a2311

qm-guest-passwd: Set a password for a specific user in a virtual machine interactively.
$ qm guest passwd ${vm_id} ${username}
try on your machine

The given command is using the "qm" command line tool in a Linux-based system to set a password for a specific guest virtual machine (VM).

Here is an explanation of the command and its components:

  • qm: It is the command line tool used to manage QEMU/KVM virtual machines. QEMU is a virtualization tool, and KVM (Kernel-based Virtual Machine) is the virtualization module for the Linux kernel.
  • guest passwd: This is a sub-command of the "qm" tool used to set a password for a guest VM user.
  • ${vm_id}: This is a placeholder for the ID (or name) of the virtual machine for which the password is being set. It is a variable that should be replaced with the actual VM ID (or name).
  • ${username}: This is a placeholder for the username of the VM user for whom the password is being set. It is another variable that needs to be replaced with the actual username.

Overall, the command is used to set a password for a specific user (${username}) in a virtual machine (${vm_id}) using the "qm" command line tool in a QEMU/KVM environment.

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.
back to the qm tool