Forrest logo
back to the qm tool

qm-cloudinit-dump:tldr:ff5f5

qm-cloudinit-dump: Generate a cloudinit file for a specific configuration type.
$ qm cloudinit dump ${virtual_machine_id} ${select}
try on your machine

This command is part of the "qm" (QEMU Manager) tool and is used to dump the cloud-init settings of a virtual machine.

Here's the breakdown of each component:

  • "qm" refers to the QEMU Manager, which is a command-line tool for managing QEMU/KVM virtual machines.
  • "cloudinit" is a tool used for initializing cloud instances with metadata like user-data, SSH keys, and network configuration.
  • "dump" is a command within the cloud-init tool that allows you to extract and display the current cloud-init settings of a virtual machine.
  • "${virtual_machine_id}" refers to the ID of the virtual machine for which you want to extract the cloud-init settings. You need to replace this placeholder with the actual ID of the virtual machine you want to work on.
  • "${select}" is an optional parameter that lets you specify which specific cloud-init setting you want to dump. You can replace this placeholder with the specific setting you are interested in, such as "network" or "users". If you omit this parameter, it will dump all the cloud-init settings.

To use this command, replace "${virtual_machine_id}" with the actual ID of the virtual machine you want to inspect. Optionally, you can also specify "${select}" to filter the output to a specific cloud-init setting.

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