Product SiteDocumentation Site

3.2. 將 Red Hat Enterprise Linux 5 安​裝​為​完​整​虛​擬​化​的​客​座​端​

此​部​份​涵​蓋​了​如​何​安​裝​完​整​虛​擬​化​的 Red Hat Enterprise Linux 5 客​座​端​。​
過程 3.3. 請​使​用 virt-manager 來​建​立​一​個​完​整​虛​擬​化​的 Red Hat Enterprise Linux 5 客​座​端​
  1. Open virt-manager

    Start virt-manager. Launch the Virtual Machine Manager application from the Applications menu and System Tools submenu. Alternatively, run the virt-manager command as root.
  2. Select the hypervisor

    Select the hypervisor. If installed, select Xen or KVM. For this example, select KVM. Note that presently KVM is named qemu.
    若​您​還​未​連​至 hypervisor 的​話​,請​現​在​連​上​。​請​開​啟​「​檔​案​」​選​單​並​選​取​「​新​增​連​線​...」​選​項​。​詳​情​請​參​閱 節 16.1, “開​放​連​線​視​窗​”。​
    一​旦​選​擇​了 hypervisor 的​連​線​後​,您​便​可​使​用​「​新​增​」​按​鈕​了​。​請​按​下​此​「​新​增​」​按​鈕​。​
  3. Start the new virtual machine wizard

    Pressing the New button starts the virtual machine creation wizard.
    Press Forward to continue.
  4. Name the virtual machine

    請​為​您​的​虛​擬​客​座​端​提​供​一​組​名​稱​。​不​可​使​用​標​點​符​號​或​是​空​白​字​元​。​
    請​按​下​「​下​一​步​」​來​繼​續​進​行​。​
  5. Choose a virtualization method

    請​為​虛​擬​化​客​座​端​選​擇​虛​擬​化​方​式​。​請​注​意​,您​只​可​選​擇​一​種​虛​擬​化​方​式​。​若​您​先​前​選​擇​了 KVM 或 Xen 的​話​(步驟 4),您​就​必​須​使​用​您​所​選​擇​的 hypervisor。​此​範​例​使​用​了 KVM hypervisor。​
    請​按​下​「​下​一​步​」​來​繼​續​進​行​。​
  6. Select the installation method

    請​選​擇​本​機​安​裝​媒​介​(Local install media)來​從​一​片​光​碟​或 ISO 映​像​檔​進​行​安​裝​;選​擇​網​路​安​裝​目​錄​(Network install tree)以​透​過 HTTP、​FTP 或 NFS 伺​服​器​來​進​行​安​裝​;或​是​選​擇​網​路​開​機​(Network boot)來​由​一​個 PXE 伺​服​器​進​行​安​裝​。​
    請​將​「​作​業​系​統​類​型​」​設​為​「​Linux」​並​如​圖​所​示​,將​「​作​業​系​統​類​型​」​設​為​「​Red Hat Enterprise Linux 5」​。​
    請​按​下​「​下​一​步​」​來​繼​續​進​行​。​
  7. Locate installation media

    選​擇 ISO 映​像​檔​位​置​或​是 CD/DVD 光​碟​機​的​位​置​。​此​範​例​使​用​了​一​個 Red Hat Enterprise Linux 5 安​裝 DVD 的 ISO 映​像​檔​。​
    1. Press the Browse button.
    2. 請​尋​找 ISO 檔​案​的​位​置​並​選​取​該 ISO 映​像​檔​。​請​按​下​「​開​啟​」​來​確​認​您​的​選​擇​。​
    3. 檔​案​已​被​選​取​並​準​備​由​此​檔​案​進​行​安​裝​。​
      請​按​下​「​下​一​步​」​來​繼​續​進​行​。​

    Image files and SELinux

    當​使​用 ISO 映​像​檔​和​儲​存​裝​置​映​像​時​,我​們​建​議​您​使​用 /var/lib/libvirt/images/ 目​錄​。​任​何​其​它​的​位​置​可​能​將​需​要​額​外​的 SELinux 組​態​設​定​,詳​情​請​參​閱 節 7.1, “SELinux 和​虛​擬​化​”。​
  8. Storage setup

    請​指​定​一​個​實​體​儲​存​裝​置​(「​區​塊​裝​置​」​)或​是​基​於​檔​案​的​映​像​檔​(「​檔​案​」​)。​基​於​檔​案​的​映​像​檔​必​須​儲​存​在 /var/lib/libvirt/images/ 目​錄​中​。​請​為​您​的​虛​擬​化​客​座​端​指​定​足​夠​的​儲​存​空​間​。​請​為​您​的​虛​擬​客​座​端​以​及​任​何​它​所​需​要​的​應​用​程​式​指​定​足​夠​的​儲​存​空​間​。​
    請​按​下​「​下​一​步​」​來​繼​續​進​行​。​

    遷​移​此​客​座​端​

    進​行​即​時​與​離​線​遷​移​時​,客​座​端​必​須​安​裝​在​共​享​網​路​儲​存​裝​置​上​。​欲​取​得​更​多​有​關​於​如​何​為​客​座​端​設​定​共​享​儲​存​裝​置​上​的​相​關​資​訊​,請​參​閱 章 5, 共​享​儲​存​裝​置​和​虛​擬​化​。​
  9. Network setup

    Select either Virtual network or Shared physical device.
    The virtual network option uses Network Address Translation (NAT) to share the default network device with the virtualized guest. Use the virtual network option for wireless networks.
    The shared physical device option uses a network bond to give the virtualized guest full access to a network device.
    Press Forward to continue.
  10. Memory and CPU allocation

    The Allocate memory and CPU window displays. Choose appropriate values for the virtualized CPUs and RAM allocation. These values affect the host's and guest's performance.
    Virtualized guests require sufficient physical memory (RAM) to run efficiently and effectively. Choose a memory value which suits your guest operating system and application requirements. Windows Server 2008. Remember, guests use physical RAM. Running too many guests or leaving insufficient memory for the host system results in significant usage of virtual memory and swapping. Virtual memory is significantly slower causing degraded system performance and responsiveness. Ensure to allocate sufficient memory for all guests and the host to operate effectively.
    Assign sufficient virtual CPUs for the virtualized guest. If the guest runs a multithreaded application assign the number of virtualized CPUs it requires to run most efficiently. Do not assign more virtual CPUs than there are physical processors (or hyper-threads) available on the host system. It is possible to over allocate virtual processors, however, over allocating has a significant, negative affect on guest and host performance due to processor context switching overheads.
    Press Forward to continue.
  11. Verify and start guest installation

    請​驗​證​組​態​設​定​。​
    請​按​下​「​完​成​」​來​啟​動​客​座​端​安​裝​程​序​。​
  12. 安​裝 Linux

    請​完​成 Red Hat Enterprise Linux 5 安​裝​程​序​。​安​裝​程​序​涵​蓋​於​位​於 http://redhat.com/docs 的​《​Red Hat Enterprise Linux 安​裝​指​南​》​中​。​
已​安​裝​了​完​整​虛​擬​化​的 Red Hat Enterprise Linux 5 客​座​端​。​