Issues when running Air Gap Install

I have followed the instructions here Air-Gap Install | K3s

I am running Rocky Linux 8

When I run INSTALL_K3S_SKIP_DOWNLOAD=true ./install.sh I get the following message.

INSTALL_K3S_SKIP_DOWNLOAD=true ./install.sh
[INFO]  Skipping k3s download and verify
[INFO]  Skipping installation of SELinux RPM
[ERROR]  Failed to find the k3s-selinux policy, please install:
    dnf install -y container-selinux
    dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/

There is no information in the instructions about installing anything else on the system.

I installed container-selinux and rebooted

When I try to install https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/ I get the following error

dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/
Last metadata expiration check: 2:52:08 ago on Wed 17 May 2023 06:28:08 UTC.
Can not load RPM file: /var/cache/dnf/commandline-a76fe31ae310b0c7/packages/.
Could not open: /var/cache/dnf/commandline-a76fe31ae310b0c7/packages/
Cannot remove /var/cache/dnf/commandline-a76fe31ae310b0c7/packages/

I have tried running the same process on Ubuntu 22.04 and it works fine. Do we know if the Air Gap install process (The instructions) are compatible with RedHat based distributions?

Any help would be much appreciated.

1 Like

@Simon_Carr Hi did you verify the k3s version and your Rocky Linux (8 dot ?) version are supported?
Ref: https://www.suse.com/suse-k3s/support-matrix/all-supported-versions/k3s-v1-26/