17.7. 创​​​​​​​建​​​​​​​新​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​

虚​​​​​​​拟​​​​​​​机​​​​​​​管​​​​​​​理​​​​​​​者​​​​​​​(virt-manager)是​​​​​​​管​​​​​​​理​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​的​​​​​​​桌​​​​​​​面​​​​​​​程​​​​​​​序​​​​​​​。​​​​​​​
You can use Red Hat's Virtual Machine Manager to:
  • 创​​​​​​​建​​​​​​​新​​​​​​​的​​​​​​​域​​​​​​​。​​​​​​​
  • Configure or adjust a domain's resource allocation and virtual hardware.
  • 统​​​​​​​计​​​​​​​运​​​​​​​行​​​​​​​的​​​​​​​域​​​​​​​的​​​​​​​性​​​​​​​能​​​​​​​和​​​​​​​资​​​​​​​源​​​​​​​利​​​​​​​用​​​​​​​情​​​​​​​况​​​​​​​。​​​​​​​
  • 显​​​​​​​示​​​​​​​性​​​​​​​能​​​​​​​和​​​​​​​资​​​​​​​源​​​​​​​利​​​​​​​用​​​​​​​情​​​​​​​况​​​​​​​的​​​​​​​图​​​​​​​表​​​​​​​。​​​​​​​
  • 使​​​​​​​用​​​​​​​内​​​​​​​嵌​​​​​​​的​​​​​​​ VNC 客​​​​​​​户​​​​​​​端​​​​​​​浏​​​​​​​览​​​​​​​器​​​​​​​来​​​​​​​作​​​​​​​为​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​域​​​​​​​的​​​​​​​完​​​​​​​全​​​​​​​图​​​​​​​形​​​​​​​化​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​。​​​​​​​

注意

You must install Red Hat Enterprise Linux 5.1, virt-manager, and the kernel packages on all systems that require virtualization. All systems then must be booted and running the Red Hat Virtualization kernel.
下​​​​​​​面​​​​​​​是​​​​​​​使​​​​​​​用​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​监​​​​​​​控​​​​​​​程​​​​​​​序​​​​​​​在​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 上​​​​​​​安​​​​​​​装​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​操​​​​​​​作​​​​​​​系​​​​​​​统​​​​​​​所​​​​​​​需​​​​​​​要​​​​​​​的​​​​​​​步​​​​​​​骤​​​​​​​:

