1、作用
2、虚拟机挂起
2.1、命令介绍
查看帮助:virsh suspend --help
命令格式:virsh suspend vmhost_name
2.2、实操示例
root@localhost:~# virsh list
Id Name State
---------------------------------
9 CentOS-8-x86_64 running
# 挂起
virsh suspend CentOS-8-x86_64
root@localhost:~# virsh list
Id Name State
--------------------------------
9 CentOS-8-x86_64 paused
2.3、VNC效果
3、虚拟机恢复
3.1、命令介绍
查看帮助:virsh resume --help
命令格式:virsh resume vmhost_name
3.2、实操示例
root@localhost:~# virsh list
Id Name State
--------------------------------
9 CentOS-8-x86_64 paused
# 恢复
virsh resume CentOS-8-x86_64
root@localhost:~# virsh list
Id Name State
---------------------------------
9 CentOS-8-x86_64 running
3.3、VNC效果