Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

Capítulo 6. Configuración de GRUB

GNU Grand Unified Boot Loader (or GRUB) is a program which enables the user to select which installed operating system or kernel to load at system boot time. It also allows the user to pass arguments to the kernel. The GRUB configuration file (located in /boot/grub/grub.conf) is used to create a list of operating systems to boot in GRUB's menu interface. When you install the kernel-xen RPM, a post script adds kernel-xen entries to the GRUB configuration file. You can edit the grub.conf file and enable the following GRUB parameter:
title Red Hat Enterprise Linux Server (2.6.18-3.el5xen)
root   (hd0; 0)
kernel  /xen.gz.-2.6.18-3.el5
module  /vmlinuz-2.6..18-3.el5xen ro root=/dev/VolGroup00/LogVol00  rhgb quiet
module  /initrd-2.6.18-3. el5xenxen.img

Si se configura las entradas de GRUB para que se asemejen a este ejemplo, el gestor de arranque carga el hipervisor, la imagen initrd y el kernel de Linux. Como el kernel está sobre las otras entradas, éste se carga en memoria primero. El gestor de arranque envía (y recibe) argumentos de la línea de comandos al hipervisor y al kernel de Linux. Esta entrada de ejemplo muestra cómo se puede restringir la memoria del kernel de linux a 800 MB en Domain0:

title Red Hat Enterprise Linux Server (2.6.18-3.el5xen)
root   (hd0; 0)
kernel  /xen.gz.-2.6.18-3.el5 dom0_mem=800M
module  /vmlinuz-2.6..18-3.el5xen ro root=/dev/VolGroup00/LogVol00  rhgb quiet
module  /initrd-2.6.18-3. el5xenxen.img

Usted puede utilizar estos parámetros de GRUB para configurar el hipervisor de virtualización:
mem

Este parametro limita la cantidad de memoria disponible para domain0.

com1=115200, 8n1

Esto activa el primer puerto serial en el sistema para que actúe como una consola serial (com2 se asigna al siguiente puerto y así sucesivamente).
 
dom0_mem
Este parametro limita la cantidad de memoria disponible para domain0.
dom0_max_vcpus
Este parámetro limita la cantidad de CPU visible para domain0.
acpi
Este parámetro intercambia el hipervisor ACPI al hipervisor y domain0. Las opciones del parámetro ACPI incluyen:

/*   ****  Linux config options: propagated to domain0  ****/
/*   "acpi=off":      Disables both ACPI table parsing and interpreter.   */
/*   "acpi=force":    Overrides the disable blacklist.                    */
/*   "acpi=strict":   Disables out-of-spec workarounds.                   */
/*   "acpi=ht":       Limits ACPI from boot-time to enable HT.            */
/*   "acpi=noirq":    Disables ACPI interrupt routing.                    */


noacpi

Este parámetro desactiva APIC para el envío de interrupciones.