Volkan YAZICI wrote: > On Thu, 23 Oct 2008, Gerd Hoffmann writes: > >> Volkan YAZICI wrote: >> >>> On Thu, 23 Oct 2008, "Daniel P. Berrange" writes: >>> >>>> If you want daemonized instances, and wish to use the monitor, then >>>> rather than using '-monitor stdio', it'd be better to have it connect >>>> to something like a UNIX socket, eg >>>> >>>> -monitor unix:/var/run/qemu/mysock,server >>>> >>> Excuse my ignorance, but when I use above command, qemu types "QEMU >>> waiting for connection on: /var/run/qemu/monitor.preprod" on the command >>> line and hangs at that state. Is this something expected? >>> >> Yes. If you don't want that, add ",nowait". >> > > This time it complains with an interesting error message: > > # rlwrap /usr/local/sbin/qemu-preprod > qemu: could not open monitor device 'unix:/var/run/qemu/preprod.monitor,nowait' > You need unix:/var/run/qemu/preprod.monitor,server,nowait I use the following program to send commands to the monitor. You would use it like: $ qemu-remote /var/run/qemu/preprod.monitor help Regards, Anthony Liguori > # ls -l /var/run/qemu/preprod.monitor > -rw-r--r-- 1 root root 0 2008-10-23 14:56 /var/run/qemu/preprod.monitor > > BTW, how can I connect to the monitor session -- if I can get it right > at last -- that will be pointed by /var/run/qemu/preprod.monitor? > > >> Try "nc localhost:5001" instead. Qemu listens on the loopback interface >> only if you specify display "localhost:1". netstat should show that. >> > > Umm... Actually, no. I can see it listens on 5901. > > > Regards. > > >