Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

附录 A. 实​​​​​​​验​​​​​​​ 1

Xen 客​​​​​​​户​​​​​​​机​​​​​​​安​​​​​​​装​​​​​​​
目​​​​​​​标​​​​​​​:安​​​​​​​装​​​​​​​ RHEL 3、​​​​​​​4 或​​​​​​​ 5 和​​​​​​​ Windows XP Xen 客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
先​​​​​​​决​​​​​​​条​​​​​​​件​​​​​​​:带​​​​​​​有​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​组​​​​​​​件​​​​​​​的​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5.0 工​​​​​​​作​​​​​​​站​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​将​​​​​​​使​​​​​​​用​​​​​​​不​​​​​​​同​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​工​​​​​​​具​​​​​​​来​​​​​​​配​​​​​​​置​​​​​​​并​​​​​​​安​​​​​​​装​​​​​​​ RHEL 3、​​​​​​​4 或​​​​​​​ 5 和​​​​​​​ Windows XP Xen 客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 1:检​​​​​​​查​​​​​​​对​​​​​​​ PAE 的​​​​​​​支​​​​​​​持​​​​​​​
你​​​​​​​必​​​​​​​须​​​​​​​检​​​​​​​查​​​​​​​你​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​是​​​​​​​否​​​​​​​支​​​​​​​持​​​​​​​ PAE。​​​​​​​红​​​​​​​帽​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​系​​​​​​​统​​​​​​​支​​​​​​​持​​​​​​​用​​​​​​​基​​​​​​​于​​​​​​​ x86_64 或​​​​​​​ ia64 CPU 的​​​​​​​系​​​​​​​统​​​​​​​结​​​​​​​构​​​​​​​运​​​​​​​行​​​​​​​半​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​(para-virtualized)客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​要​​​​​​​运​​​​​​​行​​​​​​​ i386 客​​​​​​​户​​​​​​​机​​​​​​​,系​​​​​​​统​​​​​​​需​​​​​​​要​​​​​​​带​​​​​​​有​​​​​​​ PAE 支​​​​​​​持​​​​​​​的​​​​​​​ CPU。​​​​​​​许​​​​​​​多​​​​​​​老​​​​​​​式​​​​​​​的​​​​​​​笔​​​​​​​记​​​​​​​本​​​​​​​(尤​​​​​​​其​​​​​​​是​​​​​​​基​​​​​​​于​​​​​​​ Pentium Mobile 或​​​​​​​ Centrino 的​​​​​​​笔​​​​​​​记​​​​​​​本​​​​​​​)不​​​​​​​支​​​​​​​持​​​​​​​ PAE。​​​​​​​
  1. 要​​​​​​​检​​​​​​​查​​​​​​​你​​​​​​​的​​​​​​​ CPU 是​​​​​​​否​​​​​​​支​​​​​​​持​​​​​​​ PAE,键​​​​​​​入​​​​​​​:
        grep pae /proc/cpuinfo
    
  2. 下​​​​​​​面​​​​​​​的​​​​​​​输​​​​​​​出​​​​​​​显​​​​​​​示​​​​​​​了​​​​​​​这​​​​​​​个​​​​​​​ CPU 支​​​​​​​持​​​​​​​ PAE。​​​​​​​如​​​​​​​果​​​​​​​这​​​​​​​个​​​​​​​命​​​​​​​令​​​​​​​没​​​​​​​有​​​​​​​返​​​​​​​回​​​​​​​任​​​​​​​何​​​​​​​输​​​​​​​出​​​​​​​,说​​​​​​​明​​​​​​​这​​​​​​​个​​​​​​​ CPU 不​​​​​​​支​​​​​​​持​​​​​​​ PAE。​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​所​​​​​​​有​​​​​​​的​​​​​​​练​​​​​​​习​​​​​​​都​​​​​​​要​​​​​​​求​​​​​​​带​​​​​​​有​​​​​​​ PAE 扩​​​​​​​展​​​​​​​的​​​​​​​ i386 CPU 或​​​​​​​者​​​​​​​是​​​​​​​ x86_64 和​​​​​​​ ia64。​​​​​​​
    
        flags :
        fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush dts acpi
        mmx fxsr sse sse2 ss tm pbe nx up est tm2
    
    
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 2:用​​​​​​​ virt-install 安​​​​​​​装​​​​​​​ RHEL5 Beta 2 Xen 半​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​ virt-install 安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 Beta 2 的​​​​​​​ Xen 客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
  1. 要​​​​​​​安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 Beta 2 的​​​​​​​ Xen 客​​​​​​​户​​​​​​​机​​​​​​​,在​​​​​​​命​​​​​​​令​​​​​​​行​​​​​​​下​​​​​​​键​​​​​​​入​​​​​​​:virt-install。​​​​​​​
  2. 当​​​​​​​你​​​​​​​被​​​​​​​询​​​​​​​问​​​​​​​是​​​​​​​否​​​​​​​安​​​​​​​装​​​​​​​完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​的​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​时​​​​​​​,输​​​​​​​入​​​​​​​:no。​​​​​​​
  3. 输​​​​​​​入​​​​​​​ rhel5b2-pv1 所​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​
  4. 输​​​​​​​入​​​​​​​ 500 作​​​​​​​为​​​​​​​分​​​​​​​配​​​​​​​的​​​​​​​内​​​​​​​存​​​​​​​数​​​​​​​量​​​​​​​。​​​​​​​
  5. 输​​​​​​​入​​​​​​​ /xen/rhel5b2-pv1.img 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​磁​​​​​​​盘​​​​​​​(客​​​​​​​户​​​​​​​机​​​​​​​映​​​​​​​像​​​​​​​)。​​​​​​​
  6. 输​​​​​​​入​​​​​​​ 6 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​磁​​​​​​​盘​​​​​​​(客​​​​​​​户​​​​​​​机​​​​​​​映​​​​​​​像​​​​​​​)大​​​​​​​小​​​​​​​。​​​​​​​
  7. 输​​​​​​​入​​​​​​​ yes 来​​​​​​​启​​​​​​​用​​​​​​​图​​​​​​​形​​​​​​​化​​​​​​​支​​​​​​​持​​​​​​​。​​​​​​​
  8. 输​​​​​​​入​​​​​​​ nfs:server:/path/to/rhel5b2 作​​​​​​​为​​​​​​​安​​​​​​​装​​​​​​​位​​​​​​​置​​​​​​​。​​​​​​​
  9. 安​​​​​​​装​​​​​​​开​​​​​​​始​​​​​​​了​​​​​​​。​​​​​​​象​​​​​​​平​​​​​​​常​​​​​​​一​​​​​​​样​​​​​​​进​​​​​​​行​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​
  10. 在​​​​​​​安​​​​​​​装​​​​​​​结​​​​​​​束​​​​​​​后​​​​​​​,键​​​​​​​入​​​​​​​ /etc/xen/rhel5b2-pv1,并​​​​​​​进​​​​​​​行​​​​​​​下​​​​​​​面​​​​​​​的​​​​​​​修​​​​​​​改​​​​​​​:#vnc=1#vncunused=1sdl=1
  11. 使​​​​​​​用​​​​​​​文​​​​​​​本​​​​​​​编​​​​​​​辑​​​​​​​器​​​​​​​来​​​​​​​修​​​​​​​改​​​​​​​ /etc/inittab,并​​​​​​​把​​​​​​​下​​​​​​​面​​​​​​​的​​​​​​​内​​​​​​​容​​​​​​​附​​​​​​​加​​​​​​​到​​​​​​​文​​​​​​​件​​​​​​​里​​​​​​​:init 5.#id:3:initdefault:id:5:initdefault:
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 3:用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​ RHEL5 Beta 2 Xen 半​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​将​​​​​​​用​​​​​​​ virt-manager 来​​​​​​​安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 Beta 2 的​​​​​​​ Xen 半​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
  1. 要​​​​​​​安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 Beta 2 的​​​​​​​ Xen 半​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​,在​​​​​​​命​​​​​​​令​​​​​​​行​​​​​​​提​​​​​​​示​​​​​​​下​​​​​​​输​​​​​​​入​​​​​​​:virt-manager。​​​​​​​
  2. 在​​​​​​​ Open Connection 窗​​​​​​​口​​​​​​​,选​​​​​​​择​​​​​​​ Local Xen host,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Connect。​​​​​​​
  3. Start Red Hat's Virtual Machine Manager application, and from the File menu, click on New.
  4. 点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  5. 键​​​​​​​入​​​​​​​ rhel5b2-pv2 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​名​​​​​​​,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  6. 选​​​​​​​择​​​​​​​ Paravirtualized, 并​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  7. 键​​​​​​​入​​​​​​​ nfs:server:/path/to/rhel5b2 作​​​​​​​为​​​​​​​安​​​​​​​装​​​​​​​介​​​​​​​质​​​​​​​的​​​​​​​ URL,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  8. 选​​​​​​​择​​​​​​​ Simple File,键​​​​​​​入​​​​​​​ /xen/rhel5b2-pv2.img 作​​​​​​​为​​​​​​​文​​​​​​​件​​​​​​​位​​​​​​​置​​​​​​​。​​​​​​​选​​​​​​​择​​​​​​​ 6000 MB,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  9. 选​​​​​​​择​​​​​​​ 500 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​的​​​​​​​启​​​​​​​动​​​​​​​和​​​​​​​最​​​​​​​大​​​​​​​内​​​​​​​存​​​​​​​,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  10. 点​​​​​​​击​​​​​​​ Finish。​​​​​​​
