* Need help getting http interface with Xen 3 working
@ 2005-09-21 13:44 Jerry Gulla
2005-09-21 13:58 ` Tom Wilkie
0 siblings, 1 reply; 3+ messages in thread
From: Jerry Gulla @ 2005-09-21 13:44 UTC (permalink / raw)
To: xen-devel
I'm trying to get the http interface working w/ Xen 3.0 and am running
into some problems. I know that in 3.0, twisted is no longer being
used for the http front end (using Apache w/ mod_python instead).
I've read Tom Wilkie's post
(http://lists.xensource.com/archives/html/xen-devel/2005-09/msg00081.html)
on how he's modified things to work under Apache, and it's got me a
bit further, but now I'm stuck. Here's what I've done do far:
I've installed Fedora Core 4, and set up Xen according to the
FedoraXenQuickStart guide (which tracks xen-unstable) at
http://www.fedoraproject.org/wiki/FedoraXenQuickstart . My dom0 kernel
boots nicely, and I can issue commands with the "xm" command.
I have mod_python installed and working for Apache 2 (I've tested it
with a simple program).
I've symlinked /var/www/html to /usr/lib/python2.4/site-packages/xen/sv
I think I have to modify my Apache config to include the something
like the following:
<Directory /var/www/html>
AddHandler mod_python .py
PythonHandler ?????
PythonDebug On
</Directory>
My (obvious) question is how to I properly wire up Apache/mod_python
to the correct file so I can query/change my Xen configuration via
http?
Any help appreciated. Thanks!
Jerry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Need help getting http interface with Xen 3 working
2005-09-21 13:44 Need help getting http interface with Xen 3 working Jerry Gulla
@ 2005-09-21 13:58 ` Tom Wilkie
2005-09-21 17:54 ` Jerry Gulla
0 siblings, 1 reply; 3+ messages in thread
From: Tom Wilkie @ 2005-09-21 13:58 UTC (permalink / raw)
To: Jerry Gulla; +Cc: xen-devel
Hi there
Jerry Gulla wrote:
> I'm trying to get the http interface working w/ Xen 3.0 and am running
> into some problems. I know that in 3.0, twisted is no longer being
> used for the http front end (using Apache w/ mod_python instead).
> I've read Tom Wilkie's post
> (http://lists.xensource.com/archives/html/xen-devel/2005-09/msg00081.html)
> on how he's modified things to work under Apache, and it's got me a
> bit further, but now I'm stuck. Here's what I've done do far:
>
> I've installed Fedora Core 4, and set up Xen according to the
> FedoraXenQuickStart guide (which tracks xen-unstable) at
> http://www.fedoraproject.org/wiki/FedoraXenQuickstart . My dom0 kernel
> boots nicely, and I can issue commands with the "xm" command.
>
> I have mod_python installed and working for Apache 2 (I've tested it
> with a simple program).
>
> I've symlinked /var/www/html to /usr/lib/python2.4/site-packages/xen/sv
>
> I think I have to modify my Apache config to include the something
> like the following:
>
> <Directory /var/www/html>
> AddHandler mod_python .py
> PythonHandler ?????
> PythonDebug On
> </Directory>
>
> My (obvious) question is how to I properly wire up Apache/mod_python
> to the correct file so I can query/change my Xen configuration via
> http?
So the correct setup for me (on centos 4) is to edit the
/etc/http/conf.d/python file and put the following lines in the top of
the file:
AddHandler mod_python .psp
PythonHandler mod_python.psp
PythonDebug On
See the page:
http://www.modpython.org/live/current/doc-html/hand-psp.html#hand-psp
Then for me it just works. I haven't looked at SV for what must be a
month now, some there is prolly some code rot in there. If I get a
chance I'll give it a quick check. Also its not that functional atm ;-)
Cheers
Tom
> Any help appreciated. Thanks!
>
> Jerry
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Need help getting http interface with Xen 3 working
2005-09-21 13:58 ` Tom Wilkie
@ 2005-09-21 17:54 ` Jerry Gulla
0 siblings, 0 replies; 3+ messages in thread
From: Jerry Gulla @ 2005-09-21 17:54 UTC (permalink / raw)
To: Tom Wilkie, xen-devel
Thanks, that's the piece I was missing. I was trying to get
mod_python to call the .sv/Main.py file directly (which I managed to
do), but, obviously, it was also the wong thing to do :-). I made the
appropriate change to my http.conf, pointed it at a copy of
tools/index.psp and got further. Now I just need to figure out why I
can't get any node info (Xend is running, as I can execute "xm list"
just fine). Is there any logging I can turn on to see where it might
be getting stuck?
Thanks again,
Jerry
On 9/21/05, Tom Wilkie <tw275@cam.ac.uk> wrote:
> Hi there
>
> Jerry Gulla wrote:
> > I'm trying to get the http interface working w/ Xen 3.0 and am running
> > into some problems. I know that in 3.0, twisted is no longer being
> > used for the http front end (using Apache w/ mod_python instead).
> > I've read Tom Wilkie's post
> > (http://lists.xensource.com/archives/html/xen-devel/2005-09/msg00081.html)
> > on how he's modified things to work under Apache, and it's got me a
> > bit further, but now I'm stuck. Here's what I've done do far:
> >
> > I've installed Fedora Core 4, and set up Xen according to the
> > FedoraXenQuickStart guide (which tracks xen-unstable) at
> > http://www.fedoraproject.org/wiki/FedoraXenQuickstart . My dom0 kernel
> > boots nicely, and I can issue commands with the "xm" command.
> >
> > I have mod_python installed and working for Apache 2 (I've tested it
> > with a simple program).
> >
> > I've symlinked /var/www/html to /usr/lib/python2.4/site-packages/xen/sv
> >
> > I think I have to modify my Apache config to include the something
> > like the following:
> >
> > <Directory /var/www/html>
> > AddHandler mod_python .py
> > PythonHandler ?????
> > PythonDebug On
> > </Directory>
> >
> > My (obvious) question is how to I properly wire up Apache/mod_python
> > to the correct file so I can query/change my Xen configuration via
> > http?
>
> So the correct setup for me (on centos 4) is to edit the
> /etc/http/conf.d/python file and put the following lines in the top of
> the file:
>
> AddHandler mod_python .psp
> PythonHandler mod_python.psp
> PythonDebug On
>
> See the page:
>
> http://www.modpython.org/live/current/doc-html/hand-psp.html#hand-psp
>
> Then for me it just works. I haven't looked at SV for what must be a
> month now, some there is prolly some code rot in there. If I get a
> chance I'll give it a quick check. Also its not that functional atm ;-)
>
> Cheers
>
> Tom
>
>
> > Any help appreciated. Thanks!
> >
> > Jerry
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-21 17:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-21 13:44 Need help getting http interface with Xen 3 working Jerry Gulla
2005-09-21 13:58 ` Tom Wilkie
2005-09-21 17:54 ` Jerry Gulla
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.