adamant-kite-43734
10/07/2024, 6:32 AMfuture-horse-85191
10/07/2024, 6:32 AM[root@rhel9 ~]# curl -sfL <https://get.k3s.io> | sh -
[INFO] Finding release for channel stable
[INFO] Using v1.30.5+k3s1 as release
[INFO] Downloading hash <https://github.com/k3s-io/k3s/releases/download/v1.30.5+k3s1/sha256sum-amd64.txt>
[INFO] Skipping binary downloaded, installed k3s matches hash
[INFO] Finding available k3s-selinux versions
Failed to set locale, defaulting to C.UTF-8
Error: No matching Packages to list
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:01 ago on Mon Oct 7 08:24:21 2024.
Package k3s-selinux-1.6-1.el9.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[ERROR] Failed to apply container_runtime_exec_t to /usr/local/bin/k3s, please install:
dnf install -y container-selinux
dnf install -y <https://rpm.rancher.io/k3s/stable/common/centos/9/noarch/>
[root@rhel9 ~]# dnf list k3s-selinux container-selinux
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:17 ago on Mon Oct 7 08:24:21 2024.
Installed Packages
container-selinux.noarch 3:2.229.0-1.el9_3 @rhel-9-for-x86_64-appstream-rpms
k3s-selinux.noarch 1.6-1.el9 @rancher-k3s-common-stable
[root@rhel9 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.4 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.4"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.4 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="<https://www.redhat.com/>"
DOCUMENTATION_URL="<https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9>"
BUG_REPORT_URL="<https://issues.redhat.com/>"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.4"
[root@rhel9 ~]# uname -a
Linux rhel9 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
[root@rhel9 ~]# cat /etc/wsl.conf
[boot]
systemd = true
future-horse-85191
10/07/2024, 8:33 AM[root@rhel9 ~]# grep "^SELINUX" /etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted
[root@rhel9 ~]# sestatus
SELinux status: disabled
adding INSTALL_K3S_SKIP_SELINUX_RPM=true
helped