Changes between Version 1 and Version 2 of Doc/OS/Xen


Ignore:
Timestamp:
Feb 7, 2008, 1:02:39 PM (18 years ago)
Author:
/C=IE/O=Grid-Ireland/OU=cs.tcd.ie/L=RA-TCD/CN=Stephen O. Childs
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/OS/Xen

    v1 v2  
     1= Introduction =
     2
    13It is possible to integrate the configuration and installation of Xen guest virtual machines (VM) quite closely with an existing QWG setup. Using [http://www.cs.tcd.ie/Stephen.Childs/pypxeboot pypxeboot] and suitable Xen packages (such as those available from CERN Linux support [https://twiki.cern.ch/twiki/bin/view/LinuxSupport/XenHowTo here], it is possible to perform a fully-automated install of Xen guest VMs, with all relevant configuration automatically extracted from the guest's own templates.
    24
     5The aim of our procedure is to integrate VM configuration as closely as possible with the configuration of "normal" machines. This means:
     6
     7    * Guest VMs are normally installed using the automated PXE/Kickstart installation configured by Quattor's AII software.
     8    * Guest VMs are installed on virtual "hardware" described in its own hardware template. For example, MAC addresses, disk sizes and names, CPU architecture, etc. can all be specified in the VMs hardware template, and will then be used to generate appropriate configuration files for guest VMs.
     9
     10= Install server configuration =
     11You will need to install Xen kernels for use during the initial PXE boot of the Xen guest VM. The following table shows where these should be installed and provides links to the relevant files.
     12
     13|| /osinstall/nbp/slc308_i386_xen || http://linuxsoft.cern.ch/cern/slc308/i386/images/xen/ ||
     14|| /osinstall/nbp/sl450-x86_64_xen || http://ftp.scientificlinux.org/linux/scientific/45/x86_64/images/xen/ ||
     15 
     16
     17= Host configuration =
     18
     19There are two components to the configuration of a Xen host: the configuration of the host's own software and the creation of Xen configuration files for the guests. The template {{{config/xen/host}}} includes the template {{{config/xen/configure_guests}}} which will configure a set of guests in a pre-defined way according to the contents of their hardware templates. This means:
     20 * The disk size defined in 
    321
    422
     23 * Make sure the OS defined for your VM is correct. Check the Quattor template {{{os_version_db.tpl}}} and edit it if necessary to ensure that your host has the correct OS selected.
     24 * Define the variable XEN_GUESTS to be a list of the guests you want to install on the host, using the names of their templates. (N.B. there is currently a restriction that the host and guest templates must be in the same cluster.) For example:
     25{{{
     26variable XEN_GUESTS = list("testui.example.org","testwn.example.org");
     27}}}
     28 * Include the template {{{config/xen/host}}}: this will set up some basic configuration and also pull in the correct RPMs.
     29 * The configuration of the host is controlled by a set of variables with default values. These can be customised if required.
    530
     31|| '''Variable''' || '''Default value''' || '''Comments''' ||
     32|| XEN_BOOT_DEVICE || "/dev/sda2" || Root FS of host (for grub configuration) ||
     33|| XEN_VG          || "vg01"      || Base volume group to create guest VM FS on ||
     34|| XEN_GUESTS      || None        || A list of FQDNs for guest VMs (e.g. list("gridgate.cs.tcd.ie", "gridui.cs.tcd.ie")) ||
     35|| XEN_BOOTLOADER_DEFAULT || "/usr/bin/pypxeboot" || Default bootloader for VMs. Change this to e.g. pygrub if no DHCP server is available ||
     36|| XEN_BOOTLOADER || || nlist mapping VM names to bootloader to override default, e.g. nlist("gridgt4.cs.tcd.ie","/usr/bin/pypxeboot") ||
     37|| XEN_BOOTARGS || "vif[0]" || Argument needed by pypxeboot, set to "" for pygrub ||
     38|| XEN_CREATE_FILESYSTEMS || true || Whether ncm-xen should try and create filesystems defined for VMs ||
     39|| XEN_CREATE_DOMAINS || true || Whether ncm-xen should try and create (i.e. start up) domains when it runs ||
     40|| XEN_PROFILE_PREFIX || Not needed at GI as FQDNs are used for node names ||
     41
     42= Guest configuration =