KVM虚拟机直通硬盘

操作命令同前文,停机状态下virsh edit ltsc,然后增加一段如下段落,其中target dev、bus、unit根据实际填写。


    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <target dev='sdb' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>