虚​​​​​​​拟​​​​​​​机​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​窗​​​​​​​口​​​​​​​将​​​​​​​出​​​​​​​现​​​​​​​。​​​​​​​象​​​​​​​往​​​​​​​常​​​​​​​一​​​​​​​样​​​​​​​进​​​​​​​行​​​​​​​并​​​​​​​结​​​​​​​束​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 4:检​​​​​​​查​​​​​​​对​​​​​​​ Intel-VT 或​​​​​​​ AMD-V 的​​​​​​​支​​​​​​​持​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​必​​​​​​​须​​​​​​​检​​​​​​​查​​​​​​​你​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​是​​​​​​​否​​​​​​​支​​​​​​​持​​​​​​​ Intel-VT 或​​​​​​​ AMD-V 硬​​​​​​​件​​​​​​​。​​​​​​​要​​​​​​​成​​​​​​​功​​​​​​​安​​​​​​​装​​​​​​​完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​的​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​操​​​​​​​作​​​​​​​系​​​​​​​统​​​​​​​,你​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​必​​​​​​​须​​​​​​​支​​​​​​​持​​​​​​​启​​​​​​​用​​​​​​​ Intel-VT 或​​​​​​​ AMD-V 的​​​​​​​ CPU。​​​​​​​红​​​​​​​帽​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​系​​​​​​​统​​​​​​​合​​​​​​​并​​​​​​​了​​​​​​​一​​​​​​​个​​​​​​​通​​​​​​​用​​​​​​​的​​​​​​​ HVM 层​​​​​​​来​​​​​​​支​​​​​​​持​​​​​​​这​​​​​​​些​​​​​​​ CPU。​​​​​​​
  1. To determine if your CPU has Intel-VT or AMD-V support, type the following command: egrep -e 'vmx|svm' /proc/cpuinfo
  2. 下​​​​​​​面​​​​​​​的​​​​​​​输​​​​​​​出​​​​​​​表​​​​​​​示​​​​​​​ CPU 支​​​​​​​持​​​​​​​ Intel-VT:
    .flags :
        fpu tsc msr pae mce cx8 apic mtrr mca cmov pat clflush dts acpi mmx fxsr sse
        sse2 ss ht tm pbe constant_tsc pni monitor vmx est tm2 xtpr
    
    如​​​​​​​果​​​​​​​这​​​​​​​个​​​​​​​命​​​​​​​令​​​​​​​没​​​​​​​有​​​​​​​任​​​​​​​何​​​​​​​输​​​​​​​出​​​​​​​,则​​​​​​​表​​​​​​​示​​​​​​​ CPU 不​​​​​​​支​​​​​​​持​​​​​​​ Intel-VT 或​​​​​​​ AMD-V。​​​​​​​
  3. 要​​​​​​​知​​​​​​​道​​​​​​​你​​​​​​​的​​​​​​​ CPU 是​​​​​​​否​​​​​​​支​​​​​​​持​​​​​​​ Intel-VT 或​​​​​​​ AMD-V,键​​​​​​​入​​​​​​​下​​​​​​​面​​​​​​​的​​​​​​​命​​​​​​​令​​​​​​​:
    cat /sys/hypervisor/properties/capabilities
  4. The following output shows that Intel-VT support has been enabled in the BIOS. If the command returns nothing, then go into the BIOS Setup Utlility and look for a setting related to 'Virtualization', i.e. 'Intel(R) Virtualization Technology' under 'CPU' section on a IBM T60p. Enable and save the setting and do a power off to take effect.
    
    xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
    
    
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 5:用​​​​​​​ virt-install 安​​​​​​​装​​​​​​​ RHEL5 Beta 2 Xen 完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​将​​​​​​​用​​​​​​​ virt-install 安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 Beta 2 Xen 完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
  1. 要​​​​​​​安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 Beta 2 的​​​​​​​ Xen 客​​​​​​​户​​​​​​​机​​​​​​​,在​​​​​​​命​​​​​​​令​​​​​​​行​​​​​​​下​​​​​​​键​​​​​​​入​​​​​​​:virt-install。​​​​​​​
  2. 当​​​​​​​被​​​​​​​提​​​​​​​示​​​​​​​安​​​​​​​装​​​​​​​完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​时​​​​​​​,键​​​​​​​入​​​​​​​ yes。​​​​​​​
  3. 键​​​​​​​入​​​​​​​ rhel5b2-pv2 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​名​​​​​​​。​​​​​​​
  4. 键​​​​​​​入​​​​​​​ 500 作​​​​​​​为​​​​​​​分​​​​​​​配​​​​​​​的​​​​​​​内​​​​​​​存​​​​​​​数​​​​​​​量​​​​​​​。​​​​​​​
  5. 键​​​​​​​入​​​​​​​ /xen/rhel5b2-fv1.img 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​磁​​​​​​​盘​​​​​​​(客​​​​​​​户​​​​​​​机​​​​​​​映​​​​​​​像​​​​​​​)。​​​​​​​
  6. 输​​​​​​​入​​​​​​​ 6 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​磁​​​​​​​盘​​​​​​​(客​​​​​​​户​​​​​​​机​​​​​​​映​​​​​​​像​​​​​​​)大​​​​​​​小​​​​​​​。​​​​​​​
  7. 键​​​​​​​入​​​​​​​ yes 来​​​​​​​启​​​​​​​用​​​​​​​图​​​​​​​形​​​​​​​化​​​​​​​支​​​​​​​持​​​​​​​。​​​​​​​
  8. 键​​​​​​​入​​​​​​​ /dev/cdrom 作​​​​​​​为​​​​​​​虚​​​​​​​拟​​​​​​​ CD 映​​​​​​​像​​​​​​​。​​​​​​​
  9. The VNC viewer appears within the installation window. If there is an error message that says “​​​​​​​main: Unable to connect to host: Connection refused (111)”​​​​​​​, then type the following command to proceed: vncviewer localhost:5900. VNC port 5900 refers to the first Xen guest that is running on VNC. If it doesn't work, you might need to use 5901, 5902, etc.
