Re: web interface?

Avi Kivity
2007-07-31T16:40:15Z

Paul J R wrote:
> Hi guys, I had a quick question.
>
> I was playing around writing a php-based web interface for KVM.
> Basically something that would allow you to use a tiny distro and let
> you manage disk/net etc via php (atm its crude to say the least).
>
> It all seems relatively straight forward except for one component - the
> console bits. I wanted to make it so you could click on your new vm,
> then click on a "console" link and *poof* your console appears on your
> web browser via an embedded java applet. The problem is security,
> Authenticating users on the page is simple enough, but i cant see a
> method by which i could put a password on the vnc port in qemu?
>

You could have the qemu listen on localhost, the web server connect to
qemu and encapsulate it in ssl, so:

[ client ] ---ssl---> [ web server ] ----plain---> [ qemu ]

Presumably, the ssl session was already authenticated by the web server,
so all you need to do is peel away the ssl encapsulation and forward
traffic to the qemu process.

An advantage of this approach is that qemu need not be on the same
machine as the web server; you could have a single web server tunneling
vnc sessions to several hosts.

--
error compiling committee.c: too many arguments to function