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

假​​​​​​​如​​​​​​​您​​​​​​​將​​​​​​​您​​​​​​​的​​​​​​​ Linux GRUB 項​​​​​​​目​​​​​​​設​​​​​​​定​​​​​​​來​​​​​​​反​​​​​​​映​​​​​​​這​​​​​​​項​​​​​​​範​​​​​​​例​​​​​​​,開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​就​​​​​​​會​​​​​​​載​​​​​​​入​​​​​​​超​​​​​​​管​​​​​​​理​​​​​​​器​​​​​​​、​​​​​​​initrd 映​​​​​​​像​​​​​​​檔​​​​​​​,以​​​​​​​及​​​​​​​ Linux 核​​​​​​​心​​​​​​​。​​​​​​​因​​​​​​​為​​​​​​​核​​​​​​​心​​​​​​​的​​​​​​​項​​​​​​​目​​​​​​​位​​​​​​​於​​​​​​​其​​​​​​​它​​​​​​​項​​​​​​​目​​​​​​​的​​​​​​​上​​​​​​​方​​​​​​​,所​​​​​​​以​​​​​​​核​​​​​​​心​​​​​​​會​​​​​​​先​​​​​​​載​​​​​​​入​​​​​​​記​​​​​​​憶​​​​​​​體​​​​​​​中​​​​​​​。​​​​​​​接​​​​​​​著​​​​​​​開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​會​​​​​​​傳​​​​​​​送​​​​​​​(與​​​​​​​接​​​​​​​收​​​​​​​)指​​​​​​​令​​​​​​​列​​​​​​​引​​​​​​​數​​​​​​​至​​​​​​​超​​​​​​​管​​​​​​​理​​​​​​​器​​​​​​​與​​​​​​​ Linux 核​​​​​​​心​​​​​​​(或​​​​​​​由​​​​​​​它​​​​​​​們​​​​​​​接​​​​​​​收​​​​​​​指​​​​​​​令​​​​​​​列​​​​​​​引​​​​​​​數​​​​​​​)。​​​​​​​這​​​​​​​項​​​​​​​範​​​​​​​例​​​​​​​顯​​​​​​​示​​​​​​​了​​​​​​​您​​​​​​​該​​​​​​​如​​​​​​​何​​​​​​​將​​​​​​​ Domain0 linux 的​​​​​​​核​​​​​​​心​​​​​​​記​​​​​​​憶​​​​​​​體​​​​​​​限​​​​​​​制​​​​​​​為​​​​​​​ 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 參​​​​​​​數​​​​​​​來​​​​​​​設​​​​​​​定​​​​​​​虛​​​​​​​擬​​​​​​​化​​​​​​​的​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​序​​​​​​​:
mem

這​​​​​​​會​​​​​​​限​​​​​​​制​​​​​​​ domain0 所​​​​​​​能​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​記​​​​​​​憶​​​​​​​體​​​​​​​數​​​​​​​量​​​​​​​。​​​​​​​

com1=115200, 8n1

這​​​​​​​能​​​​​​​使​​​​​​​系​​​​​​​統​​​​​​​中​​​​​​​的​​​​​​​第​​​​​​​一​​​​​​​個​​​​​​​序​​​​​​​列​​​​​​​埠​​​​​​​擔​​​​​​​任​​​​​​​序​​​​​​​列​​​​​​​埠​​​​​​​主​​​​​​​控​​​​​​​台​​​​​​​(com2 會​​​​​​​被​​​​​​​指​​​​​​​定​​​​​​​為​​​​​​​下​​​​​​​一​​​​​​​個​​​​​​​埠​​​​​​​口​​​​​​​,等​​​​​​​等​​​​​​​...)。​​​​​​​
 
dom0_mem
這​​​​​​​會​​​​​​​限​​​​​​​制​​​​​​​ domain0 所​​​​​​​能​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​記​​​​​​​憶​​​​​​​體​​​​​​​數​​​​​​​量​​​​​​​。​​​​​​​
dom0_max_vcpus
這​​​​​​​會​​​​​​​限​​​​​​​制​​​​​​​ domain0 所​​​​​​​能​​​​​​​見​​​​​​​的​​​​​​​ CPU 數​​​​​​​量​​​​​​​。​​​​​​​
acpi
這​​​​​​​會​​​​​​​將​​​​​​​ ACPI 管​​​​​​​理​​​​​​​程​​​​​​​序​​​​​​​切​​​​​​​換​​​​​​​到​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​序​​​​​​​與​​​​​​​ 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

這​​​​​​​會​​​​​​​以​​​​​​​中​​​​​​​斷​​​​​​​結​​​​​​​果​​​​​​​會​​​​​​​停​​​​​​​用​​​​​​​ APIC。​​​​​​​