ia64/xen-unstable

view tools/control/README-xenctl @ 523:65cdeae1932c

bitkeeper revision 1.290 (3f098d9aV-utpH62PCMaflI0ggwCXQ)

Use ioctl rather than /proc/xeno/new_dom_data when creating a new
domain.
author sos22@labyrinth.cl.cam.ac.uk
date Mon Jul 07 15:11:22 2003 +0000 (2003-07-07)
parents a6457a163b5c
children
line source
2 some notes on configuring xenctl...
4 to build:
6 export PATH=/usr/groups/xeno/build_tools/bin:${PATH}
7 # this next step has already been done.
8 # cp $CATALINA_HOME/server/lib/catalina-ant.jar $ANT_HOME/lib
9 cd xeno.bk/tools/control
10 make
11 cd xeno.bk/tools/internal
12 make
14 to setup:
16 ## expand the jakarta (aka catalina) tree somewhere accessible by dom0
17 export ROOTDIR=/anfs/scratch/labyrinth/ach61
18 cd $ROOTDIR
19 tar zxf /usr/groups/xeno/archive/tomcat-4.1.24.tar.gz
20 export CATALINA_HOME=$ROOTDIR/jakarta-tomcat-4.1.24
21 export JAVA_HOME=/usr/groups/xeno/build_tools/java-1.4.1
23 ## edit $CATALINA_HOME/conf/server.xml, change port 8080 to port 80
24 cp $CATALINA_HOME/conf/server.xml $CATALINA_HOME/conf/server.orig
25 sed 's/8080/80/g' $CATALINA_HOME/conf/server.orig > $CATALINA_HOME/conf/server.xml
27 ## install the xenctl web archive
28 cp xeno.bk/tools/control/dist/xenctl-0.1-dev.war $CATALINA_HOME/webapps/xenctl.war
29 cp xeno.bk/tools/control/domctl.xml /var/lib/xen
31 ## either edit xi_tools_dir in domctl.xml or copy the binaries
32 # find xeno.bk/tools/internal -perm +111 -type f -exec cp {} /usr/local/bin \;
34 to run:
35 $CATALINA_HOME/bin/startup.sh
36 # point your browser at hostname-0.xeno.cl.cam.ac.uk:80/xenctl
39 for development:
40 ## edit xeno.bk/tools/control/build.properties
41 # change manger.url to your xenoserver: mousetrap-0.xeno.cl.cam.ac.uk
42 # change build.home to your xeno.bk full path
43 ## to "make install" in xeno.bk/tools/control instead of copying the war file
44 cp $CATALINA_HOME/conf/tomcat-users.xml $CATALINA_HOME/conf/tomcat-users.orig
45 sed -e 's/<tomcat-users>/<tomcat-users>\
46 <role rolename="standard"\/>\
47 <role rolename="manager"\/>\
48 <user username="hobbes" password="tiger" roles="standard,manager"\/>/' $CATALINA_HOME/conf/tomcat-users.orig > $CATALINA_HOME/conf/tomcat-users.xml