GPU passthrought setup for Nvidia V100 (Part II)

16 篇文章 0 订阅
8 篇文章 2 订阅

Part one: HOST

Part two: Guest

 

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:

https://www.suse.com/documentation/suse-best-practices/singlehtml/sbp-kmp-manual/sbp-kmp-manual.html#sec.signing

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

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

认真的柯南

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值