CentOS6 KVM配置软驱

字体大小: 中小 标准 ->行高大小: 标准

CentOS6 KVM配置软驱,相关配置如下:

重点为粗体部分

  1. <os>     <type arch='x86_64' machine='rhel6.0.0'>hvm</type> 
  2.    <boot dev='cdrom'/>     <boot dev='fd'/>   #代表软驱
  3.  </os>   <features> 
  4.    <acpi/>     <apic/> 
  5.    <pae/>   </features> 
  6.  <clock offset='localtime'/>   <on_poweroff>destroy</on_poweroff> 
  7.  <on_reboot>restart</on_reboot>   <on_crash>restart</on_crash> 
  8.  <devices>     <emulator>/usr/libexec/qemu-kvm</emulator> 
  9.    <disk type='file' device='disk'>       <driver name='qemu' type='qcow2' cache='none'/> 
  10.      <source file='/gfs/sysdisk/sysdisk-pool/virtio-xp2.img'/>       <target dev='hda' bus='ide'/> 
  11.      <address type='drive' controller='0' bus='0' unit='0'/>     </disk> 
  12.    <disk type='file' device='cdrom'>       <driver name='qemu' type='raw'/> 
  13.      <source file='/gfs/sysdisk/installdisk-pool/custom-xp-sp3.iso'/>       <target dev='hdc' bus='ide'/> 
  14.      <readonly/>       <address type='drive' controller='0' bus='1' unit='0'/> 
  15.    </disk>     <disk type='file' device='floppy'> 
  16.      <driver name='qemu' type='raw'/>       <source file='/gfs/sysdisk/installdisk-pool/virtio-win-1.5.3.vfd'/> 
  17.      <target dev='fda' bus='fdc'/>       <address type='drive' controller='0' bus='0' unit='0'/> 
  18.    </disk> 

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/65664.html