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

how to build kernel from source without using cranky #317

Closed
jkr0103 opened this issue Jan 23, 2025 · 3 comments
Closed

how to build kernel from source without using cranky #317

jkr0103 opened this issue Jan 23, 2025 · 3 comments

Comments

@jkr0103
Copy link
Contributor

jkr0103 commented Jan 23, 2025

Describe the support request

I am facing multiple issue with downloading the kernel source using cranky, e.g.:

$ kteam-tools/cranky/cranky chroot create-base "noble"
......
......
Err:4 http://security.ubuntu.com/ubuntu noble-security/main amd64 linux-libc-dev amd64 6.8.0-45.45
404 Not Found [IP: 185.125.190.81 80]
Get:5 http://security.ubuntu.com/ubuntu noble-security/main amd64 libc6 amd64 2.39-0ubuntu8.3 [3265 kB]
Get:6 http://security.ubuntu.com/ubuntu noble-security/main amd64 libc-bin amd64 2.39-0ubuntu8.3 [722 kB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/main amd64 libssl3t64 amd64 3.0.13-0ubuntu3.4 [1940 kB]
Get:8 http://security.ubuntu.com/ubuntu noble-security/main amd64 libgnutls30t64 amd64 3.8.3-1.1ubuntu3.1 [998 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/main amd64 dpkg-dev all 1.22.6ubuntu6.1 [1074 kB]
Get:10 http://security.ubuntu.com/ubuntu noble-security/main amd64 libdpkg-perl all 1.22.6ubuntu6.1 [269 kB]
Fetched 11.8 MB in 3s (4078 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_6.8.0-45.45_amd64.deb 404 Not Found [IP: 185.125.190.81 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Script failed
ERROR: Command failed: chroot (args=['create-base', 'noble'])


On another machine this command passes but fails at kteam-tools/cranky/cranky checkout noble:linux-intel

Hence wanted to know the other ways to download the kernel source and build it.

System report

Operating system details

Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble

Kernel version

6.8.0-1015-intel #22-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 12 14:47:29 UTC 2024 x86_64 x86_64 GNU/Linux

[sudo] password for sdp:

TDX kernel logs

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-1015-intel root=UUID=8617a4cb-7c3d-4ca9-a741-4743cecc4ce0 ro kvm_intel.tdx=1 nohibernate nomodeset
[    0.660696] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-1015-intel root=UUID=8617a4cb-7c3d-4ca9-a741-4743cecc4ce0 ro kvm_intel.tdx=1 nohibernate nomodeset
[    1.425147] virt/tdx: BIOS enabled: private KeyID range [64, 128)
[    1.425152] virt/tdx: Disable ACPI S3. Turn off TDX in the BIOS to use ACPI S3.
[    1.499571] smpboot: CPU0: Intel(R) Xeon(R) Platinum 8480CTDX (family: 0x6, model: 0x8f, stepping: 0x8)
[    8.086042] virt/tdx: TDX module: attributes 0x0, vendor_id 0x8086, major_version 1, minor_version 5, build_date 20240407, build_num 744
[    8.086046] virt/tdx: CMR: [0x100000, 0x77800000)
[    8.086048] virt/tdx: CMR: [0x100000000, 0x206e000000)
[    8.086049] virt/tdx: CMR: [0x2080000000, 0x4070000000)
[    8.785032] virt/tdx: 1050636 KB allocated for PAMT
...
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-1015-intel root=UUID=8617a4cb-7c3d-4ca9-a741-4743cecc4ce0 ro kvm_intel.tdx=1 nohibernate nomodeset
[    0.660696] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-1015-intel root=UUID=8617a4cb-7c3d-4ca9-a741-4743cecc4ce0 ro kvm_intel.tdx=1 nohibernate nomodeset
[    1.425147] virt/tdx: BIOS enabled: private KeyID range [64, 128)
[    1.425152] virt/tdx: Disable ACPI S3. Turn off TDX in the BIOS to use ACPI S3.
[    1.499571] smpboot: CPU0: Intel(R) Xeon(R) Platinum 8480CTDX (family: 0x6, model: 0x8f, stepping: 0x8)
[    8.086042] virt/tdx: TDX module: attributes 0x0, vendor_id 0x8086, major_version 1, minor_version 5, build_date 20240407, build_num 744
[    8.086046] virt/tdx: CMR: [0x100000, 0x77800000)
[    8.086048] virt/tdx: CMR: [0x100000000, 0x206e000000)
[    8.086049] virt/tdx: CMR: [0x2080000000, 0x4070000000)
[    8.785032] virt/tdx: 1050636 KB allocated for PAMT
[    8.785037] virt/tdx: module initialized
Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/PEK-1611.

This message was autogenerated

@ThibF
Copy link
Member

ThibF commented Jan 23, 2025

This is likely to be a temporary issue, just did the full process in a clean noble VM without issue.
You can find another guide without using cranky, please note that you will have to be on noble to build noble kernel: https://canonical-kteam-docs.readthedocs-hosted.com/en/public/how-to/build-kernel.html

@jkr0103
Copy link
Contributor Author

jkr0103 commented Jan 23, 2025

This is likely to be a temporary issue, just did the full process in a clean noble VM without issue. You can find another guide without using cranky, please note that you will have to be on noble to build noble kernel: https://canonical-kteam-docs.readthedocs-hosted.com/en/public/how-to/build-kernel.html

Thanks, will try that!

@ThibF ThibF closed this as completed Feb 6, 2025
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