direct-io.hg

changeset 5556:80b60ef3f553

bitkeeper revision 1.1738 (42ba87barFA27QtqNiI4v7D2u57koA)

This is a patch to the README file to provide the missing
info on building from the source tree. It's by no means
clean, complete or even necessarily correct - just a first
draft to get the doc/instructions going.

All cleanups would be appreciated.

Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Jun 23 09:58:18 2005 +0000 (2005-06-23)
parents 94893eb31f44
children 678c1c052a5c
files README
line diff
     1.1 --- a/README	Thu Jun 23 09:52:50 2005 +0000
     1.2 +++ b/README	Thu Jun 23 09:58:18 2005 +0000
     1.3 @@ -40,7 +40,9 @@ Quick-Start Guide - Pre-Built Binary Rel
     1.4  performed with root privileges.]
     1.5  
     1.6  1. Install the binary distribution onto your filesystem:
     1.7 +
     1.8      # sh ./install.sh
     1.9 +
    1.10     Amongst other things, this will install Xen and XenLinux kernel
    1.11     files in /boot, kernel modules and Python packages in /lib, and
    1.12     various control tools in standard 'bin' directories.
    1.13 @@ -50,9 +52,11 @@ 2. Configure your bootloader to boot Xen
    1.14     alternatives such as LILO are *not* supported. You can most likely
    1.15     find your GRUB menu file at /boot/grub/menu.lst: edit this file to
    1.16     include an entry like the following:
    1.17 +
    1.18      # title Xen 2.0 / XenLinux 2.6
    1.19      #   kernel /boot/xen-2.0.gz dom0_mem=<mem-kb> console=vga
    1.20      #   module /boot/vmlinuz-2.6-xen0 root=<root-dev> ro console=tty0
    1.21 +
    1.22     For <mem-kb> you should specify the amount of memory, in kilobytes,
    1.23     to allocate for use by your initial XenLinux virtual machine. Note
    1.24     that Xen itself reserves about 32MB memory for internal use, which
    1.25 @@ -79,3 +83,61 @@ provided by your Linux distributor:
    1.26  
    1.27  [NB. Unless noted otherwise, all the following steps should be
    1.28  performed with root privileges.]
    1.29 +
    1.30 +1. Download and untar the source tarball file. This will be a
    1.31 +   file named xen-unstable-src.tgz, or xen-$version-src.tgz.
    1.32 +   You can also pull the current version from the SCMS
    1.33 +   that is being used (Bitkeeper, scheduled to change shortly).
    1.34 +
    1.35 +    # tar xzf xen-unstable-src.tgz
    1.36 +
    1.37 +   Assuming you are using the unstable tree, this will
    1.38 +   untar into xen-unstable. The rest of the instructions
    1.39 +   use the unstable tree as an example, substitute the
    1.40 +   version for unstable.
    1.41 +
    1.42 +2. cd to xen-unstable (or whatever you sensibly rename it to).
    1.43 +   The Linux (2.4 and 2.6), netbsd and freebsd kernel source
    1.44 +   trees are in the $os-$version-xen-sparse directories.
    1.45 +
    1.46 +On Linux:
    1.47 +
    1.48 +3. For the very first build, or if you want to destroy existing
    1.49 +   .configs and build trees, perform the following steps:
    1.50 +
    1.51 +    # make world
    1.52 +    # make install
    1.53 +
    1.54 +   This will create the directories linux-2.6.11-dom0/ and
    1.55 +   linux-2.6.11-domU/ after first cleaning everything. It will
    1.56 +   create and install into the dist/ directory which is the
    1.57 +   default install location. It will build the xen binary
    1.58 +   (xen.gz), the boot images for dom0 and an unpriviledged
    1.59 +   guest kernel (vmlinuz-2.6.11-xen0 and vmlinuz-2.6.11-xenU
    1.60 +   respectively), the tools and the documentation.
    1.61 +
    1.62 +4. To rebuild an existing tree without modifying the config:
    1.63 +    # make dist
    1.64 +
    1.65 +   This will build and install xen, kernels, tools, and
    1.66 +   docs into the local dist/ directory.
    1.67 +
    1.68 +5. To rebuild a kernel with a modified config:
    1.69 +
    1.70 +    # cd linux-2.6.11-xen0         # or linux-2.6.11-xenU
    1.71 +    # make ARCH=xen menuconfig     # or xconfig
    1.72 +    # cd ..
    1.73 +    # make dist
    1.74 +    # make install
    1.75 +
    1.76 +   You can copy your own config into linux-2.6.11-xen0 first.
    1.77 +   Alternatively, you can also copy your config file to
    1.78 +   dist/install/boot/config-$version-xen0/U.  This is picked up
    1.79 +   when a make dist is done. Include the ARCH=xen directive for
    1.80 +   all make commands when building the kernels.
    1.81 +
    1.82 +6. To see a full list of targets and a brief description, type:
    1.83 +    # make help
    1.84 +
    1.85 +7. Edit your grub.conf file as described above to have an
    1.86 +   appropriate entry for your new kernel.