银河麒麟V10高级服务器版

Q: 银河麒麟V10 如何安装 docker 20.10 等最新版
由于银河麒麟V10 自带的 yum 不支持 module 功能,而 docker-ce 依赖的 libslirp 、slirp4netns、fuse-overlayfs 这3个包是属于module 里面的,所以直接安装会报错。可以先通过下载以上三个包的rpm包,再进行安装。

#  1. 从 AlmaLinux 8 的仓库下载   libslirp  slirp4netns fuse-overlayfs 的最新RPM包(以ARM架构为例)
wget https://repo.almalinux.org/almalinux/8/AppStream/aarch64/os/Packages/fuse-overlayfs-1.9-1.module_el8.6.0+3070+1510fbd1.aarch64.rpm
wget https://repo.almalinux.org/almalinux/8/AppStream/aarch64/os/Packages/slirp4netns-1.2.0-2.module_el8.6.0+3070+1510fbd1.aarch64.rpm
wget https://repo.almalinux.org/almalinux/8/AppStream/aarch64/os/Packages/libslirp-4.4.0-1.module_el8.6.0+2878+e681bc44.aarch64.rpm

# 2. 安装 rpm 包,并安装麒麟仓库里面的依赖 fuse3
yum install libslirp-*.rpm slirp4netns-*.rpm fuse-overlayfs-*.rpm

# 3. 安装 docker-ce,并安装麒麟仓库里面的依赖 container-selinux libcgroup tar 。
yum install  docker-ce

Q: 安装 docker-ce 20.10 版本后,无法启动.

docker run -ti almalinux:8 bash
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: container_linux.go:318: starting container process caused "permission denied": unknown.
ERRO[0001] error waiting for container: context canceled 

A: 卸载默认的 podman 就好了

[root@localhost ~]# yum remove podman
Detection of Platform Module failed: No valid Platform ID detected
Modular dependency problem:

 Problem: conflicting requests
  - nothing provides module(platform:el8) needed by module container-tools:rhel8:8060020220516071747:20125149-0.x86_64
Dependencies resolved.
============================================================================================================================================================================================================
 Package                                                 Architecture                       Version                                                     Repository                                     Size
============================================================================================================================================================================================================
Removing:
 podman                                                  x86_64                             1:0.10.1-8.ky10                                             @ks10-adv-updates                              28 M
Removing unused dependencies:
 conmon                                                  x86_64                             2:2.0.2-2.ky10                                              @anaconda                                     155 k
 containernetworking-plugins                             x86_64                             0.8.6-4.git40b4237.ky10                                     @anaconda                                      71 M
 containers-common                                       x86_64                             1:1.1.0-3.dev.git63085f5.ky10                               @anaconda                                     1.1 k
 docker-runc                                             x86_64                             1.0.0.rc3-201.p01.ky10                                      @ks10-adv-updates                             8.4 M

Transaction Summary
============================================================================================================================================================================================================
Remove  5 Packages

Freed space: 107 M
Is this ok [y/N]: y

docker run -ti almalinux:8 bash
可以正常运行

Q: docker run -ti almalinux:9 bash
Fatal glibc error: CPU does not support x86-64-v2
A: RHEL 9 需要 x86-64-v2,virtualbox 6 不支持。 virtualbox 7 支持。

Q:银河麒麟高级服务器操作系统V10如何进入单用户模式?

A:
1)启动到选择操作系统的界面,在此界面按“e”进入编辑模式。担心手慢的,可以多按几次向下的按键。
2)找到“linux” 或 ”linuxefi“ 行,在末尾输入rw init=/bin/bash,按Ctrl+x进入单用户模式

quite rw init=/bin/bash 

3)有的系统版本在第一步按”e“后,需要输入指定的用户名和密码才可以进入编辑模式,其他步骤与1,2步一样. 用户名:root 密码:Kylin123123

Enter Username:
root
Enter password:
Kylin123123

4)运行 passwd root 修改 root 密码,也可以根据需要执行关闭防火墙等操作。
5)修改完成后,从单用户模式重启服务器须执行【/usr/sbin/reboot -f】

银河麒麟下载

填写手机号验证码就跳转进下载页面
https://www.kylinos.cn/support/trial.html
https://www.kylinos.cn/support/trial.html?trial=62436

kylin local repo sync

# cat /data/repo/ky10-repo.sh
mkdir -p /data/repo/ky10.aarch64 /data/repo/ky10.x86_64

reposync -n --repoid=ky10-adv-base-aarch64        --norepopath  -p /data/repo/ky10.aarch64
reposync -n --repoid=ky10-adv-updates-aarch64     --norepopath  -p /data/repo/ky10.aarch64
reposync -n --repoid=ky10-adv-base-x86_64         --norepopath  -p /data/repo/ky10.x86_64
reposync -n --repoid=ky10-adv-updates-x86_64      --norepopath  -p /data/repo/ky10.x86_64


cat /etc/yum.repos.d/kylin.repo 

[ky10-adv-updates-aarch64]
name = Kylin Linux Advanced Server 10 - Updates
baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP2/os/adv/lic/updates/aarch64/
gpgcheck = 0
enabled = 0


[ky10-adv-updates-x86_64]
name = Kylin Linux Advanced Server 10 - Updates
baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP2/os/adv/lic/updates/x86_64/
gpgcheck = 0
enabled = 0

[ky10-adv-base-aarch64]
name = Kylin Linux Advanced Server 10 - Base
baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP2/os/adv/lic/base/aarch64/
gpgcheck = 0
enabled = 0


[ky10-adv-base-x86_64]
name = Kylin Linux Advanced Server 10 - Base
baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP2/os/adv/lic/base/x86_64/
gpgcheck = 0
enabled = 0



你可能感兴趣的:(银河麒麟V10高级服务器版)