ia64/xen-unstable

changeset 771:f6f2a326ccaa

bitkeeper revision 1.468 (3f776bd43_wFRTwYlSu5A4qtJST5zw)

changes to build system, example config scripts added, READMEs improved.
author iap10@labyrinth.cl.cam.ac.uk
date Sun Sep 28 23:16:36 2003 +0000 (2003-09-28)
parents 8128e1dc99aa
children 5201797ee24a
files .rootkeys Makefile README README.CD tools/Makefile tools/control/Makefile tools/control/examples/grub.conf-example tools/control/examples/xen-mynewdom tools/control/examples/xenctl.xml tools/control/examples/xenctl.xml-dom0nfs tools/control/examples/xenctl.xml-linklocal tools/control/examples/xenctl.xml-publicip tools/control/xenctl.xml tools/misc/Makefile tools/misc/miniterm/Makefile tools/misc/mkdevnodes tools/misc/xen-clone tools/misc/xen-mkdevnodes
line diff
     1.1 --- a/.rootkeys	Sat Sep 27 01:20:59 2003 +0000
     1.2 +++ b/.rootkeys	Sun Sep 28 23:16:36 2003 +0000
     1.3 @@ -6,6 +6,7 @@ 3eb788d6Kleck_Cut0ouGneviGzliQ Makefile
     1.4  3f5ef5a24IaQasQE2tyMxrfxskMmvw README
     1.5  3f5ef5a2l4kfBYSQTUaOyyD76WROZQ README.CD
     1.6  3f69d8abYB1vMyD_QVDvzxy5Zscf1A TODO
     1.7 +3f776bd1Hy9rn69ntXBhPReUFw9IEA tools/Makefile
     1.8  3e6377b24eQqYMsDi9XrFkIgTzZ47A tools/balloon/Makefile
     1.9  3e6377d6eiFjF1hHIS6JEIOFk62xSA tools/balloon/README
    1.10  3e6377dbGcgnisKw16DPCaND7oGO3Q tools/balloon/balloon.c
    1.11 @@ -16,6 +17,12 @@ 3ec41f7ca6IBXDSe0HVcMPp3PPloOQ tools/con
    1.12  3f0d61da3O5gkcntbIOdUmN2-RcZbQ tools/control/doc/INSTALL-cmdline
    1.13  3eca6a96a31IwaKtkEa4jmzwTWlm8Q tools/control/doc/INSTALL-web
    1.14  3f0d61daCTHGCpQK0Brz3PAp80d_2Q tools/control/doc/USAGE-cmdline
    1.15 +3f776bd12y6bW-wtcs6rD2qhdpT_Rw tools/control/examples/grub.conf-example
    1.16 +3f776bd1RBu7Gnce6Bq9328QFUZBsw tools/control/examples/xen-mynewdom
    1.17 +3eb781fcabCKRogwxJA3-jJKstw9Vg tools/control/examples/xenctl.xml
    1.18 +3f776bd1bfwM-pP6b2qd0vih1KeV8w tools/control/examples/xenctl.xml-dom0nfs
    1.19 +3f776bd1-A4vvCCsz-KOgZyAj4ux2g tools/control/examples/xenctl.xml-linklocal
    1.20 +3f776bd2y1sfPGpfiaj4A-sRdUON7A tools/control/examples/xenctl.xml-publicip
    1.21  3f042c35FzVap5QW0UBPnZ2ZM0l3QA tools/control/src/org/xenoserver/cmdline/CommandParser.java
    1.22  3eb781fdNQvEJW3tNvovjqoN7GlePA tools/control/src/org/xenoserver/cmdline/Main.java
    1.23  3f042c35-TPgpCQViIaJzLts2-CnBw tools/control/src/org/xenoserver/cmdline/ParseDomainDestroy.java
    1.24 @@ -123,7 +130,6 @@ 3ec41f7ecn3uvsSrOVxKC8G8ACuulg tools/con
    1.25  3ec41f7ek1RffqN2yRUzSTkD5m1J6w tools/control/web/tmpl/xenohead.def
    1.26  3ec41f7e1ZpfCsgQ2qRJBooBn_iRtA tools/control/web/tmpl/xenostyle.css
    1.27  3eb781fc6vgq5yhkJRGDLY9gWWRY2A tools/control/xenctl
    1.28 -3eb781fcabCKRogwxJA3-jJKstw9Vg tools/control/xenctl.xml
    1.29  3eb781fdl4lXWYZzmqDDUAYhAThRqQ tools/internal/Makefile
    1.30  3eb781fdc539MQQm47rYRCCR3N5i-Q tools/internal/dom0_defs.h
    1.31  3eb781fdKiQbgozBsgs_zzJQ9ubehw tools/internal/mem_defs.h
    1.32 @@ -142,12 +148,13 @@ 3eb781fd8oRfPgH7qTh7xvgmwD6NgA tools/int
    1.33  3eb781fd0Eo9K1jEFCSAVzO51i_ngg tools/internal/xi_stop.c
    1.34  3f108ae2to5nHRRXfvUK7oxgjcW_yA tools/internal/xi_usage.c
    1.35  3eb781fd7211MZsLxJSiuy7W4KnJXg tools/internal/xi_vifinit
    1.36 +3f776bd2Xd-dUcPKlPN2vG89VGtfvQ tools/misc/Makefile
    1.37  3f6dc136ZKOjd8PIqLbFBl_v-rnkGg tools/misc/miniterm/Makefile
    1.38  3f6dc140C8tAeBfroAF24VrmCS4v_w tools/misc/miniterm/README
    1.39  3f6dc142IHaf6XIcAYGmhV9nNSIHFQ tools/misc/miniterm/miniterm.c
    1.40 -3f1668d4-FUY6Enc7MB3GcwUtfJ5HA tools/misc/mkdevnodes
    1.41  3f5ef5a2ir1kVAthS14Dc5QIRCEFWg tools/misc/xen-clone
    1.42  3f5ef5a2dTZP0nnsFoeq2jRf3mWDDg tools/misc/xen-clone.README
    1.43 +3f1668d4-FUY6Enc7MB3GcwUtfJ5HA tools/misc/xen-mkdevnodes
    1.44  3f13d81eQ9Vz-h-6RDGFkNR9CRP95g tools/misc/xen_nat_enable
    1.45  3f13d81e6Z6806ihYYUw8GVKNkYnuw tools/misc/xen_nat_enable.README
    1.46  3f1668d4F29Jsw0aC0bJEIkOBiagiQ tools/misc/xen_read_console.c
     2.1 --- a/Makefile	Sat Sep 27 01:20:59 2003 +0000
     2.2 +++ b/Makefile	Sun Sep 28 23:16:36 2003 +0000
     2.3 @@ -19,20 +19,13 @@
     2.4  
     2.5  all:	
     2.6  	$(MAKE) -C xen
     2.7 -	$(MAKE) -C tools/balloon
     2.8 -	$(MAKE) -C tools/control
     2.9 -	$(MAKE) -C tools/internal
    2.10 +	$(MAKE) -C tools
    2.11  
    2.12  install: all
    2.13  	$(MAKE) -C xen install
    2.14 -	$(MAKE) -C tools/balloon install
    2.15 -	$(MAKE) -C tools/control install
    2.16 -	$(MAKE) -C tools/internal install
    2.17 -
    2.18 +	$(MAKE) -C tools install
    2.19  
    2.20  clean:
    2.21  	$(MAKE) -C xen clean
    2.22 -	$(MAKE) -C tools/balloon clean
    2.23 -	$(MAKE) -C tools/control clean
    2.24 -	$(MAKE) -C tools/internal clean
    2.25 +	$(MAKE) -C tools clean
    2.26  
     3.1 --- a/README	Sat Sep 27 01:20:59 2003 +0000
     3.2 +++ b/README	Sun Sep 28 23:16:36 2003 +0000
     3.3 @@ -98,7 +98,6 @@ We've successfully booted over 128 copie
     3.4  more normal to use some smaller number, perhaps 10-20.
     3.5  
     3.6  
     3.7 -
     3.8  Hardware support
     3.9  ================
    3.10  
    3.11 @@ -135,14 +134,29 @@ recommended since they require extra pac
    3.12  Building Xen and XenoLinux
    3.13  ==========================
    3.14  
    3.15 -Take a look at the tools/misc/xen-clone script in the BK repository,
    3.16 -which will 'bk clone' the live master tree, and then set about 
    3.17 -building everything. The build procedure for xenolinux is slightly 
    3.18 -complicated as its done by running the 'mkbuildtree' script over
    3.19 -a pristine Linux tree to turn it into a xenolinux tree by adding the
    3.20 -'xeno' architecture.
    3.21 +The public master BK repository lives at: bk://xen.bkbits.net/xeno.bk
    3.22  
    3.23 -The public master BK repository lives at:   bk://xen.bkbits.net/xeno.bk
    3.24 +To fetch a local copy, install the BitKeeper tools, then run: 
    3.25 +'bk clone bk://xen.bkbits.net/xeno.bk'
    3.26 +
    3.27 +To see how to build Xen, Xenolinux, and all the control tools, inspect
    3.28 +the tools/misc/xen-clone script in the BK repository. This script can
    3.29 +be used to clone the repostitory and perform a full build.
    3.30 +
    3.31 +The build procedure for xenolinux is slightly complicated as its done
    3.32 +by running the 'mkbuildtree' script over a pristine Linux tree to turn
    3.33 +it into a xenolinux tree by adding the 'xeno' architecture.
    3.34 +
    3.35 +There's also a pre-built source tree on the project downloads page.
    3.36 +
    3.37 +
    3.38 +Using the domain control tools
    3.39 +==============================
    3.40 +
    3.41 +The README.CD file contains some examples of how to use 'xenctl' and
    3.42 +the other domain control tools. Invoking the tool without any
    3.43 +arguments prints some usage inforamtion. There's also some
    3.44 +documentation in the the repository under tools/control/doc
    3.45  
    3.46  
    3.47  
     4.1 --- a/README.CD	Sat Sep 27 01:20:59 2003 +0000
     4.2 +++ b/README.CD	Sun Sep 28 23:16:36 2003 +0000
     4.3 @@ -89,10 +89,15 @@ via ssh::
     4.4   password: xendemo      xendemo
     4.5  
     4.6  Once logged in, it should look just like any regular linux box. All
     4.7 -the usual tools and commands should work as per usual.  It's probably
     4.8 -best to start by configuring networking, either with 'dhclient' or
     4.9 -manually via ifconfig and route, remembering to edit /etc/resolv.conf
    4.10 -if you want DNS.
    4.11 +the usual tools and commands should work as per usual.  However,
    4.12 +because of the poor random access performance of CD drives, the
    4.13 +machine will feel rather slugish, and you may run out of memory if you
    4.14 +make significant modifications to the ramfs filesystem -- for the full
    4.15 +experience, install a Xen and XenoLinux image on you hard drive :-)
    4.16 +
    4.17 +You can configure networking, either with 'dhclient' or manually via
    4.18 +'ifconfig' and 'route', remembering to edit /etc/resolv.conf if you
    4.19 +want DNS.
    4.20  
    4.21  You can start an X server with 'startx'. It defaults to a conservative
    4.22  1024x768, but you can edit the script for higher resoloutions.  The CD
    4.23 @@ -242,7 +247,7 @@ Alternatively, you can use 'virtual disk
    4.24  within a custom file system. "xenctl partitions add" can be used to
    4.25  'format' a partition with the file system, and then virtual disks can
    4.26  be created with "xenctl vd create". Virtual disks can then be attached
    4.27 -to a running domain as a 'virtual block device' using "xenctl vdb
    4.28 +to a running domain as a 'virtual block device' using "xenctl vbd
    4.29  create". The virtual disk can optionally be partitioned (e.g. "fdisk
    4.30  /dev/xvda") or have a file system created on it directly (e.g. "mkfs
    4.31  -t ext3 /dev/xvda").  The virtual disk can then be accessed by a
    4.32 @@ -329,7 +334,7 @@ xen-devel@lists.sourceforge.net mailing 
    4.33  
    4.34  
    4.35  Installing from the CD
    4.36 -----------------------
    4.37 +======================
    4.38  
    4.39  If you're installing Xen/XenoLinux onto an existing linux file system
    4.40  distribution, just copy the Xen VMM (/boot/image.gz) and XenoLinux
    4.41 @@ -373,7 +378,7 @@ require a second "module" line.
    4.42  
    4.43  
    4.44  Installing the file systems from the CD
    4.45 ----------------------------------------
    4.46 +=======================================
    4.47  
    4.48  If you haven't an existing Linux installation onto which you can just
    4.49  drop down the Xen and XenoLinux images, then the file systems on the
    4.50 @@ -411,7 +416,7 @@ version of the XenDemoCD (see below).
    4.51  
    4.52  
    4.53  Debugging
    4.54 ----------
    4.55 +=========
    4.56  
    4.57  Xen has a set of debugging features that can be useful to try and
    4.58  figure out what's going on. Hit 'h' on the serial line (if you
    4.59 @@ -432,7 +437,7 @@ connected to a serial-port server.
    4.60  
    4.61  
    4.62  Description of how the XenDemoCD boots
    4.63 ---------------------------------------
    4.64 +======================================
    4.65  
    4.66  1. Grub is used to load Xen, a XenoLinux kernel, and an initrd (initial
    4.67  ram disk). [The source of the version of Grub used is in /usr/local/src]
    4.68 @@ -456,7 +461,7 @@ normally.
    4.69  
    4.70  
    4.71  Building your own version of the XenDemoCD
    4.72 -------------------------------------------
    4.73 +==========================================
    4.74  
    4.75  The 'live ISO' version of RedHat is based heavily on Peter Anvin's
    4.76  SuperRescue CD version 2.1.2 and J. McDaniel's Plan-B:
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/tools/Makefile	Sun Sep 28 23:16:36 2003 +0000
     5.3 @@ -0,0 +1,37 @@
     5.4 +#
     5.5 +# Grand Unified Makefile for Xen.
     5.6 +#
     5.7 +# Keir Fraser, 6/5/2003
     5.8 +#
     5.9 +# Builds everything except Xenolinux:
    5.10 +#  cd xenolinux-<version>-sparse
    5.11 +#  ./mkbuildtree <build dir>
    5.12 +#  cd <build dir> && make oldconfig && make dep && make bzImage
    5.13 +#  (<build dir> should be a vanilla linux tree with matching version)
    5.14 +#
    5.15 +# If you get errors in tools/domctl or tools/vdmanager, then you need
    5.16 +# the latest Java 2 SDK on your execution path: <http://java.sun.com>
    5.17 +# Also, you will need Apache's 'ant' build tool: <http://ant.apache.org>
    5.18 +#
    5.19 +# If you received this source as part of a Xen release, you should find
    5.20 +# that appropriate versions of the build tools are already installed in
    5.21 +# the initial system setup.
    5.22 +
    5.23 +all:	
    5.24 +	$(MAKE) -C balloon
    5.25 +	$(MAKE) -C control
    5.26 +	$(MAKE) -C internal
    5.27 +	$(MAKE) -C misc
    5.28 +
    5.29 +install: all
    5.30 +	$(MAKE) -C balloon install
    5.31 +	$(MAKE) -C control install
    5.32 +	$(MAKE) -C internal install
    5.33 +	$(MAKE) -C misc install
    5.34 +
    5.35 +clean:
    5.36 +	$(MAKE) -C balloon clean
    5.37 +	$(MAKE) -C control clean
    5.38 +	$(MAKE) -C internal clean
    5.39 +	$(MAKE) -C misc clean
    5.40 +
     6.1 --- a/tools/control/Makefile	Sat Sep 27 01:20:59 2003 +0000
     6.2 +++ b/tools/control/Makefile	Sun Sep 28 23:16:36 2003 +0000
     6.3 @@ -2,11 +2,13 @@
     6.4  default: cmdline
     6.5  
     6.6  #install: install-cmdline install-web
     6.7 -install: install-cmdline
     6.8 +install: install-cmdline examples
     6.9  
    6.10  clean: clean-cmdline clean-web
    6.11  
    6.12 -
    6.13 +examples: FORCE
    6.14 +	mkdir -p ../../../install/etc
    6.15 +	cp examples/xen* examples/grub.conf* ../../../install/etc/
    6.16  
    6.17  cmdline: FORCE
    6.18  	ant -buildfile build-cmdline.xml dist
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/tools/control/examples/grub.conf-example	Sun Sep 28 23:16:36 2003 +0000
     7.3 @@ -0,0 +1,48 @@
     7.4 +# grub.conf 
     7.5 +#
     7.6 +timeout=10
     7.7 +
     7.8 +# We can control GRUB via COM1. 
     7.9 +# Disable by default as it hangs on systems without a serial port and
    7.10 +# doesn't work with slpashimage enabled anyhow.
    7.11 +#
    7.12 +# serial --unit=0 --speed=115200
    7.13 +# terminal --timeout=10 serial console
    7.14 +
    7.15 +# These examples are from the Xen Demo CD, so the root filesystem setup
    7.16 +# using an initrd to mount the read only /usr is all rather non standard.
    7.17 +# There are arguably more normal examples in the README.CD file. Read
    7.18 +# the standard Linux documenation to find out about kernel cmd line
    7.19 +# parameters.
    7.20 +
    7.21 +# The two lots of console= parameters cause the domain 0 Linux to use both
    7.22 +# the VGA scree consoles and the Xen output-only console
    7.23 +
    7.24 +# We also make use of the ability to pass arbitrary environment variables
    7.25 +# on the kernel command line, so set the DOMID variable.
    7.26 +
    7.27 +splashimage=/boot/grub/splash.xpm.gz
    7.28 +
    7.29 +default=0
    7.30 +
    7.31 +title Xen / XenoLinux 2.4.22 
    7.32 +        kernel /boot/image.gz dom0_mem=100000
    7.33 +        module /boot/xenolinux.gz root=/dev/ram0 rw init=/linuxrc console=xencons0 console=tty0 DOMID=0
    7.34 +        module /boot/initrd.gz
    7.35 +
    7.36 +title Xen / XenoLinux 2.4.22 w/ cmdline IP config -- edit as required
    7.37 +        kernel /boot/image.gz dom0_mem=100000
    7.38 +        module /boot/xenolinux.gz ip=192.168.5.5::192.168.0.1:255.255.0.0::eth0:off root=/dev/ram0 rw init=/linuxrc console=xencons0 console=tty0 DOMID=0
    7.39 +        module /boot/initrd.gz
    7.40 +
    7.41 +title Xen / XenoLinux 2.4.22 in "safe mode"
    7.42 +        kernel /boot/image.gz ignorebiostables watchdog dom0_mem=100000 
    7.43 +        module /boot/xenolinux.gz root=/dev/ram0 rw init=/linuxrc console=xencons0 console=tty0 DOMID=0
    7.44 +        module /boot/initrd.gz
    7.45 +
    7.46 +
    7.47 +title Linux 2.4.22
    7.48 +        kernel /boot/vmlinuz-2.4.22 root=/dev/ram0 rw init=/linuxrc
    7.49 +        initrd /boot/initrd.gz
    7.50 +
    7.51 +
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/tools/control/examples/xen-mynewdom	Sun Sep 28 23:16:36 2003 +0000
     8.3 @@ -0,0 +1,3 @@
     8.4 +domain new
     8.5 +physical grant -pcdrom_link
     8.6 +domain start
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/tools/control/examples/xenctl.xml	Sun Sep 28 23:16:36 2003 +0000
     9.3 @@ -0,0 +1,17 @@
     9.4 +<?xml version="1.0"?>
     9.5 +<domctl_defaults>
     9.6 +<domain_name>XenoLinux</domain_name>
     9.7 +<domain_size_kb>98304</domain_size_kb>
     9.8 +<domain_image>/boot/xenolinux.gz</domain_image>
     9.9 +<domain_vifs>1</domain_vifs>
    9.10 +<domain_init_rd>/boot/initrd.gz</domain_init_rd>
    9.11 +<root_device>/dev/ram0</root_device>
    9.12 +<root_args>rw</root_args>
    9.13 +<args>init=/linuxrc 4 DOMID=+</args>
    9.14 +<nw_ip>169.254.1.0+</nw_ip>
    9.15 +<nw_gw>169.254.1.0</nw_gw>
    9.16 +<nw_mask>255.255.0.0</nw_mask>
    9.17 +<nw_nfs_server>169.254.1.0</nw_nfs_server>
    9.18 +<max_domain_number>1000</max_domain_number>
    9.19 +<xi_tools_dir>/usr/local/bin/</xi_tools_dir>
    9.20 +</domctl_defaults>
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/tools/control/examples/xenctl.xml-dom0nfs	Sun Sep 28 23:16:36 2003 +0000
    10.3 @@ -0,0 +1,17 @@
    10.4 +<?xml version="1.0"?>
    10.5 +<domctl_defaults>
    10.6 +<domain_name>XenoLinux</domain_name>
    10.7 +<domain_size_kb>98304</domain_size_kb>
    10.8 +<domain_image>/boot/xenolinux.gz</domain_image>
    10.9 +<domain_vifs>1</domain_vifs>
   10.10 +<root_device>/dev/nfs</root_device>
   10.11 +<root_args>rw</root_args>
   10.12 +<args>init=/linuxrc 4 DOMID=+</args>
   10.13 +<nw_ip>169.254.1.0+</nw_ip>
   10.14 +<nw_gw>169.254.1.0</nw_gw>
   10.15 +<nw_mask>255.255.0.0</nw_mask>
   10.16 +<nw_nfs_server>169.254.1.0</nw_nfs_server>
   10.17 +<nw_nfs_root>169.254.1.0:/local/roots/root+</nw_nfs_root>
   10.18 +<max_domain_number>1000</max_domain_number>
   10.19 +<xi_tools_dir>/usr/local/bin/</xi_tools_dir>
   10.20 +</domctl_defaults>
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/tools/control/examples/xenctl.xml-linklocal	Sun Sep 28 23:16:36 2003 +0000
    11.3 @@ -0,0 +1,17 @@
    11.4 +<?xml version="1.0"?>
    11.5 +<domctl_defaults>
    11.6 +<domain_name>XenoLinux</domain_name>
    11.7 +<domain_size_kb>98304</domain_size_kb>
    11.8 +<domain_image>/boot/xenolinux.gz</domain_image>
    11.9 +<domain_vifs>1</domain_vifs>
   11.10 +<domain_init_rd>/boot/initrd.gz</domain_init_rd>
   11.11 +<root_device>/dev/ram0</root_device>
   11.12 +<root_args>rw</root_args>
   11.13 +<args>init=/linuxrc 4 DOMID=+</args>
   11.14 +<nw_ip>169.254.1.0+</nw_ip>
   11.15 +<nw_gw>169.254.1.0</nw_gw>
   11.16 +<nw_mask>255.255.0.0</nw_mask>
   11.17 +<nw_nfs_server>169.254.1.0</nw_nfs_server>
   11.18 +<max_domain_number>1000</max_domain_number>
   11.19 +<xi_tools_dir>/usr/local/bin/</xi_tools_dir>
   11.20 +</domctl_defaults>
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/tools/control/examples/xenctl.xml-publicip	Sun Sep 28 23:16:36 2003 +0000
    12.3 @@ -0,0 +1,17 @@
    12.4 +<?xml version="1.0"?>
    12.5 +<domctl_defaults>
    12.6 +<domain_name>XenoLinux</domain_name>
    12.7 +<domain_size_kb>98304</domain_size_kb>
    12.8 +<domain_image>/boot/xenolinux.gz</domain_image>
    12.9 +<domain_vifs>1</domain_vifs>
   12.10 +<domain_init_rd>/boot/initrd.gz</domain_init_rd>
   12.11 +<root_device>/dev/ram0</root_device>
   12.12 +<root_args>rw</root_args>
   12.13 +<args>init=/linuxrc 4 DOMID=+</args>
   12.14 +<nw_ip>=+</nw_ip>
   12.15 +<nw_gw>=</nw_gw>
   12.16 +<nw_mask>=</nw_mask>
   12.17 +<nw_nfs_server>169.254.1.0</nw_nfs_server>
   12.18 +<max_domain_number>10</max_domain_number>
   12.19 +<xi_tools_dir>/usr/local/bin/</xi_tools_dir>
   12.20 +</domctl_defaults>
    13.1 --- a/tools/control/xenctl.xml	Sat Sep 27 01:20:59 2003 +0000
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,16 +0,0 @@
    13.4 -<?xml version="1.0"?>
    13.5 -<domctl_defaults>
    13.6 -<xi_tools_dir>/usr/local/bin/</xi_tools_dir>
    13.7 -<domain_name>XenoLinux</domain_name>
    13.8 -<domain_size_kb>16000</domain_size_kb>
    13.9 -<domain_image>./image</domain_image>
   13.10 -<domain_vifs>1</domain_vifs>
   13.11 -<root_device>/dev/nfs</root_device>
   13.12 -<root_args>ro</root_args>
   13.13 -<nw_ip>=+</nw_ip>
   13.14 -<nw_gw>=</nw_gw>
   13.15 -<nw_mask>=</nw_mask>
   13.16 -<nw_nfs_server>128.232.32.20</nw_nfs_server>
   13.17 -<nw_nfs_root>/usr/groups/srgboot/moonraider/roots/root+</nw_nfs_root>
   13.18 -<max_domain_number>10</max_domain_number>
   13.19 -</domctl_defaults>
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/tools/misc/Makefile	Sun Sep 28 23:16:36 2003 +0000
    14.3 @@ -0,0 +1,30 @@
    14.4 +
    14.5 +CC       = gcc
    14.6 +CFLAGS   = -Wall -O3 
    14.7 +CFLAGS  += -I../../xen/include -I../../xenolinux-sparse/include
    14.8 +
    14.9 +HDRS     = $(wildcard *.h)
   14.10 +SRCS     = $(wildcard *.c)
   14.11 +OBJS     = $(patsubst %.c,%.o,$(SRCS))
   14.12 +
   14.13 +TARGETS  = xen_read_console 
   14.14 +
   14.15 +INSTALL  = $(TARGETS) xen-mkdevnodes xen-clone
   14.16 +
   14.17 +all: $(TARGETS)
   14.18 +	$(MAKE) -C miniterm	
   14.19 +
   14.20 +install: all
   14.21 +	mkdir -p ../../../install/bin
   14.22 +	cp -a $(INSTALL) ../../../install/bin
   14.23 +	chmod 755 ../../../install/bin/xen-mkdevnodes
   14.24 +	chmod 755 ../../../install/bin/xen-clone
   14.25 +	$(MAKE) -C miniterm install
   14.26 +
   14.27 +clean:
   14.28 +	$(RM) *.o $(TARGETS)
   14.29 +	$(MAKE) -C miniterm clean	
   14.30 +
   14.31 +%: %.c $(HDRS) Makefile
   14.32 +	$(CC) $(CFLAGS) -o $@ $<
   14.33 +
    15.1 --- a/tools/misc/miniterm/Makefile	Sat Sep 27 01:20:59 2003 +0000
    15.2 +++ b/tools/misc/miniterm/Makefile	Sun Sep 28 23:16:36 2003 +0000
    15.3 @@ -3,5 +3,8 @@ CFLAGS  = -O3 -march=i686 -Wall
    15.4  
    15.5  all: miniterm
    15.6  
    15.7 +install: all
    15.8 +	cp -a miniterm ../../../../install/bin/	
    15.9 +
   15.10  clean:
   15.11 -	rm -f *.o miniterm *~
   15.12 \ No newline at end of file
   15.13 +	rm -f *.o miniterm *~
    16.1 --- a/tools/misc/mkdevnodes	Sat Sep 27 01:20:59 2003 +0000
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,21 +0,0 @@
    16.4 -#! /bin/bash
    16.5 -
    16.6 -BASE=${1:?"base directory missing (eg. /dev)"}
    16.7 -
    16.8 -rm -f ${BASE}/xhd[abcdefghijklmnop]*
    16.9 -rm -f ${BASE}/xsd[abcdefghijklmnop]*
   16.10 -rm -f ${BASE}/xvd[abcdefghijklmnop]*
   16.11 -
   16.12 -# XLVIRT is 16 devices of 15 partitions
   16.13 -
   16.14 -LETTERS="a b c d e f g h i j k l m n o p"
   16.15 -PARTITIONS="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"
   16.16 -
   16.17 -j=0
   16.18 -for l in ${LETTERS}; do
   16.19 -    mknod ${BASE}/xvd${l} b 125 ${j}
   16.20 -    for i in ${PARTITIONS}; do
   16.21 -        mknod ${BASE}/xvd${l}${i} b 125 $(($i+$j))
   16.22 -    done
   16.23 -    j=$(($j+16))
   16.24 -done
    17.1 --- a/tools/misc/xen-clone	Sat Sep 27 01:20:59 2003 +0000
    17.2 +++ b/tools/misc/xen-clone	Sun Sep 28 23:16:36 2003 +0000
    17.3 @@ -50,13 +50,23 @@ UCCL)
    17.4  esac
    17.5  
    17.6  # clone the master repository (now checked-out by default)
    17.7 +if [ ! -d ${DEST_BK_REP} ] 
    17.8 +then 
    17.9  bk clone ${BK_REP} ${DEST_BK_REP}
   17.10 +else
   17.11 +cd ${DEST_BK_REP}
   17.12 +bk pull
   17.13 +cd ${TOP}
   17.14 +fi
   17.15  
   17.16  # identify this version of linux
   17.17  LINUX_VER=`/bin/ls -ld ${DEST_BK_REP}/xenolinux-sparse | sed -e 's!^.*xenolinux-\([0-9.]\+\)-sparse!\1!'`
   17.18  
   17.19  # copy in the master Linux tree for this kernel
   17.20 +if [ ! -d linux-${LINUX_VER} ]
   17.21 +then
   17.22  tar -zxf ${LINUX_DIR}/linux-${LINUX_VER}.tar.gz || tar -zxf ${LINUX_DIR}/linux-${LINUX_VER}.tgz || cp -a ${LINUX_DIR}/linux-${LINUX_VER} . ||  wget ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-${LINUX_VER}.tar.gz -O- | tar -zxf - || exit -1
   17.23 +fi
   17.24  
   17.25  # build and install Xen and tools
   17.26  cd ${DEST_BK_REP}
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/tools/misc/xen-mkdevnodes	Sun Sep 28 23:16:36 2003 +0000
    18.3 @@ -0,0 +1,19 @@
    18.4 +#! /bin/bash
    18.5 +
    18.6 +BASE=${1:?"base directory missing (eg. /dev)"}
    18.7 +
    18.8 +rm -f ${BASE}/xvd[abcdefghijklmnop]*
    18.9 +
   18.10 +# XLVIRT is 16 devices of 15 partitions
   18.11 +
   18.12 +LETTERS="a b c d e f g h i j k l m n o p"
   18.13 +PARTITIONS="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"
   18.14 +
   18.15 +j=0
   18.16 +for l in ${LETTERS}; do
   18.17 +    mknod ${BASE}/xvd${l} b 125 ${j}
   18.18 +    for i in ${PARTITIONS}; do
   18.19 +        mknod ${BASE}/xvd${l}${i} b 125 $(($i+$j))
   18.20 +    done
   18.21 +    j=$(($j+16))
   18.22 +done