Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 8 down vote accepted
+50

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

Ctrl+]
telnet> quit
share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.