使用如下的XML配置
- <disk type='block' device='disk'>
- <driver name='qemu' type='raw'/>
- <source dev='/dev/sda'/>
- <target dev='hdb' bus='ide'/>
- </disk>
其实原理是投机取巧:
1、type使用block
2、增加source节点
3、target其实用了ide,这个不需要太看重,可以是scsi或者virtio,可以多次尝试
总结:
硬盘直通其实可以解决速度慢的问题,可以将硬盘的读写损耗降到1%。