GPU passthrought setup for Nvidia V100 (Part II)
Part Two Guest Installment by virt-manager
1.1 Make sure you are installing a VM with UEFI mode
1.2 Make sure Your HOST is SLES12SP2 and so on
1.3 Still need add a emulated device when installing,
Graphic: spice
Device: qxl
1.4 Add pci host devices above:
03:00.0
1.5. Install driver
1.5.1.1 download file from "http://www.nvidia.com/download/driverResults.aspx/131159/en-us"
1.5.2 following below steps
rpm -i nvidia-diag-driver-local-repo-sles123-390.30-1.0-1.x86_64.rpm
zypper refresh
zypper install cuda-drivers
reboot
For verification:
cd /usr/local/cuda-9.1/samples/0_Simple/simpleTemplates
make
/usr/local/cuda-9.1/samples/0_Simple/simpleTemplates/:[0]#
./simpleTemplates
runTest<float,32>
GPU Device 0: "Tesla V100-PCIE-16GB" with compute capability 7.0
CUDA device [Tesla V100-PCIE-16GB] has 80 Multi-Processors
Processing time: 495.006000 (ms)
Compare OK
runTest<int,64>
GPU Device 0: "Tesla V100-PCIE-16GB" with compute capability 7.0
CUDA device [Tesla V100-PCIE-16GB] has 80 Multi-Processors
Processing time: 0.203000 (ms)
Compare OK
[simpleTemplates] -> Test Results: 0 Failures
1.5.3
It may need sign nvidia.ko/nvidia-uvm.ko in SLES
We are working on a better solution now
Meanwhile check below:
8.2 Signing Module Object Files (UEFI Secure Boot)
1.6 Display issue
Once you installed nvidia driver, the vi rt-manager display will lost
connect. You need to ssh login or change to console interface or install
a dedicated vnc server inside vm