KVM的PCI-passthrough技术是一个非常实用的技术,可以将主机的物理设备直接绑定到KVM虚拟机里面使用。
比如说把一块银行的USBKEY绑定到虚拟机,大多数银行类的应用还是需要WINDOWS操作系统的支持,所以这个非常实用。
再比如可以把HBA卡直接绑定到虚拟机使用,大大提高了虚拟机的IO性能。
但是这项技术应用还是有点麻烦的。
首先要CPU支持VT-D或者AMD IOMMU技术。
接下来是需要主板芯片支持。
最后主板厂商的BIOS也要支持打开这项技术。
网上有一些文章提到打开vt-d技术后,会造出一下不正常的现象,如显示花屏等。不知道是CPU的问题还是主板芯片或者驱动的问题,显然还需要一段时间的改进才能进入稳定器。
To make use of PCI Pass-Through, your motherboard chipset, BIOS, and CPU must have support for AMD's IOMMU (or VT-d in Intel speak) virtualization technology. To make sure that your computer supports this feature, ask your supplier specifically to deliver a system that supports PCI Pass-Through.
比如
dmidecode |grep -A 16 "System Info"
System Information
Manufacturer: Supermicro
Product Name: X9SCL/X9SCM
Version: 0123456789
Serial Number: 0123456789
UUID: 71902500-1606-0706-0025-907106160E0F
Wake-up Type: Power Switch
SKU Number: To be filled by O.E.M.
Family: To be filled by O.E.M.
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: Supermicro
Product Name: X9SCL/X9SCM
Version: 1.11A
Serial Number: ZM1CS32353
Asset Tag: To be filled by O.E.M.
主板的型号为X9SCL
X9SCL (Global SKUs)
To make use of PCI Pass-Through, your motherboard chipset, BIOS, and CPU must have support for AMD's IOMMU (or VT-d in Intel speak) virtualization technology. To make sure that your computer supports this feature, ask your supplier specifically to deliver a system that supports PCI Pass-Through.
比如
dmidecode |grep -A 16 "System Info"
System Information
Manufacturer: Supermicro
Product Name: X9SCL/X9SCM
Version: 0123456789
Serial Number: 0123456789
UUID: 71902500-1606-0706-0025-907106160E0F
Wake-up Type: Power Switch
SKU Number: To be filled by O.E.M.
Family: To be filled by O.E.M.
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: Supermicro
Product Name: X9SCL/X9SCM
Version: 1.11A
Serial Number: ZM1CS32353
Asset Tag: To be filled by O.E.M.
主板的型号为X9SCL
X9SCL (Global SKUs)
|
|
Key Features
1.
Single socket H2 (LGA 1155) supports Intel? Xeon? E3-1200 &
E3-1200 v2 series, 2nd and 3rd Gen Core i3 processors***,
Pentium, Celeron
2.Intel C202 PCH Chipset 3. Up to 32GB DDR3 ECC 1333MHz / 1600MHz*** UDIMMs in 4 sockets 4. Intel? 82579LM and 82574L, 2x Gigabit Ethernet LAN ports 5. 6x SATA 2.0 with RAID 0, 1, 5, 10 6. 2x (x8) PCI-E 3.0*** in x8 slots and 1x (x4) PCI-E 2.0 in x8 slot 7. 9x USB 2.0 ports (2 rear + 6 via header + 1 Type-A) |
| Intel? Virtualization Technology for Directed I/O (VT-d)? | Yes |
| Intel? vPro Technology? | No |
| Intel? ME Firmware Version | No |
| Intel? Remote PC Assist Technology | No |
| Intel? Quick Resume Technology | Yes |
| Intel? Quiet System Technology | No |
| Intel? HD Audio Technology | No |
| Intel? AC97 Technology | Yes |
| Intel? Matrix Storage Technology | Yes |
| Intel? Rapid Storage Technology | Yes |
| Intel? I/O Acceleration Technology | Yes |