On Tue, Jul 01, 2008 at 04:21:38PM +0100, John Levon wrote:
See implementation here:
http://cr.opensolaris.org/~johnlev/virt-console/
(inside libvirt.hg/patches/libvirt/virt-console)
Hum :-)
++ * Daniel Berrange <berrange(a)redhat.com>
++ *
++ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
This splits virsh console into a separate binary to allow it to be
setuid-root on Solaris (where we check permissions then drop privilege).
It also fixes a number of RFEs
This is against 0.4.0, so it's not ready for merging yet (I hope to get
it forward ported at some point).
I may be mistaken but this seems to basically be limited to console
for domains running on the local machine, and hum, I doubt it's really
a good approach. Seems to me it's better to talk to the vnc (or other
protocol used to connect remotely) export of the console, and get rid
of the 'localhost only' limitation. But I may very well have missed
something.
Daniel
--
Red Hat Virtualization group
http://redhat.com/virtualization/
Daniel Veillard | virtualization library
http://libvirt.org/
veillard(a)redhat.com | libxml GNOME XML XSLT toolkit
http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine
http://rpmfind.net/