| 5 | The 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 = |
| 11 | You 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 | |
| 19 | There 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 |
| 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 = |