Linux command
qm-reboot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Reboot a virtual machine
qm reboot [vmid]
Reboot with a graceful shutdown timeout
qm reboot [vmid] --timeout [seconds]
说明
qm reboot reboots a virtual machine by shutting it down gracefully and then starting it again. Any pending configuration changes are applied during the restart cycle. The _vmid_ is the unique integer identifier of the VM (100–999999999). The graceful shutdown relies on ACPI support in the guest OS. If the guest does not respond within the timeout period, the VM is forcefully stopped and restarted.
参数
- --timeout _seconds_
- Wait at most _seconds_ for the guest to shut down gracefully before forcing a restart. Integer, 0 or greater.
FAQ
What is the qm-reboot command used for?
qm reboot reboots a virtual machine by shutting it down gracefully and then starting it again. Any pending configuration changes are applied during the restart cycle. The _vmid_ is the unique integer identifier of the VM (100–999999999). The graceful shutdown relies on ACPI support in the guest OS. If the guest does not respond within the timeout period, the VM is forcefully stopped and restarted.
How do I run a basic qm-reboot example?
Run `qm reboot [vmid]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --timeout _seconds_ do in qm-reboot?
Wait at most _seconds_ for the guest to shut down gracefully before forcing a restart. Integer, 0 or greater.