Kvm模拟ssd磁盘配置

Posted by Derrick on December 26, 2020

kvm模拟SSD磁盘配置

		.
		.
		.
		.

    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback' io='threads' discard='unmap'/>
      <source file='/apsarapangu/vpaas-env380-1207-upgrade-master-1_sdc.qcow2'/>
      <target dev='sdc' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='1' unit='1'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback' io='threads' discard='unmap'/>
      <source file='/apsarapangu/vpaas-env380-1207-upgrade-master-1_sdd.qcow2'/>
      <target dev='sdd' bus='scsi'/>
      <address type='drive' controller='1' bus='0' target='2' unit='2'/>
    </disk>
		.
		.
		.
		.
   <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.scsi0-0-0-1.rotation_rate=1'/>
    <qemu:arg value='-enable-kvm'/>
    <qemu:arg value='device.scsi1-0-2-2.rotation_rate=1'/>
    <qemu:arg value='-enable-kvm'/>
  </qemu:commandline>