nestybox / sysbox

An open-source, next-generation "runc" that empowers rootless containers to run workloads such as Systemd, Docker, Kubernetes, just like VMs.
Apache License 2.0
2.82k stars 159 forks source link

Encountered error with sysbox installation for Ubuntu2204 AMI (ami-00437f3eed7a355f7) #842

Open bobby-lin-cdc opened 1 month ago

bobby-lin-cdc commented 1 month ago

Hi Sysbox, I encountered the following error and it seems like a module is missing.

Is it related to the AMI?

Oct 07 05:10:48 ip-192-168-62-189 systemd[1]: Starting Sysbox installer helper service...
Oct 07 05:10:48 ip-192-168-62-189 sh[36391]: Reading package lists...
Oct 07 05:10:48 ip-192-168-62-189 sh[36391]: Building dependency tree...
Oct 07 05:10:48 ip-192-168-62-189 sh[36391]: Reading state information...
Oct 07 05:10:48 ip-192-168-62-189 sh[36391]: ca-certificates is already the newest version (20240203~22.04.1).
Oct 07 05:10:48 ip-192-168-62-189 sh[36391]: 0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
Oct 07 05:10:48 ip-192-168-62-189 sh[36394]: Hit:1 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Oct 07 05:10:48 ip-192-168-62-189 sh[36394]: Hit:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease
Oct 07 05:10:48 ip-192-168-62-189 sh[36394]: Hit:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease
Oct 07 05:10:49 ip-192-168-62-189 sh[36394]: Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Oct 07 05:10:49 ip-192-168-62-189 sh[36394]: Hit:5 http://ppa.launchpad.net/cloud-images/eks-01.11.0/ubuntu jammy InRelease
Oct 07 05:10:50 ip-192-168-62-189 sh[36394]: Reading package lists...
Oct 07 05:10:50 ip-192-168-62-189 sh[36779]: Reading package lists...
Oct 07 05:10:51 ip-192-168-62-189 sh[36779]: Building dependency tree...
Oct 07 05:10:51 ip-192-168-62-189 sh[36779]: Reading state information...
Oct 07 05:10:51 ip-192-168-62-189 sh[36779]: fuse is already the newest version (2.9.9-5ubuntu3).
Oct 07 05:10:51 ip-192-168-62-189 sh[36779]: iptables is already the newest version (1.8.7-1ubuntu5.2).
Oct 07 05:10:51 ip-192-168-62-189 sh[36779]: rsync is already the newest version (3.2.7-0ubuntu0.22.04.2).
Oct 07 05:10:51 ip-192-168-62-189 sh[36779]: 0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
Oct 07 05:10:51 ip-192-168-62-189 sh[36386]: Skipping shiftfs installation (kernel has id-mapped mounts support).
Oct 07 05:10:51 ip-192-168-62-189 sh[36386]: Probing kernel modules ...
Oct 07 05:10:51 ip-192-168-62-189 sh[36792]: modprobe: FATAL: Module configfs not found in directory /lib/modules/6.5.0-1023-aws
Oct 07 05:10:51 ip-192-168-62-189 systemd[1]: sysbox-installer-helper.service: Main process exited, code=exited, status=1/FAILURE
Oct 07 05:10:51 ip-192-168-62-189 systemd[1]: sysbox-installer-helper.service: Failed with result 'exit-code'.
Oct 07 05:10:51 ip-192-168-62-189 systemd[1]: Failed to start Sysbox installer helper service.
Oct 07 05:10:51 ip-192-168-62-189 systemd[1]: sysbox-installer-helper.service: Consumed 3.033s CPU time.
ctalledo commented 1 month ago

Hi @bobby-lin-cdc,

Is it related to the AMI?

Yes, seems like Sysbox is looking for the kernel's configfs module but it's not present in the AMI's kernel image.

I have to double-check if Sysbox really needs that module though. At one point it did, but I think it may no longer need it. If that's the case, then we will remove the dependency.

rodnymolina commented 1 month ago

@bobby-lin-cdc, we have a fix for this one here. Our next release (in a few days) will incorporate it.

bobby-lin-cdc commented 1 month ago

Thank you so much for your help!