-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add openSUSE example config (using JeOS image for OpenStack). #91
Conversation
|
if ! command -v sshfs >/dev/null 2>&1; then | ||
zypper install -y sshfs | ||
fi | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suda@lima-opensuse:~> containerd-rootless-setuptool.sh nsenter containerd-fuse-overlayfs-grpc /run/user/501/containerd-fuse-overlayfs.sock /home/suda.linux/.local/share/containerd-fuse-overlayfs
INFO[0000] containerd-fuse-overlayfs-grpc Version="v1.0.2" Revision="0c586ae77b866c333af73c6e9f9bf7a4b64cb06b"
error: fuse-overlayfs not functional, make sure running with kernel >= 4.18: failed to mount fuse-overlayfs ({Type:fuse3.fuse-overlayfs Source:overlay Options:[lowerdir=/home/suda.linux/.local/share/containerd-fuse-overlayfs/fuseoverlayfs-check824306133/lower2:/home/suda.linux/.local/share/containerd-fuse-overlayfs/fuseoverlayfs-check824306133/lower1]}) on /home/suda.linux/.local/share/containerd-fuse-overlayfs/fuseoverlayfs-check824306133/merged: mount helper [mount.fuse3 [overlay /home/suda.linux/.local/share/containerd-fuse-overlayfs/fuseoverlayfs-check824306133/merged -o lowerdir=/home/suda.linux/.local/share/containerd-fuse-overlayfs/fuseoverlayfs-check824306133/lower2:/home/suda.linux/.local/share/containerd-fuse-overlayfs/fuseoverlayfs-check824306133/lower1 -t fuse-overlayfs]] failed: "": exec: "mount.fuse3": executable file not found in $PATH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zypper install -y fuse3
would be fine.
Also iptables
needs to be installed. And modprobe ip_tables
if ! command -v sshfs >/dev/null 2>&1; then | ||
zypper install -y sshfs | ||
fi | ||
fi | ||
# other dependencies are preinstalled on Arch Linux (https://linuximages.de/openstack/arch/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment has to be moved to L58
if [ "${LIMA_CIDATA_CONTAINERD_SYSTEM}" = 1 ] || [ "${LIMA_CIDATA_CONTAINERD_USER}" = 1 ]; then | ||
if [ ! -e /usr/sbin/iptables ]; then | ||
zypper install -y iptables | ||
modprobe ip_tables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modprobe must always happen here (even when /usr/sbin/iptables is already present.)
https://github.com/AkihiroSuda/lima/blob/eb3ef88dd3a9834ea15cec99e1be2073c4c4b16c/pkg/cidata/cidata.TEMPLATE.d/boot/40-install-containerd.sh#L28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I've added it just after the modprobe tap
line. I assume for modprobe ip_tables
we don't need the || true
part because a failure would be fatal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can have || true
because ip_tables can be built-in into the kernel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
Unfortunately I couldn't find a corresponding image for aarch64.
Also containerd still failing: