CentOS 7下KVM掛載物理硬盤/硬盤直通

使用以下的XML配置html

<disk type='block' device='disk'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/sda'/>
  <target dev='hdb' bus='ide'/>
</disk>

其實原理是投機取巧:ubuntu

一、type使用blockide

二、增長source節點spa

三、target其實用了ide,這個不須要太看重,能夠是scsi或者virtio,能夠屢次嘗試code

總結:htm

硬盤直通其實能夠解決速度慢的問題,能夠將硬盤的讀寫損耗降到1%。blog

 

 

參考:get

https://chubuntu.com/questions/15902/add-physical-disk-to-kvm-virtual-machine.htmlio

相關文章
相關標籤/搜索