Skip to content
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

podman fails to find the builder image when building the module #18

Open
ppGodel opened this issue Oct 23, 2019 · 3 comments
Open

podman fails to find the builder image when building the module #18

ppGodel opened this issue Oct 23, 2019 · 3 comments

Comments

@ppGodel
Copy link

ppGodel commented Oct 23, 2019

Hi!
First, i want to thank you for the great work you are doing with this container.
Well, I am using Fedora Silverblue and when i build the image i have this error, i guess podman is not finding the correct overlay because the id doesn't exists.

[user1@localhost ~]$ atomic-wireguard-module build The WireGuard 0.0.20190702 kernel module container is not built. Building 0.0.20190702 kernel module for 5.3.6-200.fc30.x86_64 ... STEP 1: FROM fedora AS builder STEP 2: MAINTAINER "Joe Doss" <[email protected]> --> Using cache a7c9d2b8f9cc61a1f72a84c525d557e7c0716d56ad5c10ba9fe241e259ae7ed8 STEP 3: ARG WIREGUARD_VERSION --> Using cache 83034e87788ce8f3f09fc355b0bbbd13c5e580af644c7852caa2057080bcbdac STEP 4: ARG WIREGUARD_KERNEL_VERSION --> Using cache 6bdc2553921b304c4742e0afe693fd197b2d3d7c478e92727564befb439d97fd STEP 5: ARG WIREGUARD_SHA256 --> Using cache 59367aa354891f598b9681cbf7c67b7988ecc84871a75038a5d27d780f9009a7 STEP 6: WORKDIR /tmp --> Using cache 9508d774e8bb2631edc14b0e7e7fd218bf7eb43e1bf053290c5950a78b38949d STEP 7: RUN dnf update -y && dnf install libmnl-devel elfutils-libelf-devel findutils binutils boost-atomic boost-chrono boost-date-time boost-system boost-thread cpp dyninst efivar-libs gc gcc glibc-devel glibc-headers guile koji isl libatomic_ops libdwarf libmpc libpkgconf libtool-ltdl libxcrypt-devel make mokutil pkgconf pkgconf-m4 pkgconf-pkg-config unzip zip /usr/bin/pkg-config xz -y && koji download-build --rpm --arch=x86_64 kernel-core-${WIREGUARD_KERNEL_VERSION} && koji download-build --rpm --arch=x86_64 kernel-devel-${WIREGUARD_KERNEL_VERSION} && koji download-build --rpm --arch=x86_64 kernel-modules-${WIREGUARD_KERNEL_VERSION} && dnf install kernel-core-${WIREGUARD_KERNEL_VERSION}.rpm kernel-devel-${WIREGUARD_KERNEL_VERSION}.rpm kernel-modules-${WIREGUARD_KERNEL_VERSION}.rpm -y && dnf clean all && curl -LS https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${WIREGUARD_VERSION}.tar.xz | { t="$(mktemp)"; trap "rm -f '$t'" INT TERM EXIT; cat >| "$t"; sha256sum --quiet -c <<<"${WIREGUARD_SHA256} $t" || exit 1; cat "$t"; } | tar xJf - --> Using cache 3ba677ebcd03496669531594c63e06437f1a70673d0c9f4e1e9f1baa4c1f1671 STEP 8: RUN cd /tmp/WireGuard-${WIREGUARD_VERSION}/src; KERNELDIR=/usr/lib/modules/${WIREGUARD_KERNEL_VERSION}/build make -j$(nproc) && make install --> Using cache 5b30e37ba45ed75443b55cd644ea504c669c61f28552ffa2f3de5e81d9ad5e59 STEP 9: FROM fedora STEP 10: MAINTAINER "Joe Doss" <[email protected]> --> Using cache a7c9d2b8f9cc61a1f72a84c525d557e7c0716d56ad5c10ba9fe241e259ae7ed8 STEP 11: ARG WIREGUARD_KERNEL_VERSION --> Using cache 5914416732baa8327756b36c866e188d3ce6beaef3bce7a5d2166e47a92a5d9c STEP 12: WORKDIR /tmp --> Using cache 49935f79dd0ee44c5ae25b0257ea6676f18ea311aabde19d78edd87c9dcee867 STEP 13: RUN dnf update -y && dnf install kmod koji libmnl -y && koji download-build --rpm --arch=x86_64 kernel-core-${WIREGUARD_KERNEL_VERSION} && koji download-build --rpm --arch=x86_64 kernel-modules-${WIREGUARD_KERNEL_VERSION} && dnf install /tmp/kernel-core-${WIREGUARD_KERNEL_VERSION}.rpm kernel-modules-${WIREGUARD_KERNEL_VERSION}.rpm -y && dnf clean all && rm -f /tmp/*.rpm --> Using cache 59166a4eb6846e8d7763fe331c802d40f6f9010f182e201d79604b2cf6cae5ac STEP 14: COPY --from=builder /usr/lib/modules/${WIREGUARD_KERNEL_VERSION}/extra/wireguard.ko /usr/lib/modules/${WIREGUARD_KERNEL_VERSION}/extra/wireguard.ko Error: error dry-running "COPY --from=builder /usr/lib/modules/${WIREGUARD_KERNEL_VERSION}/extra/wireguard.ko /usr/lib/modules/${WIREGUARD_KERNEL_VERSION}/extra/wireguard.ko": no files found matching "/var/home/user1/.local/share/containers/storage/overlay/a0f5ef540f11f9475fd5b46bfce58547c25b83d26c19505f48d12fa33b4b713a/merged/usr/lib/modules/${WIREGUARD_KERNEL_VERSION}/extra/wireguard.ko": no such file or directory

Any ideas of how to fix it?, i tried building old versions but i am getting other errors related to make command in step 8. :(

@jdoss
Copy link
Owner

jdoss commented Oct 23, 2019

Run:

podman ps -a and remove all of the containers related to atomic-wireguard.
podman images and remove all of the images related to atomic-wiregaurd.

then try /usr/bin/atomic-wireguard-module build again and report back.

@ppGodel
Copy link
Author

ppGodel commented Oct 23, 2019

Actually i ran that build after clean the images from podman, i didn't add the first build run because of the large info of downloaded data so this log is from the second build, i will try it again and post you the results from the first build.

@ppGodel
Copy link
Author

ppGodel commented Oct 24, 2019

Hi Joe this is the build log,i got same error but here are visible errors from previous steps. I forgot to mention that i am building it in Fedora Silverblue 30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants