CentOS6 KVM配置软驱


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

重点为粗体部分

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

相关内容