回到網頁內容 臺灣-繁體中文
HP.com 首頁 產品資訊 支�#169;及驅動程式 解決方案 如何購買
» 聯絡 HP
進階選項
HP.com 首頁
HP Integrity 虛擬機器 A.03.00 版: 安裝、配置與管理 > 第 6 章. 建立 Linux 從機

自 ISO 影像檔安裝 Linux 從機

» 

技術文件

PDF 格式的完整書籍
» 相關文件
» 回饋意見
內容©韟像B開©l

 » 目錄

 » 辭彙

 » 索引

  1. 在 VM 主機系統上,將 RedHat Advanced Server 4 Update 4 的 *.iso 檔案載入下列目錄:

    /var/opt/hpvm/ISO_images/linux/

    使用下列檔名:

    • RHEL4-U4-ia64-AS-disc1.iso

    • RHEL4-U4-ia64-AS-disc2.iso

    • RHEL4-U4-ia64-AS-disc3.iso

    • RHEL4-U4-ia64-AS-disc4.iso

    • RHEL4-U4-ia64-AS-disc5.iso

    基於安全性因素,請將 ISO 影像檔標記為唯讀。

  2. 使用一個磁碟與五個 DVD 裝置建立一個虛擬機器,每個 DVD 裝置供一個 ISO 檔案使用。將作業系統和一個網路虛擬交換器的類型指定為 Linux。例如:

    # hpvmcreate -P linux1 -B manual -O LINUX -c 1 -r 2G \
    -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc1.iso \
    -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc2.iso \
    -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc3.iso \
    -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc4.iso \
    -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc5.iso \
    -a disk:scsi::lv:/dev/vg00/rguest1 \
    -a network:lan::vswitch:switch1

    若在從機上建立所有虛擬 DVD,就不需在安裝程序中輸入多個 EJIN 命令。

  3. 在 VM 主機系統上啟動虛擬機器:

    # hpvmstart -P linux1
    (C) Copyright 2000 - 2007 Hewlett-Packard Development Company, L.P.
    Opening minor device and creating guest machine container
    Creation of VM, minor device 1
    Allocating guest memory: 2048MB
      allocating low RAM (0-80000000, 2048MB)
    /opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids
    /eaccd6e4-b004-11db-bd1f-00306ef4693e/vmm_config.next):
     Allocated 2147483648 bytes at 0x6000000100000000
      allocating firmware RAM (ffaa0000-ffab5000, 84KB)
    /opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids
    /eaccd6e4-b004-11db-bd1f-00306ef4693e/vmm_config.next):
     Allocated 86016 bytes at 0x6000000180000000
    Loading boot image
    Image initial IP=102000 GP=62E000
    Initialize guest memory mapping tables
    Starting event polling thread
    Starting thread initialization
    Daemonizing....
    hpvmstart: Successful start initiation of guest 'linux1'

    使用 hpvmconsole 命令連線至從機。

  4. 使從機開機。

    有兩種方式可使從機開機:

    • 自 EFI shell

    • 自檔案功能表

    自 EFI shell 開機:

    1. 跳至 EFI shell。例如:

      fs0   : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part1,Sig5D1D1134-C809-11DB-9AEB-000000000000)
      fs1   : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part2,Sig5DB58D88-C809-11DB-9AEB-000000000000)
      fs2   : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
      

      EFI 列出具有偵測為 fs{n} 之檔案系統的裝置。在上述範例中,fs0fs1 是磁碟上較舊的檔案系統。fs2 是對應於可開機 Linux ISO 影像檔/虛擬 DVD 的檔案系統,可藉由光碟機辨識。

    2. 輸入下列命令,使第一個安裝 DVD 開機 (由裝置對映表中的 /CDROM 指出):

      shell > fsn:
      fsn > bootia64
      

      其中 n 對映於虛擬 DVD。

    下列範例顯示如何自 fs0 開機:

    # hpvmconsole -P linux1
    - - - - - - - - - - Prior Console Output - - - - - - - - - -
    Device mapping table
      fs0  : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
      blk0 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)
      blk1 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)
      blk2 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
      blk3 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun2,Lun0)
      blk4 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun3,Lun0)
      blk5 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun4,Lun0)
      blk6 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun5,Lun0)
    Shell> fs0:
    fs0:>bootia64

    自檔案功能表開機:

    1. 離開 EFI shell。

    2. 選取 Boot from a file

    3. 選取 Removable Media Boot 選項。按下 Enter 鍵,

      從機自媒體開機。

  5. 新增 console=ttyS0 選項。輸入下列命令:

    ELILO boot:linux console=ttyS0

    附註: 未新增此選項會造成明顯的從機懸滯,此時從機會嘗試執行圖形安裝程式而沒有顯示裝置。若發生此情況,請重設虛擬機器。輸入 Ctrl/B 進入虛擬控制台。輸入 RS 命令重新啟動虛擬機器。繼續進行安裝程序。

    安裝程序繼續進行:

    Uncompressing Linux... done
    Loading initrd initrd.img...done
    Linux version 2.6.9-42.EL (bhcompile@altix2.build.redhat.com) (gcc version 3.4.6 20060404 
    (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:25:09 EDT 2006
    .
    .
    .
    Welcome to Red Hat Enterprise Linux 
                                                                                    
                                                                                    
                       +--------------+ CD Found +--------------+                   
                       |                                        |                   
                       | To begin testing the CD media before   |                   
                       | installation press OK.                 |                   
                       |                                        |                   
                       | Choose Skip to skip the media test     |                   
                       | and start the installation.            |                   
                       |                                        |                   
                       |      +----+             +------+       |                   
                       |      | OK |             | Skip |       |                   
                       |      +----+             +------+       |                   
                       |                                        |                   
                       |                                        |                   
                       +----------------------------------------+                   
                                                                                    
                                                                                    
                                                                                    
                                                                                    
    <Tab>/<Alt-Tab> between elements  | <Space> selects | <F12> next screen
    

    CD Found 畫面中選取 Skip

  6. 開機程式會提供一連串畫面功能自訂 Linux。按照下列清單中的說明回應各畫面 (附註:這些為建議項目,非必要。)

    表 6-2 Linux 安裝畫面

    畫面標題典型輸入
    Red Hat Enterprise Linux AS輸入 OK。
    語言選擇選取您的語言並輸入 OK。
    磁碟分割設定選取自動分割。
    自動分割選取「Remove all partitions」。選取 sda 磁碟。輸入 OK。
    警告 (關於全部移除)輸入 Yes。
    分割輸入 OK。
    eth0 的網路配置鍵入從機的 IP 位址和網路遮罩。輸入 OK。
    其他網路設定值鍵入閘道器 IP 位址,以及至少一個 DNS 伺服器 IP 位址。輸入 OK。
    主機名稱配置選取 manually。鍵入從機的完整主機名稱 (例如 linux1.abc.com)。輸入 OK。
    防火牆輸入 Customize
    自訂防火牆配置選取欲允許哪些存取方式,並輸入 OK。
    安全性增強型 Linux選取 Disabled 並輸入 OK。
    語言支援選取您的主要語言與任何其他語言,然後輸入 OK。
    時區選擇從大捲動清單中選取一個位於您所在時區的城市,然後按下 OK。
    root 密碼在各項目中鍵入從機的 root 密碼,然後按下 OK。
    套件預設值選取 Customize software selection,然後按下 OK。
    套件群組選項捲動至底部,選取 Everything,然後輸入 OK。
    開始安裝輸入 OK。
    必要的安裝媒體輸入 Continue
    處理查看增加至 100% 的進度百分比。
    安裝啟動觀察安裝進度。
    套件安裝觀察進度。
    完成輸入 Reboot

     

    附註: 若使用 ISO 影像檔進行安裝,您可以保持裝載虛擬 CD 影像檔,以便稍後可輕易地安裝其他軟體。

    從機重新開機並在控制台顯示正常的 Linux 開機順序。

    EFI Boot Manager ver 1.10 [14.62] [Build: Wed Sep  6 11:13:44 2006]
    
    Please select a boot option
                                              
        Red Hat Enterprise Linux AS                                     
        EFI Shell [Built-in]  
        Boot option maintenance menu                       
    
        Use ^ and v to change option(s). Use Enter to select an option
    Loading.: Red Hat Enterprise Linux AS                               
    Starting: Red Hat Enterprise Linux AS
    
    ELILO boot:
    Uncompressing Linux... done
    Loading initrd initrd-2.6.9-42.EL.img...done
    
    << Lots of lines deleted here >>
    
    Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
    Kernel 2.6.9-42.EL on an ia64
    
    guest1.abc.com login: 

  7. 使用 hpvmmodify 命令選擇性地移除從機中的虛擬 DVD 裝置。例如,在 VM 主機上:

    # hpvmmodify -P guest1 \
    -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc1.iso \
    -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc2.iso \
    -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc3.iso \
    -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc4.iso \
    -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc5.iso

可列印版本
隱私權聲明 使用範圍與著作權聲明
© 2007 Hewlett-Packard Development Company, L.P.