更新时间:2024-08-12 gmt 08:00
(推荐)自动安装gpu加速型ecs的gpu驱动(windows)-九游平台
操作场景
在使用gpu加速型实例时,需确保实例已安装gpu驱动,否则无法获得相应的gpu加速能力。
本节内容介绍如何在gpu加速型windows实例上通过脚本自动安装gpu驱动。
使用须知
- 如果gpu加速型实例已安装gpu驱动,需要先卸载原驱动后再安装新的目标驱动。
- 当前仅部分gpu加速型实例的规格、部分windows操作系统版本支持通过脚本自动安装gpu驱动。
- windows server 2016 数据中心版
- windows server 2019 数据中心版
如果您的规格、操作系统或驱动版本不支持通过脚本自动安装gpu驱动,请参考手动安装gpu加速型ecs的grid驱动和手动安装gpu加速型ecs的tesla驱动,手动安装gpu驱动。
驱动安装脚本支持区域及获取方式
您可以在powershell上执行以下命令,获取驱动安装脚本。
- 华北-北京一
start-bitstransfer -source https://hgcs-drivers-cn-north-1.obs.cn-north-1.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 华北-北京二
start-bitstransfer -source https://hgcs-drivers-cn-north-2.obs.cn-north-2.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 华北-北京四
start-bitstransfer -source https://hgcs-drivers-cn-north-4.obs.cn-north-4.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 华北-乌兰察布一
start-bitstransfer -source https://hgcs-drivers-cn-north-9.obs.cn-north-9.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 华东-上海一
start-bitstransfer -source https://hgcs-drivers-cn-east-3.obs.cn-east-3.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 华东-上海二
start-bitstransfer -source https://hgcs-drivers-cn-east-2.obs.cn-east-2.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 华南-广州
start-bitstransfer -source https://hgcs-drivers-cn-south-1.obs.cn-south-1.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 华南-广州-友好用户环境
start-bitstransfer -source https://hgcs-drivers-cn-south-4.obs.cn-south-4.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 西南-贵阳一
start-bitstransfer -source https://hgcs-drivers-cn-southwest-2.obs.cn-southwest-2.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 中国-香港
start-bitstransfer -source https://hgcs-drivers-ap-southeast-1.obs.ap-southeast-1.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 亚太-曼谷
start-bitstransfer -source https://hgcs-drivers-ap-southeast-2.obs.ap-southeast-2.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 亚太-新加坡
start-bitstransfer -source https://hgcs-drivers-ap-southeast-3.obs.ap-southeast-3.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 非洲-约翰内斯堡
start-bitstransfer -source https://hgcs-drivers-af-south-1.obs.af-south-1.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
操作步骤
以下操作以windows server 2019 数据中心版操作系统,g6规格的gpu加速型实例安装grid驱动为例进行介绍。
- 远程登录云服务器。
- 单击“启动”,打开windows powershell。
图1 打开powershell
- 在powershell中,执行以下命令,获取驱动安装脚本并运行。
以“华北-北京四”为例介绍,更多区域请参考驱动安装脚本支持区域及获取方式。
start-bitstransfer -source https://hgcs-drivers-cn-north-4.obs.cn-north-4.myhuaweicloud.com/release/script/auto_install.ps1 -destination auto_install.ps1; ./auto_install.ps1
- 选择驱动版本与保存路径。
图2 选择驱动版本与保存路径
- 单击“ok”,开始安装驱动。
图3 安装驱动图4 同意nvidia软件许可协议图5 选择安装选项
- 驱动安装完成后,可能需要重启云服务器。
- 如果需要重启,单击“稍后重启”,待脚本执行完成后,手动重启云服务器。
图6 稍后重启
- 如果不需要重启,单击“关闭”。
图7 关闭
- 如果需要重启,单击“稍后重启”,待脚本执行完成后,手动重启云服务器。
- 返回桌面,在空白处右键单击,选择“nvidia控制面板”,查看驱动版本,判断驱动是否安装成功。
若显示如下版本,表示驱动安装成功。图8 驱动版本
相关文档
意见反馈
文档内容是否对您有帮助?
提交成功!非常感谢您的反馈,我们会继续努力做到更好!
您可在查看反馈及问题处理状态。
系统繁忙,请稍后重试
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