大网数据广告活动
服务器运维问答

Pause/Suspend guest in KVM without virsh and libvirtd

· 52CE 我爱测

I have installed KVM without libvirt/virsh and virtualmanager. Packages which installed are kvm qemu-kvm bridge-utils libguestfs-tools How can I pause/suspend VM in this case?

问题原文

原帖链接 · user54 · CC BY-SA 3.0

I have installed KVM without libvirt/virsh and virtualmanager.

Packages which installed are kvm qemu-kvm bridge-utils libguestfs-tools

How can I pause/suspend VM in this case?

已采纳解答

原帖链接 · dyasny · CC BY-SA 3.0

You need to pass a monitor command:

When QEMU is running, it provides a monitor console for interacting with QEMU. Through various commands, the monitor allows you to inspect the running guest OS, change removable media and USB devices, take screenshots and audio grabs, and control various aspects of the virtual machine.

The monitor is accessed from within QEMU by holding down the Ctrl and Alt keys (or whatever the "mouse grab" keystrokes are), and pressing Shift-2. Once in the monitor, Shift-1 switches back to the guest OS. Typing help or ? in the monitor brings up a list of all commands. Alternatively the monitor can be redirected to using the -monitor command line option. Using -monitor stdio will send the monitor to the standard output, this is most useful when using qemu on the command line.

Some relevant commands:

https://en.wikibooks.org/wiki/QEMU/Monitor#Virtual_machine

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-12-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。