# nvme connect -t rdma -n nqn.2021-10.io.spdk:cnode2 -a 10.224.129.226 -s 4420 Failed to open /dev/nvme-fabrics: No such file or directory
解决: #modprobe nvme_fabrics
1 2 3 4 5 6 7
Failed to write to /dev/nvme-fabrics: Invalid argument nvme_fabrics: no handler found for transport rdma. 解决: 安装mlx_ofd drvier https://www.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed 下载 MLNX_OFED_LINUX-5.4-1.0.3.0-rhel8.1-x86_64.iso 安装 kmod-mlnx-nvme-5.4-OFED.5.4.1.0.3.1.rhel8u1.x86_64
for imageName in ${images[@]} ; do docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName k8s.gcr.io/$imageName docker rmi registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName done
kubernetes部署步骤参考kubespray官网即可略
二、安装kata 2.0
2.1 安装kata 组件
Install the Kata Containers components with the following commands:
Edit /etc/default/grub and add ipv6.disable=1 in line GRUB_CMDLINE_LINUX, e.g.:
1
# cat /etc/default/grub
GRUB_TIMEOUT=5 GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT=”console” GRUB_CMDLINE_LINUX=”ipv6.disable=1 crashkernel=auto rhgb quiet” GRUB_DISABLE_RECOVERY=”true” 2. Regenerate a GRUB configuration file and overwrite existing one:
1
# grub2-mkconfig -o /boot/grub2/grub.cfg
Restart system and verify no line “inet6” in “ip addr show” command output.
1 2
# shutdown -r now # ip addr show | grep net6
Disable IPv6 using sysctl settings (no reboot required)
Append below lines in /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 NOTE : To disable IPv6 on a single interface add below lines to /etc/sysctl.conf : net.ipv6.conf.[interface].disable_ipv6 = 1 ### put interface name here [interface] net.ipv6.conf.default.disable_ipv6 = 1 2. To make the settings affective, execute :
1
# sysctl -p
NOTE : make sure the file /etc/ssh/sshd_config contains the line AddressFamily inet to avoid breaking SSH Xforwarding if you are using the sysctl method 3. Add the AddressFamily line to sshd_config :
1
# vi /etc/ssh/sshd_config
…. AddressFamily inet …. Restart sshd for changes to get get effect :
2021-09-28 04:27:03.665+0000: 41728: info : libvirt version: 7.2.0 2021-09-28 04:27:03.665+0000: 41728: info : hostname: openstack160.******** 2021-09-28 04:27:03.665+0000: 41728: error : virNetTLSContextCheckCertFile:110 : Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
先临时修改了/etc/libvirt/libvirtd.conf 关闭tls
1 2 3 4 5
error: Failed to start domain 'instance-00000018' error: can't connect to virtlogd: Failed to connect socket to '/var/run/libvirt/virtlogd-sock': No such file or directory
解决 :virtlogd &
Troubleshooting
ERROR: Program ‘rpcgen portable-rpcgen’ not found
1
yum install rpcgen
ERROR: Dependency “gnutls” not found, tried pkgconfig
1
yum install gnutls-devel
ERROR: Dependency “libxml-2.0” not found, tried pkgconfig
1
yum install libxml2-devel
ERROR: Problem encountered: XDR is required for remote driver
1
yum install libtirpc-devel
meson.build:918:2: ERROR: Program ‘rst2html5 rst2html5.py rst2html5-3’ not found
1
pip3 install rst2html5
ERROR: Dependency “libapparmor” not found, tried pkgconfig and cmake