安​​​​​​​装​​​​​​​开​​​​​​​始​​​​​​​了​​​​​​​。​​​​​​​象​​​​​​​平​​​​​​​常​​​​​​​一​​​​​​​样​​​​​​​进​​​​​​​行​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 6:用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​ RHEL5 Beta 2 Xen 完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​将​​​​​​​使​​​​​​​用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 Beta 2 Xen 完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​:
  1. 要​​​​​​​安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 Beta 2 的​​​​​​​ Xen 半​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​,在​​​​​​​命​​​​​​​令​​​​​​​行​​​​​​​提​​​​​​​示​​​​​​​下​​​​​​​输​​​​​​​入​​​​​​​:virt-manager。​​​​​​​
  2. 在​​​​​​​ Open Connection 窗​​​​​​​口​​​​​​​,选​​​​​​​择​​​​​​​ Local Xen host,并​​​​​​​点​​​​​​​击​​​​​​​ Connect。​​​​​​​
  3. Start Red Hat's Virtual Machine Monitor application, and from the File menu, click on New.
  4. 点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  5. 键​​​​​​​入​​​​​​​ rhel5b2-fv2 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​名​​​​​​​,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  6. 选​​​​​​​择​​​​​​​ Fully virtualized,并​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  7. 指​​​​​​​定​​​​​​​ CD-ROM 或​​​​​​​ DVD,并​​​​​​​输​​​​​​​入​​​​​​​安​​​​​​​装​​​​​​​介​​​​​​​质​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​你​​​​​​​将​​​​​​​从​​​​​​​ ISO 映​​​​​​​像​​​​​​​安​​​​​​​装​​​​​​​的​​​​​​​话​​​​​​​,指​​​​​​​定​​​​​​​ ISO 映​​​​​​​像​​​​​​​的​​​​​​​位​​​​​​​置​​​​​​​。​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  8. 选​​​​​​​择​​​​​​​ Simple File,键​​​​​​​入​​​​​​​ /xen/rhel5b2-fv2.img 作​​​​​​​为​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​位​​​​​​​置​​​​​​​。​​​​​​​指​​​​​​​定​​​​​​​ 6000 MB,并​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  9. 选​​​​​​​择​​​​​​​ 500 作​​​​​​​为​​​​​​​你​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​的​​​​​​​启​​​​​​​动​​​​​​​和​​​​​​​最​​​​​​​大​​​​​​​内​​​​​​​存​​​​​​​,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  10. 点​​​​​​​击​​​​​​​ Finish 。​​​​​​​
  11. 然​​​​​​​后​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​窗​​​​​​​口​​​​​​​将​​​​​​​出​​​​​​​现​​​​​​​。​​​​​​​
