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

Fails on alpine/virtual #360

Open
bogorad opened this issue Aug 21, 2024 · 3 comments
Open

Fails on alpine/virtual #360

bogorad opened this issue Aug 21, 2024 · 3 comments

Comments

@bogorad
Copy link

bogorad commented Aug 21, 2024

Installed the latest Alpine image for VMs:

testvm:~# uname -a
Linux testvm 6.6.47-0-virt #1-Alpine SMP PREEMPT_DYNAMIC Mon, 19 Aug 2024 09:06:00 +0000 x86_64 Linux
testvm:~# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.19.3
PRETTY_NAME="Alpine Linux v3.19"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

Fails (dmesg):

[  117.146661] kexec[2475]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
@bogorad
Copy link
Author

bogorad commented Aug 21, 2024

Also fails with an older version of Alpine:

+ sort -c -V
+ uname -r
sort: unrecognized option: V
+ printf '%s\n' 6.1 4.19.118-0-virt
BusyBox v1.29.3 (2019-01-24 07:45:07 UTC) multi-call binary.

Usage: sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...

Sort lines of text

        -o FILE Output to FILE
        -c      Check whether input is sorted
        -b      Ignore leading blanks
        -f      Ignore case
        -i      Ignore unprintable characters
        -d      Dictionary order (blank or alphanumeric only)
        -n      Sort numbers
        -g      General numerical sort
        -M      Sort month
        -t CHAR Field separator
        -k N[,M] Sort by Nth field
        -r      Reverse sort order
        -s      Stable (don't sort ties alphabetically)
        -u      Suppress duplicate lines
        -z      Lines are terminated by NUL, not newline
+ sh -c ''"'"'/root/kexec/kexec/kexec'"'"' --load '"'"'/root/kexec/kexec/bzImage'"'"'         --initrd='"'"'/root/kexec/kexec/initrd'"'"' --no-checks   --command-line '"'"'init=/nix/store/wyrp709nwgm1p8wqafysch1j3x79jfmn-nixos-system-nixos-installer-24.05pre-git/init console=tty0 console=ttyS0,115200 root=fstab loglevel=4'"'"
kexec_load failed: Function not implemented
entry       = 0x13fff7760 flags = 0x3e0000
nr_segments = 5
segment[0].buf   = 0x7f3f2ba1d660
segment[0].bufsz = 0x30
segment[0].mem   = 0x100000
segment[0].memsz = 0x1000
segment[1].buf   = 0x7f3f169aa260
segment[1].bufsz = 0x145bbc50
segment[1].mem   = 0x128444000
segment[1].memsz = 0x145bc000
segment[2].buf   = 0x7f3f2af6b0b0
segment[2].bufsz = 0xab1200
segment[2].mem   = 0x13ca00000
segment[2].memsz = 0x35d9000
segment[3].buf   = 0x7f3f1699b290
segment[3].bufsz = 0x50d8
segment[3].mem   = 0x13fff1000
segment[3].memsz = 0x6000
segment[4].buf   = 0x7f3f169a1280
segment[4].bufsz = 0x70e0
segment[4].mem   = 0x13fff7000
segment[4].memsz = 0x9000
kexec failed, dumping dmesg
+ echo 'kexec failed, dumping dmesg'

@phaer
Copy link
Member

phaer commented Aug 22, 2024

At least the second log looks like you're using a kernel without kexec support?

https://wiki.alpinelinux.org/wiki/Kexec tells you how to check

@Mic92
Copy link
Member

Mic92 commented Sep 16, 2024

The first error message is also weird because kexec-tools doesn't use memfd itself, so it is happening in the kernel.

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

3 participants