11

I launched KVM VM with this command:

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

Then I connect to the monitor via telnet. But when I'm quitting the monitor with 'quit' or 'q', the VM stops. Why and how to quit without stopping the VM?

aculich
  • 3,520
  • 1
  • 25
  • 33
artem
  • 596
  • 2
  • 10
  • 28

2 Answers2

10

Did you try to 'telnet' way? I.e.:

Ctrl+]
telnet> quit
Jan Marek
  • 2,120
  • 1
  • 13
  • 14
10

When connected to the monitor via telnet, anything that you type will be interpreted as a command by the monitor itself. You can view the full list of commands in the QEMU Emulator User Documentation, one of which is quit (or q for short).

To disconnect the telnet session you need to first use the telnet escape key which is Ctrl-] and then you can type quit when you see the telnet> prompt.

aculich
  • 3,520
  • 1
  • 25
  • 33