From 237aa6f6f1f721a6b511f07bdda12a3ebaac07e4 Mon Sep 17 00:00:00 2001 From: mirror Date: Sat, 12 Oct 2024 15:10:46 +0800 Subject: [PATCH] Update MACA --- MACA.md | 72 +++++++++++++++++++++++---------------------------------- 1 file changed, 29 insertions(+), 43 deletions(-) diff --git a/MACA.md b/MACA.md index 745234b..47f9ebb 100644 --- a/MACA.md +++ b/MACA.md @@ -128,10 +128,9 @@ +### 配置YUM源 -#### 适配 Centos7 系统 - -- **配置YUM源** +- **适配 Centos7 系统** ```bash cat < /etc/yum.repos.d/metax-driver-centos7.repo @@ -145,7 +144,29 @@ yum makecache ``` -##### 安装metax-driver +- **适配 CentOS 8、CentOS 9 及 Kylin 系统** + ```bash + cat < /etc/yum.repos.d/metax-driver-centos.repo + [metax-centos] + name=Maca Driver Yum Repository + baseurl=https://repos.metax-tech.com/r/metax-driver-centos + enabled=1 + gpgcheck=0 + EOF + + yum makecache + ``` + +### 配置APT源 + +- **适配所有 Ubuntu 发行版本系统** + ```bash + curl -fsSL https://repos.metax-tech.com/public.gpg.key | apt-key add - + echo "deb [arch=$(dpkg --print-architecture)] https://repos.metax-tech.com/r/metax-driver-ubuntu/ stable main" | tee /etc/apt/sources.list.d/metax-driver-ubuntu.list + apt-get update + + +##### YUM安装metax-driver - **安装metax-driver驱动** ```bash @@ -162,45 +183,7 @@ ``` -#### 适配 CentOS 8、CentOS 9 及 Kylin 系统 - -- **配置YUM源** - ```bash - cat < /etc/yum.repos.d/metax-driver-centos.repo - [metax-centos] - name=Maca Driver Yum Repository - baseurl=https://repos.metax-tech.com/r/metax-driver-centos - enabled=1 - gpgcheck=0 - EOF - - yum makecache - -##### 安装metax-driver - - - **安装metax-driver驱动** - ```bash - yum install metax-driver - ``` - - - **若需要启用SRIOV,需要安装额外的虚拟化支持包 mxgvm,以启用 SR-IOV 功能** - ```bash - yum install metax-driver mxgvm - ``` - - **卸载metax-driver** - ```bash - yum autoremove metax-driver - ``` - -#### 适配所有 Ubuntu 发行版本系统 - -- **配置APT源** - ```bash - curl -fsSL https://repos.metax-tech.com/public.gpg.key | apt-key add - - echo "deb [arch=$(dpkg --print-architecture)] https://repos.metax-tech.com/r/metax-driver-ubuntu/ stable main" | tee /etc/apt/sources.list.d/metax-driver-ubuntu.list - apt-get update - -##### 安装metax-driver +##### APT安装metax-driver - **安装metax-driver驱动** ```bash @@ -217,6 +200,9 @@ apt autoremove metax-driver ``` + + + #### 验证安装 - **在安装完成后需要重启服务器** ```bash