* [Qemu-devel] Multiple monitor interfaces?
@ 2010-04-27 14:23 Jun Koi
2010-04-27 18:26 ` Luiz Capitulino
2010-04-27 18:39 ` [Qemu-devel] " Jan Kiszka
0 siblings, 2 replies; 5+ messages in thread
From: Jun Koi @ 2010-04-27 14:23 UTC (permalink / raw)
To: qemu-devel
Hi,
I am wondering if is it possible to have multiple monitor interfaces
at the same time? If so, how can we open more than one?
This might be useful for something like libvirt, so while we leave one
monitor port for libvirt, we can still access to another one to
control Qemu?
Thanks,
J
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Multiple monitor interfaces?
2010-04-27 14:23 [Qemu-devel] Multiple monitor interfaces? Jun Koi
@ 2010-04-27 18:26 ` Luiz Capitulino
2010-04-28 3:20 ` Jun Koi
2010-04-27 18:39 ` [Qemu-devel] " Jan Kiszka
1 sibling, 1 reply; 5+ messages in thread
From: Luiz Capitulino @ 2010-04-27 18:26 UTC (permalink / raw)
To: Jun Koi; +Cc: qemu-devel
On Tue, 27 Apr 2010 23:23:45 +0900
Jun Koi <junkoi2004@gmail.com> wrote:
> Hi,
>
> I am wondering if is it possible to have multiple monitor interfaces
> at the same time? If so, how can we open more than one?
The following command will create three monitors (stdio, vc and telnet
on port 4444):
# qemu [...] -chardev stdio,id=mon0 -mon chardev=mon0,mode=readline \
-chardev socket,id=mon1,host=localhost,port=4444,server \
-mon chardev=mon1,mode=readline \
-chardev vc,id=mon2 -mon chardev=mon2,mode=readline
> This might be useful for something like libvirt, so while we leave one
> monitor port for libvirt, we can still access to another one to
> control Qemu?
Historically, libvirt had support to only one monitor: the one it uses. But
now they're working on supporting custom command-line options, so adding
new monitors should be possible I think.
Also, you can point libvirt to a script that opens an additional monitor
for you, some developers do this afaik.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: Multiple monitor interfaces?
2010-04-27 14:23 [Qemu-devel] Multiple monitor interfaces? Jun Koi
2010-04-27 18:26 ` Luiz Capitulino
@ 2010-04-27 18:39 ` Jan Kiszka
1 sibling, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2010-04-27 18:39 UTC (permalink / raw)
To: Jun Koi; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 381 bytes --]
Jun Koi wrote:
> Hi,
>
> I am wondering if is it possible to have multiple monitor interfaces
> at the same time? If so, how can we open more than one?
Provide multiple -mon options on the command line (works with legacy
-monitor as well). Moreover, you get one for free once you open a gdb
session: try "monitor help" on the gdb prompt when connected to qemu.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Multiple monitor interfaces?
2010-04-27 18:26 ` Luiz Capitulino
@ 2010-04-28 3:20 ` Jun Koi
2010-04-28 12:40 ` Luiz Capitulino
0 siblings, 1 reply; 5+ messages in thread
From: Jun Koi @ 2010-04-28 3:20 UTC (permalink / raw)
To: Luiz Capitulino; +Cc: qemu-devel
On Wed, Apr 28, 2010 at 3:26 AM, Luiz Capitulino <lcapitulino@redhat.com> wrote:
> On Tue, 27 Apr 2010 23:23:45 +0900
> Jun Koi <junkoi2004@gmail.com> wrote:
>
>> Hi,
>>
>> I am wondering if is it possible to have multiple monitor interfaces
>> at the same time? If so, how can we open more than one?
>
> The following command will create three monitors (stdio, vc and telnet
> on port 4444):
>
> # qemu [...] -chardev stdio,id=mon0 -mon chardev=mon0,mode=readline \
> -chardev socket,id=mon1,host=localhost,port=4444,server \
> -mon chardev=mon1,mode=readline \
> -chardev vc,id=mon2 -mon chardev=mon2,mode=readline
This is very helpful, thanks.
Now if I want to open a monitor on an Unix domain socket, which
chardev (and its corresponding param) should I use??
Thanks,
J
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Multiple monitor interfaces?
2010-04-28 3:20 ` Jun Koi
@ 2010-04-28 12:40 ` Luiz Capitulino
0 siblings, 0 replies; 5+ messages in thread
From: Luiz Capitulino @ 2010-04-28 12:40 UTC (permalink / raw)
To: Jun Koi; +Cc: qemu-devel
On Wed, 28 Apr 2010 12:20:42 +0900
Jun Koi <junkoi2004@gmail.com> wrote:
> On Wed, Apr 28, 2010 at 3:26 AM, Luiz Capitulino <lcapitulino@redhat.com> wrote:
> > On Tue, 27 Apr 2010 23:23:45 +0900
> > Jun Koi <junkoi2004@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> I am wondering if is it possible to have multiple monitor interfaces
> >> at the same time? If so, how can we open more than one?
> >
> > The following command will create three monitors (stdio, vc and telnet
> > on port 4444):
> >
> > # qemu [...] -chardev stdio,id=mon0 -mon chardev=mon0,mode=readline \
> > -chardev socket,id=mon1,host=localhost,port=4444,server \
> > -mon chardev=mon1,mode=readline \
> > -chardev vc,id=mon2 -mon chardev=mon2,mode=readline
>
> This is very helpful, thanks.
>
> Now if I want to open a monitor on an Unix domain socket, which
> chardev (and its corresponding param) should I use??
It's all in the man page:
-chardev socket,id=mon0,path=/tmp/sock,server -mon chardev=mon0,mode=control
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-28 12:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27 14:23 [Qemu-devel] Multiple monitor interfaces? Jun Koi
2010-04-27 18:26 ` Luiz Capitulino
2010-04-28 3:20 ` Jun Koi
2010-04-28 12:40 ` Luiz Capitulino
2010-04-27 18:39 ` [Qemu-devel] " Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).