因此最近開始研究
安裝多重OS 在同一顆硬碟上
首先測試的組合為
Rhel4 + Rhel5 x86 + Rhel5 x64 +Sles 10 x64
再加上其kernel & Xen 的模式
所以GRUB的開機選單為9個
1.先規劃好硬碟切割的空間
SWAP 一個讓每個OS 共用即可
/ 每個OS 擁有自己的根目錄
/boot 這個是最重要的地方! 每個OS 都必須要擁有自己獨立的boot folder
2.我安裝的順序分別為 Rhel5 > Rhel4 >Sles10
3.再來就是到預設的boot folder 底下去編輯
grub.conf 這個檔案
將其他的OS 的grub.conf 參數加入即可
下面為 rhel4 + rhel5 為範例
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/sda6
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Rhel4 AS (2.6.9-89.ELsmp)
root (hd0,4)
kernel /vmlinuz-2.6.9-89.ELsmp ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-89.ELsmp.img
title Rhel4 AS-up (2.6.9-89.EL)
root (hd0,4)
kernel /vmlinuz-2.6.9-89.EL ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-89.EL.img
title Rhel5 (2.6.18-238.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-238.el5
module /vmlinuz-2.6.18-238.el5xen ro root=LABEL=/ rhgb quiet
module /initrd-2.6.18-238.el5xen.img
title Rhel5-base (2.6.18-238.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-238.el5.img
沒有留言:
張貼留言