如​​​​​​​往​​​​​​​常​​​​​​​一​​​​​​​样​​​​​​​进​​​​​​​行​​​​​​​并​​​​​​​结​​​​​​​束​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 7:用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​ RHEL3 Xen 完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​将​​​​​​​用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 3 Xen 客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
  1. 在​​​​​​​这​​​​​​​里​​​​​​​你​​​​​​​可​​​​​​​以​​​​​​​采​​​​​​​用​​​​​​​和​​​​​​​实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 6 相​​​​​​​同​​​​​​​的​​​​​​​说​​​​​​​明​​​​​​​。​​​​​​​
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 8:用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​ RHEL4 Xen 完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​将​​​​​​​用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 4 Xen 客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
  1. 在​​​​​​​这​​​​​​​里​​​​​​​你​​​​​​​可​​​​​​​以​​​​​​​采​​​​​​​用​​​​​​​和​​​​​​​实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 6 相​​​​​​​同​​​​​​​的​​​​​​​说​​​​​​​明​​​​​​​。​​​​​​​
实​​​​​​​验​​​​​​​步​​​​​​​骤​​​​​​​ 9:使​​​​​​​用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​ Windows XP Xen 完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
在​​​​​​​这​​​​​​​个​​​​​​​实​​​​​​​验​​​​​​​里​​​​​​​,你​​​​​​​将​​​​​​​用​​​​​​​ virt-manager 安​​​​​​​装​​​​​​​一​​​​​​​个​​​​​​​完​​​​​​​全​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​的​​​​​​​ Windows XP Xen 客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
  1. 要​​​​​​​在​​​​​​​ Windows XP 主​​​​​​​机​​​​​​​上​​​​​​​安​​​​​​​装​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5,在​​​​​​​命​​​​​​​令​​​​​​​行​​​​​​​下​​​​​​​输​​​​​​​入​​​​​​​:virt-manager。​​​​​​​
  2. 在​​​​​​​ Open Connection 窗​​​​​​​口​​​​​​​里​​​​​​​,选​​​​​​​择​​​​​​​ Local Xen host,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Connect。​​​​​​​
  3. Start Red Hat's Virtual Machine Manager application, and from the File menu click on New.
  4. 点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  5. 键​​​​​​​入​​​​​​​ winxp 作​​​​​​​为​​​​​​​系​​​​​​​统​​​​​​​名​​​​​​​,然​​​​​​​后​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  6. 选​​​​​​​择​​​​​​​ Fully virtualized,并​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  7. 指​​​​​​​定​​​​​​​ CD-ROM 或​​​​​​​ DVD,然​​​​​​​后​​​​​​​输​​​​​​​入​​​​​​​安​​​​​​​装​​​​​​​介​​​​​​​质​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​你​​​​​​​将​​​​​​​从​​​​​​​ ISO 映​​​​​​​像​​​​​​​进​​​​​​​行​​​​​​​安​​​​​​​装​​​​​​​,指​​​​​​​定​​​​​​​ ISO 映​​​​​​​像​​​​​​​的​​​​​​​位​​​​​​​置​​​​​​​。​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  8. 选​​​​​​​择​​​​​​​ Simple File,键​​​​​​​入​​​​​​​ /xen/winxp.img 作​​​​​​​为​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​位​​​​​​​置​​​​​​​。​​​​​​​指​​​​​​​定​​​​​​​ 6000 MB,并​​​​​​​点​​​​​​​击​​​​​​​ Forward。​​​​​​​
  9. 选​​​​​​​择​​​​​​​ 1024 作​​​​​​​为​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​的​​​​​​​启​​​​​​​动​​​​​​​和​​​​​​​最​​​​​​​大​​​​​​​的​​​​​​​内​​​​​​​存​​​​​​​数​​​​​​​量​​​​​​​,然​​​​​​​后​​​​​​​选​​​​​​​择​​​​​​​ 2 作​​​​​​​为​​​​​​​ VCPU 的​​​​​​​数​​​​​​​量​​​​​​​。​​​​​​​点​​​​​​​击​​​​​​​ Forward 。​​​​​​​
  10. 点​​​​​​​击​​​​​​​ Finish。​​​​​​​
  11. 虚​​​​​​​拟​​​​​​​机​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​窗​​​​​​​口​​​​​​​将​​​​​​​出​​​​​​​现​​​​​​​。​​​​​​​象​​​​​​​往​​​​​​​常​​​​​​​一​​​​​​​样​​​​​​​进​​​​​​​行​​​​​​​并​​​​​​​结​​​​​​​束​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​
  12. 选​​​​​​​择​​​​​​​把​​​​​​​ C:\ 分​​​​​​​区​​​​​​​格​​​​​​​式​​​​​​​化​​​​​​​为​​​​​​​ FAT 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​格​​​​​​​式​​​​​​​。​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​ Linux 5 没​​​​​​​有​​​​​​​ NTFS 内​​​​​​​核​​​​​​​模​​​​​​​块​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​你​​​​​​​想​​​​​​​把​​​​​​​分​​​​​​​区​​​​​​​格​​​​​​​式​​​​​​​化​​​​​​​为​​​​​​​ NTFS 格​​​​​​​式​​​​​​​,挂​​​​​​​载​​​​​​​或​​​​​​​写​​​​​​​入​​​​​​​文​​​​​​​件​​​​​​​到​​​​​​​ Xen 客​​​​​​​户​​​​​​​机​​​​​​​映​​​​​​​像​​​​​​​里​​​​​​​可​​​​​​​能​​​​​​​不​​​​​​​是​​​​​​​件​​​​​​​简​​​​​​​单​​​​​​​的​​​​​​​事​​​​​​​。​​​​​​​
  13. 在​​​​​​​你​​​​​​​第​​​​​​​一​​​​​​​次​​​​​​​重​​​​​​​新​​​​​​​启​​​​​​​动​​​​​​​系​​​​​​​统​​​​​​​之​​​​​​​后​​​​​​​,编​​​​​​​辑​​​​​​​ winxp 客​​​​​​​户​​​​​​​机​​​​​​​映​​​​​​​像​​​​​​​: losetup /dev/loop0 /xen/winxp.imgkpartx -av /dev/loop0mount /dev/mapper/loop0p1 /mntcp -prv $WINDOWS/i386 /mnt/。​​​​​​​这​​​​​​​可​​​​​​​以​​​​​​​修​​​​​​​复​​​​​​​你​​​​​​​在​​​​​​​后​​​​​​​面​​​​​​​的​​​​​​​ Windows 安​​​​​​​装​​​​​​​部​​​​​​​分​​​​​​​可​​​​​​​能​​​​​​​遇​​​​​​​到​​​​​​​的​​​​​​​一​​​​​​​个​​​​​​​问​​​​​​​题​​​​​​​。​​​​​​​
  14. 键​​​​​​​入​​​​​​​ xm create -c winxp/ 手​​​​​​​工​​​​​​​重​​​​​​​新​​​​​​​启​​​​​​​动​​​​​​​ Xen 客​​​​​​​户​​​​​​​机​​​​​​​。​​​​​​​
  15. 在​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​管​​​​​​​理​​​​​​​者​​​​​​​窗​​​​​​​口​​​​​​​,选​​​​​​​择​​​​​​​ winxp Xen 客​​​​​​​户​​​​​​​机​​​​​​​并​​​​​​​点​​​​​​​击​​​​​​​ Open。​​​​​​​
  16. 虚​​​​​​​拟​​​​​​​机​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​窗​​​​​​​口​​​​​​​会​​​​​​​出​​​​​​​现​​​​​​​。​​​​​​​象​​​​​​​平​​​​​​​常​​​​​​​一​​​​​​​样​​​​​​​进​​​​​​​行​​​​​​​并​​​​​​​结​​​​​​​束​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​
  17. Whenever a 'Files Needed' dialog box appears, change the path GLOBALROOT\DEVICE\CDROM0\I386 to C:\I386. Depending on your installation, you may or may not see this problem. You may be prompted for missing files during the installation. Changing the path to C:\I386 should compensate for this problem.
  18. 如​​​​​​​果​​​​​​​ Xen 客​​​​​​​户​​​​​​​机​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​不​​​​​​​动​​​​​​​了​​​​​​​,点​​​​​​​击​​​​​​​ shutdown,进​​​​​​​行​​​​​​​如​​​​​​​下​​​​​​​的​​​​​​​修​​​​​​​改​​​​​​​: /etc/xen/winxp:#vnc=1#vncunused=1sdl=1#vcpus=2 。​​​​​​​
  19. 重​​​​​​​复​​​​​​​步​​​​​​​骤​​​​​​​ 14 并​​​​​​​象​​​​​​​平​​​​​​​常​​​​​​​一​​​​​​​样​​​​​​​进​​​​​​​行​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​