Red Hat Training

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

6장. 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

리눅스 grub 항목을 위 예제와 같이 설정하면, 부트로더는 hypervisor(initrd 이미지)와 리눅스 커널을 불러들입니다. 이 커널 항목이 다른 항목보다 위에 있으므로 이 커널이 먼저 메모리에 상주하게 됩니다. 부트로더는 hypervisor와 Linux 커널로 또는 그것들로부터 명령행 인수를 보내거나 받습니다. 다음 예제 항목은 어떻게 domain0 리눅스 커널 메모리를 800MB로 제한하는지를 보여줍니다.

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

다음의 GRUB 파라미터를 사용하여 Virtualization hypervisor를 구성할 수 있습니다:
mem

domain0에 필요한 메모리의 양을 제한합니다.

com1=115200, 8n1

시스템의 첫째 시리얼 포트를 시리얼 콘솔로 작동하도록 활성화합니다 (com2는 다음 포트로 할당, 기타 등등..).
 
dom0_mem
domain0에 필요한 메모리의 양을 제한합니다.
dom0_max_vcpus
domain0에 보이는 CPU 수를 제한합니다.
acpi
ACPI hypervisor를 hypervisor와 domain0으로 전환합니다. ACPI 파라미터 옵션은 다음을 포함합니다:

/*   ****  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

인터럽트 전달을 위해 ACPI를 비활성화시킵니다.