博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Exsi上ubuntu虚拟机显卡tesla p100 驱动和cuda踩坑。
阅读量:4129 次
发布时间:2019-05-25

本文共 1187 字,大约阅读时间需要 3 分钟。

1. 显卡直通后无法开启电源

报错如下:

Module 'DevicePowerOn' power on failed.

解决方法:

在虚拟机高级选项里面添加参数 (note:这个其实是ubuntu 18.04,当初ubuntu16.04装驱动现实gcc内核编译版本不匹配,后面装了ubuntu 18.04名字打错了。)

pciPassthru.use64bitMMIO = TRUE

pciPassthru.64bitMMIOSizeGB = 96

参考 

2. 在能开启电源后,无法打上驱动。Unable to determine if Secure Boot is enabled

报错如下:

-> done.

-> Kernel module compilation complete.
-> Unable to determine if Secure Boot is enabled: No such file or directory
ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when t
his kernel module was built against the wrong or improperly configured kernel sources, wi
th a version of gcc that differs from the one used to build the target kernel, or if a dr
iver such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel modul
e from obtaining ownership of the NVIDIA graphics device(s), or no NVIDIA GPU installed i
n this system is supported by this NVIDIA Linux graphics driver release.

解决方法:

1. 把虚拟机的bios模式改成EFI模式(我重新安装了虚拟机。开始的时候就选择efi模式,安装了系统后,不知道怎么改efi。)。

2. sudo apt install mokutil

3. sudo mokutil --disable-validation

4. reboot

5. 此时电脑重启,出现蓝屏,按任意键,出现四个选项:选择change secure boot state

6. 输入相应密码的第几个字符。然后修改为disable就可以了。

详细操作参考:

转载地址:http://jdzvi.baihongyu.com/

你可能感兴趣的文章
模板方法模式
查看>>
数据结构之队列、栈
查看>>
数据结构之树
查看>>
数据结构之二叉树
查看>>
二叉树非递归遍历算法思悟
查看>>
红黑树算法思悟
查看>>
从山寨Spring中学习Spring IOC原理-自动装配注解
查看>>
实例区别BeanFactory和FactoryBean
查看>>
Spring后置处理器BeanPostProcessor的应用
查看>>
Spring框架的ImportSelector到底可以干嘛
查看>>
Mysql中下划线问题
查看>>
微信小程序中使用npm过程中提示:npm WARN saveError ENOENT: no such file or directory
查看>>
Xcode 11 报错,提示libstdc++.6 缺失,解决方案
查看>>
idea的安装以及简单使用
查看>>
Windows mysql 安装
查看>>
python循环语句与C语言的区别
查看>>
Vue项目中使用img图片和background背景图的使用方法
查看>>
vue 项目中图片选择路径位置static 或 assets区别
查看>>
vue项目打包后无法运行报错空白页面
查看>>
Vue 解决部署到服务器后或者build之后Element UI图标不显示问题(404错误)
查看>>