* qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
@ 2008-07-11 7:54 Li, Haicheng
[not found] ` <C49CD85B.1AD86%keir.fraser@eu.citrix.com>
0 siblings, 1 reply; 10+ messages in thread
From: Li, Haicheng @ 2008-07-11 7:54 UTC (permalink / raw)
To: xen-devel
qemu.log:
domid: 3
qemu: the number of cpus is 1
/usr/lib64/xen/bin/qemu-dm: invalid option -- '-vncviewer'
As QEMU_REMOTE is used for ioemu by default, regression was introduced
accordingly.
Looks xm/xend is still passing '-vncviewer' to qemu-dm, which causes
qemu-dm exit(1), and HVM guest creation is failed.
-- haicheng
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
[not found] ` <C49CD85B.1AD86%keir.fraser@eu.citrix.com>
@ 2008-07-11 10:39 ` Ian Jackson
2008-07-11 10:46 ` Daniel P. Berrange
0 siblings, 1 reply; 10+ messages in thread
From: Ian Jackson @ 2008-07-11 10:39 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
Keir Fraser writes ("FW: [Xen-devel] qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023"):
> Conversation: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
> Subject: [Xen-devel] qemu-dm exit(1) for invalid option '-vncviewer' -- Xen
> #18023
This option works (worked) by passing the caller's display and
xauthority through xm and xend to qemu. qemu then connects to it
later. This is a very remarkable way of going about things. Its
security properties are problematic from several points of view.
I had assumed that because it was so strange no-one would be using it,
so I deliberately dropped that change. Evidently I was wrong. If
this is a feature that is seriously used then I could reinstate it but
I think it should come with a health warning.
A better place to implement this would be xm or some higher level
tool, I think, but that wouldn't be sensible at this stage of the
release cycle.
> Looks xm/xend is still passing '-vncviewer' to qemu-dm, which causes
> qemu-dm exit(1), and HVM guest creation is failed.
For now, if you turn off the vncviewer option it will work. If there
is demand I'll look into cross-porting this feature (on Monday,
probably).
Ian.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
2008-07-11 10:39 ` FW: " Ian Jackson
@ 2008-07-11 10:46 ` Daniel P. Berrange
2008-07-11 15:27 ` John Levon
0 siblings, 1 reply; 10+ messages in thread
From: Daniel P. Berrange @ 2008-07-11 10:46 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel, Keir Fraser
On Fri, Jul 11, 2008 at 11:39:13AM +0100, Ian Jackson wrote:
> Keir Fraser writes ("FW: [Xen-devel] qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023"):
> > Conversation: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
> > Subject: [Xen-devel] qemu-dm exit(1) for invalid option '-vncviewer' -- Xen
> > #18023
>
> This option works (worked) by passing the caller's display and
> xauthority through xm and xend to qemu. qemu then connects to it
> later. This is a very remarkable way of going about things. Its
> security properties are problematic from several points of view.
>
> I had assumed that because it was so strange no-one would be using it,
> so I deliberately dropped that change. Evidently I was wrong. If
> this is a feature that is seriously used then I could reinstate it but
> I think it should come with a health warning.
I think it should be killed - its easy todo it in the 'xm' client code,
after all xm already knows how to spawn 'xm console' for text mode
display - this is just same use case in graphical mode.
> A better place to implement this would be xm or some higher level
> tool, I think, but that wouldn't be sensible at this stage of the
> release cycle.
xm already seems to have some kind of vncviewer support, though its
running it in listen mode, rather than connect mode.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
2008-07-11 10:46 ` Daniel P. Berrange
@ 2008-07-11 15:27 ` John Levon
2008-07-11 15:34 ` Daniel P. Berrange
0 siblings, 1 reply; 10+ messages in thread
From: John Levon @ 2008-07-11 15:27 UTC (permalink / raw)
To: Daniel P. Berrange; +Cc: xen-devel, Ian Jackson, Keir Fraser
On Fri, Jul 11, 2008 at 11:46:42AM +0100, Daniel P. Berrange wrote:
> > This option works (worked) by passing the caller's display and
> > xauthority through xm and xend to qemu. qemu then connects to it
> > later. This is a very remarkable way of going about things. Its
> > security properties are problematic from several points of view.
> >
> > I had assumed that because it was so strange no-one would be using it,
> > so I deliberately dropped that change. Evidently I was wrong. If
> > this is a feature that is seriously used then I could reinstate it but
> > I think it should come with a health warning.
What might be useful is allowing "wait" mode for VNC like you can with
telnet serial console. I'm suspecting that's the only reason you would
ever want -vncviewer (to catch the BIOS screen).
> I think it should be killed - its easy todo it in the 'xm' client code,
> after all xm already knows how to spawn 'xm console' for text mode
> display - this is just same use case in graphical mode.
Heck, then can we kill SDL, which does exactly the same thing, but in
xend?
I must admit when I discovered this, I blanched.
john
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
2008-07-11 15:27 ` John Levon
@ 2008-07-11 15:34 ` Daniel P. Berrange
2008-07-11 15:41 ` John Levon
0 siblings, 1 reply; 10+ messages in thread
From: Daniel P. Berrange @ 2008-07-11 15:34 UTC (permalink / raw)
To: John Levon; +Cc: xen-devel, Ian Jackson, Keir Fraser
On Fri, Jul 11, 2008 at 04:27:36PM +0100, John Levon wrote:
> On Fri, Jul 11, 2008 at 11:46:42AM +0100, Daniel P. Berrange wrote:
>
> > > This option works (worked) by passing the caller's display and
> > > xauthority through xm and xend to qemu. qemu then connects to it
> > > later. This is a very remarkable way of going about things. Its
> > > security properties are problematic from several points of view.
> > >
> > > I had assumed that because it was so strange no-one would be using it,
> > > so I deliberately dropped that change. Evidently I was wrong. If
> > > this is a feature that is seriously used then I could reinstate it but
> > > I think it should come with a health warning.
>
> What might be useful is allowing "wait" mode for VNC like you can with
> telnet serial console. I'm suspecting that's the only reason you would
> ever want -vncviewer (to catch the BIOS screen).
If we launched it from 'xm', I'd xm would have to wait on xenstore for
the VNC port number to be written, at which point it can immediately
launch vncviewer. We do this in virt-install and its quick enough to
catch the BIOS screen.
>
> > I think it should be killed - its easy todo it in the 'xm' client code,
> > after all xm already knows how to spawn 'xm console' for text mode
> > display - this is just same use case in graphical mode.
>
> Heck, then can we kill SDL, which does exactly the same thing, but in
> xend?
It'd get my vote - a consistent source of pain & bug reports, but quite
a few people seem to like this so I doubt its viable to kill SDL :-(
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
2008-07-11 15:34 ` Daniel P. Berrange
@ 2008-07-11 15:41 ` John Levon
2008-07-11 16:30 ` Trolle Selander
0 siblings, 1 reply; 10+ messages in thread
From: John Levon @ 2008-07-11 15:41 UTC (permalink / raw)
To: Daniel P. Berrange; +Cc: xen-devel, Ian Jackson, Keir Fraser
On Fri, Jul 11, 2008 at 04:34:42PM +0100, Daniel P. Berrange wrote:
> > > > I had assumed that because it was so strange no-one would be using it,
> > > > so I deliberately dropped that change. Evidently I was wrong. If
> > > > this is a feature that is seriously used then I could reinstate it but
> > > > I think it should come with a health warning.
> >
> > What might be useful is allowing "wait" mode for VNC like you can with
> > telnet serial console. I'm suspecting that's the only reason you would
> > ever want -vncviewer (to catch the BIOS screen).
>
> If we launched it from 'xm', I'd xm would have to wait on xenstore for
> the VNC port number to be written, at which point it can immediately
> launch vncviewer. We do this in virt-install and its quick enough to
> catch the BIOS screen.
I was thinking more about the case when DISPLAY isn't set by the
virt-install user at all.
> > > I think it should be killed - its easy todo it in the 'xm' client code,
> > > after all xm already knows how to spawn 'xm console' for text mode
> > > display - this is just same use case in graphical mode.
> >
> > Heck, then can we kill SDL, which does exactly the same thing, but in
> > xend?
>
> It'd get my vote - a consistent source of pain & bug reports, but quite
> a few people seem to like this so I doubt its viable to kill SDL :-(
What do they want it for?
regards
john
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
2008-07-11 15:41 ` John Levon
@ 2008-07-11 16:30 ` Trolle Selander
2008-07-11 16:35 ` John Levon
0 siblings, 1 reply; 10+ messages in thread
From: Trolle Selander @ 2008-07-11 16:30 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1808 bytes --]
On Fri, Jul 11, 2008 at 4:41 PM, John Levon <levon@movementarian.org> wrote:
> On Fri, Jul 11, 2008 at 04:34:42PM +0100, Daniel P. Berrange wrote:
>
> > > > > I had assumed that because it was so strange no-one would be using
> it,
> > > > > so I deliberately dropped that change. Evidently I was wrong. If
> > > > > this is a feature that is seriously used then I could reinstate it
> but
> > > > > I think it should come with a health warning.
> > >
> > > What might be useful is allowing "wait" mode for VNC like you can with
> > > telnet serial console. I'm suspecting that's the only reason you would
> > > ever want -vncviewer (to catch the BIOS screen).
> >
> > If we launched it from 'xm', I'd xm would have to wait on xenstore for
> > the VNC port number to be written, at which point it can immediately
> > launch vncviewer. We do this in virt-install and its quick enough to
> > catch the BIOS screen.
>
> I was thinking more about the case when DISPLAY isn't set by the
> virt-install user at all.
>
> > > > I think it should be killed - its easy todo it in the 'xm' client
> code,
> > > > after all xm already knows how to spawn 'xm console' for text mode
> > > > display - this is just same use case in graphical mode.
> > >
> > > Heck, then can we kill SDL, which does exactly the same thing, but in
> > > xend?
> >
> > It'd get my vote - a consistent source of pain & bug reports, but quite
> > a few people seem to like this so I doubt its viable to kill SDL :-(
>
> What do they want it for?
>
> regards
> john
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
It may be something as simple as proper mouse tracking, which tends to be
atrocious with vnc, but work perfectly with SDL.
[-- Attachment #1.2: Type: text/html, Size: 2582 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
2008-07-11 16:30 ` Trolle Selander
@ 2008-07-11 16:35 ` John Levon
2008-07-11 16:55 ` Trolle Selander
0 siblings, 1 reply; 10+ messages in thread
From: John Levon @ 2008-07-11 16:35 UTC (permalink / raw)
To: Trolle Selander; +Cc: xen-devel
On Fri, Jul 11, 2008 at 05:30:12PM +0100, Trolle Selander wrote:
> It may be something as simple as proper mouse tracking, which tends to be
> atrocious with vnc, but work perfectly with SDL.
It works fine with VNC and the usb tablet option enabled, which pretty
much every OS supports (unless you're hellbent on running Solaris 9, I
suppose).
regards
john
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
2008-07-11 16:35 ` John Levon
@ 2008-07-11 16:55 ` Trolle Selander
2008-07-11 17:23 ` Samuel Thibault
0 siblings, 1 reply; 10+ messages in thread
From: Trolle Selander @ 2008-07-11 16:55 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1029 bytes --]
Personally, I've never gotten the usb mouse/tablet support to work right
with anything except Windows guests. This tends not to be much of an issue
with Linux, but as someone who has spent quite a bit of time working with
legacy OSs under Xen, I can tell you it definitely does not work with OS/2,
and there are probably "exotic" OSs out there that people are using or
tinkering with that have the same issue. Just to be clear, I'm not really
protesting the removal of SDL, I'm just giving one example of why some
people may still be using it over vnc.
Cheers,
Trolle
On Fri, Jul 11, 2008 at 5:35 PM, John Levon <levon@movementarian.org> wrote:
> On Fri, Jul 11, 2008 at 05:30:12PM +0100, Trolle Selander wrote:
>
> > It may be something as simple as proper mouse tracking, which tends to be
> > atrocious with vnc, but work perfectly with SDL.
>
> It works fine with VNC and the usb tablet option enabled, which pretty
> much every OS supports (unless you're hellbent on running Solaris 9, I
> suppose).
>
> regards
> john
>
[-- Attachment #1.2: Type: text/html, Size: 1387 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: FW: qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023
2008-07-11 16:55 ` Trolle Selander
@ 2008-07-11 17:23 ` Samuel Thibault
0 siblings, 0 replies; 10+ messages in thread
From: Samuel Thibault @ 2008-07-11 17:23 UTC (permalink / raw)
To: Trolle Selander; +Cc: xen-devel
Trolle Selander, le Fri 11 Jul 2008 17:55:26 +0100, a écrit :
> Personally, I've never gotten the usb mouse/tablet support to work right with
> anything except Windows guests. This tends not to be much of an issue with
> Linux,
On linux you just need to peek the USB tablet input device in
/dev/input/*, to trigger qemu's switch to USB tablet events.
Samuel
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-07-11 17:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-11 7:54 qemu-dm exit(1) for invalid option '-vncviewer' -- Xen #18023 Li, Haicheng
[not found] ` <C49CD85B.1AD86%keir.fraser@eu.citrix.com>
2008-07-11 10:39 ` FW: " Ian Jackson
2008-07-11 10:46 ` Daniel P. Berrange
2008-07-11 15:27 ` John Levon
2008-07-11 15:34 ` Daniel P. Berrange
2008-07-11 15:41 ` John Levon
2008-07-11 16:30 ` Trolle Selander
2008-07-11 16:35 ` John Levon
2008-07-11 16:55 ` Trolle Selander
2008-07-11 17:23 ` Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.