Changes between Version 6 and Version 7 of Doc/OS/Xen
- Timestamp:
- Feb 8, 2008, 4:54:17 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/OS/Xen
v6 v7 25 25 = Host configuration = 26 26 27 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:28 * The disk size defined in 27 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 {{{xen/host/config}}} includes the template {{{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: 28 * The disk size defined in the hardware template will be use to create backing storage for the VM filesystem. 29 29 30 30 … … 34 34 variable XEN_GUESTS = list("testui.example.org","testwn.example.org"); 35 35 }}} 36 * Include the template {{{ config/xen/host}}}: this will set up some basic configuration and also pull in the correct RPMs.36 * Include the template {{{xen/host/config}}}: this will set up some basic configuration and also pull in the correct RPMs. 37 37 * The configuration of the host is controlled by a set of variables with default values. These can be customised if required. 38 38 39 39 || '''Variable''' || '''Default value''' || '''Comments''' || 40 || XEN_BOOT_DEVICE || "/dev/sda2" || Root FS of host (for grub configuration) || 40 || XEN_BOOT_DEVICE || "/dev/sda2" || Root filesystem of guests || 41 || XEN_DOM0_MEM || "400M" || Memory assigned to Xen Domain 0 || 41 42 || XEN_VG || "vg01" || Base volume group to create guest VM FS on || 42 43 || XEN_GUESTS || None || A list of FQDNs for guest VMs (e.g. list("gridgate.cs.tcd.ie", "gridui.cs.tcd.ie")) || … … 51 52 = Guest configuration = 52 53 * As with the host, make sure the OS for the guest is correctly configured in {{{os_version_db}}}. '''Check the table above to ensure that the guest you're installing is compatible with the host OS.''' 53 * Create a hardware template for the machine based on {{{cfg/grid-ireland/hardware/machines/xen}}}. Note that the disk and RAM sizes defined in this template will be used to generate the Xen configuration for the VM. Also, from SL 4.5 the base disk should be {{{xvda}}} not {{{sda}}} (see {{{xen_mini_gt4_sl45}}} for an example.54 * Create a hardware template for the machine based on {{{cfg/grid-ireland/hardware/machines/xen}}}. Note that the disk and RAM sizes defined in this template will be used to generate the Xen configuration for the VM. Also, from SL 4.5 the base disk should be {{{xvda}}} not {{{sda}}}. 54 55 * Set up the mapping between the node name and hardware template in the site databases template ({{{site/databases.tpl}}} or {{{pro_site_databases.tpl}}}. 55 * Include the template {{{ config/xen/guest}}} in the node's template.56 * Include the template {{{xen/guest/config}}} in the node's template. 56 57 57 58 = Issues =