Linux command
qm-agent 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
This command is an alias of `qm guest cmd`
tldr qm guest cmd
Execute a guest agent command on a VM
qm agent [vmid] [command]
Ping the guest agent to check if it is running
qm agent [vmid] ping
Freeze the guest filesystem (for snapshots)
qm agent [vmid] fsfreeze-freeze
Thaw the guest filesystem after a snapshot
qm agent [vmid] fsfreeze-thaw
说明
qm agent is an alias for qm guest cmd in Proxmox VE. It executes commands through the QEMU guest agent (qemu-ga) running inside a virtual machine, enabling host-to-guest communication for operations like filesystem freeze/thaw, graceful shutdown, and information retrieval. The QEMU guest agent must be installed and running inside the VM, and the agent option must be enabled in the VM configuration.
FAQ
What is the qm-agent command used for?
qm agent is an alias for qm guest cmd in Proxmox VE. It executes commands through the QEMU guest agent (qemu-ga) running inside a virtual machine, enabling host-to-guest communication for operations like filesystem freeze/thaw, graceful shutdown, and information retrieval. The QEMU guest agent must be installed and running inside the VM, and the agent option must be enabled in the VM configuration.
How do I run a basic qm-agent example?
Run `tldr qm guest cmd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more qm-agent examples?
This page includes 5 examples for qm-agent, plus related commands for nearby Linux tasks.