qm-showcmd
Show the command Proxmox uses for actions
TLDR
Show command-line for a specific virtual machine
Put each option on a new line to enhance human readability
Fetch configuration values from a specific snapshot
SYNOPSIS
qm showcmd
PARAMETERS
The unique ID of the virtual machine.
--pretty
Format the output for better readability.
--no-name-lookups
Do not try to lookup names for pci devices (faster).
--ide
Only show the command for the specified IDE drive
--sata
Only show the command for the specified SATA drive
--scsi
Only show the command for the specified SCSI drive
--virtio
Only show the command for the specified VirtIO drive
DESCRIPTION
The `qm showcmd` command is a Proxmox Virtual Environment (PVE) utility that displays the complete QEMU command-line string used to launch a specific virtual machine (VM). This is crucial for troubleshooting VM startup issues, understanding the underlying QEMU configuration, debugging complex setups, and for advanced users who need precise control over QEMU's behavior. It allows you to see exactly how Proxmox is configuring QEMU, including parameters related to CPU, memory, disk images, networking, and other hardware virtualization settings. This information is particularly helpful when manually translating Proxmox configuration settings to standalone QEMU configurations, or when seeking help from QEMU experts. The output can be piped to other commands for further processing or saved to a file for later analysis. This is an invaluable tool for diagnosing problems related to VM behavior, or to allow a deeper understanding of Proxmox's interaction with QEMU.
Important: this command does not start or affect your Virtual Machine, it only shows the command.
USAGE EXAMPLE
To display the QEMU command line for VM with ID 100:
`qm showcmd 100`
To display the command line and pretty format it: `qm showcmd 100 --pretty`
SEE ALSO
qm(1), qemu-system-x86_64(1)