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

feat: [NODE-1509] Use 6.11 kernel on 24.04 for GuestOS #2213

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ic-os/guestos/context/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ RUN cd /tmp/ && \
echo "fbadb376afa7c883f87f70795700a8a200f7fd45412532cc1938a24d41078011 node_exporter-1.8.1.linux-amd64.tar.gz" > node_exporter.sha256 && \
shasum -c node_exporter.sha256

# Download 6.11 kernel and modules
RUN cd /tmp/ && \
curl -L -O http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-modules-6.11.0-8-generic_6.11.0-8.8_amd64.deb && \
curl -L -O http://mirrors.kernel.org/ubuntu/pool/main/l/linux-signed/linux-image-6.11.0-8-generic_6.11.0-8.8_amd64.deb && \
curl -L -O http://mirrors.kernel.org/ubuntu/pool/main/l/linux-meta/linux-image-virtual-hwe-24.04_6.11.0-8.8_amd64.deb && \
echo "d4cd2d97fcca81b57bec947b0e8ca004d556afce1d13f5cebe5d677c0445c6a2 linux-modules-6.11.0-8-generic_6.11.0-8.8_amd64.deb" >> kernel.sha256 && \
echo "241811191691c68e0874519ee71bda9de39e23510dee5e5512150db874f5b285 linux-image-6.11.0-8-generic_6.11.0-8.8_amd64.deb" >> kernel.sha256 && \
echo "5c31c7e0d996ebc0928c5e1ad3b80fea047b56dfbbdaa759f7e7a70b1c42f10e linux-image-virtual-hwe-24.04_6.11.0-8.8_amd64.deb" >> kernel.sha256 && \
shasum -c kernel.sha256

#
# Second build stage:
Expand Down Expand Up @@ -81,3 +90,16 @@ RUN cd /tmp/ && \
mkdir -p /etc/node_exporter && \
tar --strip-components=1 -C /usr/local/bin/ -zvxf node_exporter-1.8.1.linux-amd64.tar.gz node_exporter-1.8.1.linux-amd64/node_exporter && \
rm /tmp/node_exporter-1.8.1.linux-amd64.tar.gz

# Install 6.11 kernel
COPY --from=download /tmp/linux-modules-6.11.0-8-generic_6.11.0-8.8_amd64.deb /tmp/linux-modules-6.11.0-8-generic_6.11.0-8.8_amd64.deb
COPY --from=download /tmp/linux-image-6.11.0-8-generic_6.11.0-8.8_amd64.deb /tmp/linux-image-6.11.0-8-generic_6.11.0-8.8_amd64.deb
COPY --from=download /tmp/linux-image-virtual-hwe-24.04_6.11.0-8.8_amd64.deb /tmp/linux-image-virtual-hwe-24.04_6.11.0-8.8_amd64.deb

RUN cd /tmp/ && \
dpkg -i /tmp/linux-modules-6.11.0-8-generic_6.11.0-8.8_amd64.deb && \
dpkg -i /tmp/linux-image-6.11.0-8-generic_6.11.0-8.8_amd64.deb && \
dpkg -i /tmp/linux-image-virtual-hwe-24.04_6.11.0-8.8_amd64.deb && \
rm /tmp/linux-modules-6.11.0-8-generic_6.11.0-8.8_amd64.deb && \
rm /tmp/linux-image-6.11.0-8-generic_6.11.0-8.8_amd64.deb && \
rm /tmp/linux-image-virtual-hwe-24.04_6.11.0-8.8_amd64.deb
2 changes: 1 addition & 1 deletion ic-os/guestos/context/docker-base.dev
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ghcr.io/dfinity/guestos-base-dev@sha256:a09de31389eded95279b455a4de31a4f718e7605fc491f03d209bae6841ac5c1
ghcr.io/dfinity/guestos-base-dev@sha256:e5ed9b6e079e93ab6fafb1abdce6387d76f6a74331511817c98cfa93d3cf61d2
2 changes: 1 addition & 1 deletion ic-os/guestos/context/docker-base.prod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ghcr.io/dfinity/guestos-base@sha256:e7e968ad4df4606a7a4ed81fb248e8738f917ed5e54b5b8351b6f9ba620f4fa7
ghcr.io/dfinity/guestos-base@sha256:50017277cd6363ec0dbe6d5ce44aff252598e7c303638a0bb0a5f612692c0dd4
6 changes: 5 additions & 1 deletion ic-os/guestos/context/packages.common
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
# image only.

# Need kernel to boot anything
linux-image-virtual-hwe-24.04
initramfs-tools

# Resolve some dependencies manualy for 6.11
kmod
linux-base
wireless-regdb

# Need systemd for boot process
systemd
systemd-sysv
Expand Down