Linux command
qm-cleanup 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Clean up
qm cleanup vmid clean-shutdown guest-requested
说明
qm cleanup cleans up resources associated with a QEMU/KVM virtual machine in Proxmox VE. It handles cleanup of tap devices, VGPUs, and other resources after a VM shuts down, crashes, or is stopped.
参数
- vmid
- The numeric ID of the virtual machine
- clean-shutdown
- Whether this was a clean shutdown (0 or 1)
- guest-requested
- Whether the guest initiated the shutdown (0 or 1)
FAQ
What is the qm-cleanup command used for?
qm cleanup cleans up resources associated with a QEMU/KVM virtual machine in Proxmox VE. It handles cleanup of tap devices, VGPUs, and other resources after a VM shuts down, crashes, or is stopped.
How do I run a basic qm-cleanup example?
Run `qm cleanup vmid clean-shutdown guest-requested` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does vmid do in qm-cleanup?
The numeric ID of the virtual machine