如何退出QEMU Monitor?


11

我使用以下命令启动了KVM VM:

kvm /kvm/hdd/v1/v1-1.raw -m 512 -daemonize -smp 2 -nographic -net nic,model=virtio,macaddr=aa:aa:aa:aa:aa:01 -net tap,ifname=tap0 -monitor telnet:localhost:7001,server,nowait,nodelay

然后,我通过telnet连接到显示器。但是,当我用“ quit”或“ q”退出监视器时,VM停止了。为什么以及如何在不停止VM的情况下退出?

Answers:



10

通过telnet连接到显示器时,显示器所输入的任何内容都会被解释为命令。您可以在QEMU仿真器用户文档中查看命令的完整列表,其中之一quit(或q简称为其中之一)。

要断开telnet会话,您需要首先使用telnet转义键,即Ctrl-],然后quit在看到telnet>提示时进行键入。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.