menu Chancel's blog
rss_feed
Chancel's blog
时来天地皆同力

PVE关机并休眠所有虚拟机

作者:Chancel Yang, 时间:2022 May 26, 阅读:47

关机并休眠所有虚拟机

qm list | grep running | awk -F'[^0-9]*' '$0=$2' | while read -r vm_id; do qm suspend $vm_id --todisk 1; done; shutdown -h now

核心点在于如何休眠单台机器

qm suspend 100 --todisk 1

参考资料

  • https://forum.proxmox.com/threads/hibernate-a-vm-via-qm-command.54659/
  • https://forum.proxmox.com/threads/feature-request-hibernate-vms-on-pve-host-reboot.65529/

[[replyMessage== null?"发表评论":"发表评论 @ " + replyMessage.m_author]]

account_circle
email
web_asset
textsms

评论列表([[messageResponse.total]])

还没有可以显示的留言...
[[messageItem.m_author]] [[messageItem.m_author]]
[[messageItem.create_time]]
[[getEnviron(messageItem.m_environ)]]
[[subMessage.m_author]] [[subMessage.m_author]] @ [[subMessage.parent_message.m_author]] [[subMessage.parent_message.m_author]]
[[subMessage.create_time]]
[[getEnviron(messageItem.m_environ)]]