esxi7/8 RDM直通 truenas核显转码开启

创建虚拟磁盘

cd /vmfs/devices/disks/
ls -l 
vmkfstools -z /vmfs/devices/disks/t10.ATA_____ST4000VX0072D2DT166__________________________________ZGY8VCDF /vmfs/volumes/datastore1/disks/ST4T.vmdk
vmkfstools -z /vmfs/devices/disks/t10.ATA_____WDC_WD40PURX2D64GVNY0_________________________WD2DWCC4E9E0ZP96 /vmfs/volumes/datastore1/disks/WD4T.vmdk
vmkfstools -z /vmfs/devices/disks/t10.ATA_____ST3000DM0072D1WY10G__________________________________ZFN1GVGP /vmfs/volumes/datastore1/disks/ST3T.vmdk

挂载虚拟磁盘

esxi7 web界面操作挂载虚拟磁盘位置vmdk文件即可。

esxi8 修改虚拟机vmdk配置文件,先取消注册,修改完毕再重新注册即可。

sata0:1.fileName = "/vmfs/volumes/datastore1/disks/ST3T.vmdk"
sata0:1.present = "TRUE"
sata0:2.fileName = "/vmfs/volumes/datastore1/disks/ST4T.vmdk"
sata0:2.present = "TRUE"
sata0:3.fileName = "/vmfs/volumes/datastore1/disks/WD4T.vmdk"
sata0:3.present = "TRUE"

scsi0:1.deviceType = "scsi-hardDisk"
scsi0:1.fileName = "/vmfs/volumes/63962bd8-60a5a61e-f5b6-a4bb6d55ccec/disks/ST3T.vmdk"
scsi0:1.present = "TRUE"
scsi0:2.deviceType = "scsi-hardDisk"
scsi0:2.fileName = "/vmfs/volumes/63962bd8-60a5a61e-f5b6-a4bb6d55ccec/disks/ST4T.vmdk"
scsi0:2.present = "TRUE"
scsi0:3.deviceType = "scsi-hardDisk"
scsi0:3.fileName = "/vmfs/volumes/63962bd8-60a5a61e-f5b6-a4bb6d55ccec/disks/WD4T.vmdk"
scsi0:3.present = "TRUE"

truenas核显转码开启

vim /etc/modprobe.d/i915.conf
options i915 enable_guc=2
undate-initramfs -u -k all

midclt call system.advanced.update '{"kernel_extra_options": "i915.enable_guc=2" }'