过程 17.1. 创​​​​​​​建​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​操​​​​​​​作​​​​​​​系​​​​​​​统​​​​​​​

  1. 在​​​​​​​ Applications 菜​​​​​​​单​​​​​​​,选​​​​​​​择​​​​​​​ System Tools,然​​​​​​​后​​​​​​​选​​​​​​​择​​​​​​​ Virtual Machine Manager。​​​​​​​
    虚​​​​​​​拟​​​​​​​机​​​​​​​管​​​​​​​理​​​​​​​者​​​​​​​主​​​​​​​窗​​​​​​​口​​​​​​​将​​​​​​​出​​​​​​​现​​​​​​​。​​​​​​​
    Virtual Machine Manager window

    图 17.6. Virtual Machine Manager window

  2. 在​​​​​​​ File 菜​​​​​​​单​​​​​​​,选​​​​​​​择​​​​​​​ New machine。​​​​​​​
    选​​​​​​​择​​​​​​​一​​​​​​​个​​​​​​​新​​​​​​​的​​​​​​​机​​​​​​​器​​​​​​​

    图 17.7. 选​​​​​​​择​​​​​​​一​​​​​​​个​​​​​​​新​​​​​​​的​​​​​​​机​​​​​​​器​​​​​​​

    创​​​​​​​建​​​​​​​新​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​的​​​​​​​向​​​​​​​导​​​​​​​将​​​​​​​出​​​​​​​现​​​​​​​。​​​​​​​
  3. Click Forward.
    创​​​​​​​建​​​​​​​新​​​​​​​虚​​​​​​​拟​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​向​​​​​​​导​​​​​​​

    图 17.8. 创​​​​​​​建​​​​​​​新​​​​​​​虚​​​​​​​拟​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​向​​​​​​​导​​​​​​​

  4. Enter the name of the new virtual system and then click Forward.
    命​​​​​​​名​​​​​​​虚​​​​​​​拟​​​​​​​系​​​​​​​统​​​​​​​

    图 17.9. 命​​​​​​​名​​​​​​​虚​​​​​​​拟​​​​​​​系​​​​​​​统​​​​​​​

  5. 输​​​​​​​入​​​​​​​安​​​​​​​装​​​​​​​介​​​​​​​质​​​​​​​的​​​​​​​位​​​​​​​置​​​​​​​。​​​​​​​kickstart 文​​​​​​​件​​​​​​​的​​​​​​​位​​​​​​​置​​​​​​​是​​​​​​​可​​​​​​​选​​​​​​​的​​​​​​​。​​​​​​​然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Forward 。​​​​​​​
    定​​​​​​​位​​​​​​​安​​​​​​​装​​​​​​​介​​​​​​​质​​​​​​​

    图 17.10. 定​​​​​​​位​​​​​​​安​​​​​​​装​​​​​​​介​​​​​​​质​​​​​​​

  6. 安​​​​​​​装​​​​​​​至​​​​​​​一​​​​​​​个​​​​​​​物​​​​​​​理​​​​​​​磁​​​​​​​盘​​​​​​​分​​​​​​​区​​​​​​​或​​​​​​​是​​​​​​​某​​​​​​​个​​​​​​​文​​​​​​​件​​​​​​​里​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​。​​​​​​​

    注意

    这​​​​​​​个​​​​​​​例​​​​​​​子​​​​​​​在​​​​​​​文​​​​​​​件​​​​​​​里​​​​​​​安​​​​​​​装​​​​​​​了​​​​​​​一​​​​​​​个​​​​​​​虚​​​​​​​拟​​​​​​​系​​​​​​​统​​​​​​​。​​​​​​​
    SELinux policy only allows xen disk images to reside in /var/lib/xen/images.
    Open a terminal and create the /xen directory and set the SELinux policy with the command restorecon -v /xen. Specify your location and the size of the virtual disk, then click Forward.
    分​​​​​​​配​​​​​​​存​​​​​​​储​​​​​​​空​​​​​​​间​​​​​​​

    图 17.11. 分​​​​​​​配​​​​​​​存​​​​​​​储​​​​​​​空​​​​​​​间​​​​​​​

  7. Select memory to allocate the guest and the number of virtual CPUs then click Forward.
    分​​​​​​​配​​​​​​​内​​​​​​​存​​​​​​​和​​​​​​​ CPU

    图 17.12. 分​​​​​​​配​​​​​​​内​​​​​​​存​​​​​​​和​​​​​​​ CPU

  8. Select Forward to open a console and the files start to install.
    分​​​​​​​配​​​​​​​内​​​​​​​存​​​​​​​和​​​​​​​ CPU

    图 17.13. 分​​​​​​​配​​​​​​​内​​​​​​​存​​​​​​​和​​​​​​​ CPU

  9. 在​​​​​​​这​​​​​​​个​​​​​​​窗​​​​​​​口​​​​​​​里​​​​​​​完​​​​​​​成​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​
    安​​​​​​​装​​​​​​​开​​​​​​​始​​​​​​​...

    图 17.14. 安​​​​​​​装​​​​​​​开​​​​​​​始​​​​​​​...

    警告

    When installing Red Hat Enterprise Linux 5.1 on a fully virtualized guest, do not use the kernel-xen kernel. Using this kernel on fully virtualized guests can cause your system to hang.
    If you are using an Installation Number when installing Red Hat Enterprise Linux 5.1 on a fully virtualized guest, be sure to deselect the Virtualization package group during the installation. The Virtualization package group option installs the kernel-xen kernel.
    Note that paravirtualized guests are not affected by this issue. Paravirtualized guests always use the kernel-xen kernel.
  10. Type xm create -c xen-guest to start the Red Hat Enterprise Linux 5.1 guest. Right click on the guest in the Virtual Machine Manager and choose Open to open a virtual console.
    Red Hat Enterprise Linux 5.1 (guest)

    图 17.15. Red Hat Enterprise Linux 5.1 (guest)

  11. 输​​​​​​​入​​​​​​​用​​​​​​​户​​​​​​​名​​​​​​​和​​​​​​​密​​​​​​​码​​​​​​​来​​​​​​​继​​​​​​​续​​​​​​​使​​​​​​​用​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​管​​​​​​​理​​​​​​​者​​​​​​​。​​​​​​​

为了尽快向用户提供最新的信息,本文档可能会包括由机器自动从英文原文翻译的内容。如需更多信息,请参阅此说明。