使用以下的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