ZealOS icon indicating copy to clipboard operation
ZealOS copied to clipboard

modprobe: FATAL: Module nbd not found

Open billyblackburn opened this issue 1 year ago • 9 comments

⬢[bly@toolbox build]$ sh build-iso.sh Building ZealBooter... rm -rf zealbooter.elf ./lib.o ./lib/memcmp.o ./lib/memcpy.o ./lib/memmove.o ./lib/memset.o ./lib/print.o ./lib/strcmp.o ./lib/strcpy.o ./lib/strlen.o ./lib/strncmp.o ./lib/strncpy.o ./zealbooter.o ./trampoline.o ./lib.d ./lib/memcmp.d ./lib/memcpy.d ./lib/memmove.d ./lib/memset.d ./lib/print.d ./lib/strcmp.d ./lib/strcpy.d ./lib/strlen.d ./lib/strncmp.d ./lib/strncpy.d ./zealbooter.d ./trampoline.d rm -f limine.h curl -Lo limine.h https://github.com/limine-bootloader/limine/raw/trunk/limine.h || cp ../build/limine/limine.h limine.h || echo "ERROR" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 14286 100 14286 0 0 27734 0 --:--:-- --:--:-- --:--:-- 27734 cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib.c -o lib.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/memcmp.c -o lib/memcmp.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/memcpy.c -o lib/memcpy.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/memmove.c -o lib/memmove.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/memset.c -o lib/memset.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/print.c -o lib/print.o In file included from lib/print.c:4: ./lib/stb_sprintf.h: In function ‘vsprintfcb’: ./lib/stb_sprintf.h:594:51: warning: operand of ‘?:’ changes signedness from ‘int’ to ‘unsigned int’ due to unsignedness of other operand [-Wsign-compare] 594 | l = stbsp__strlen_limited(s, (pr >= 0) ? pr : ~0u); | ^~ ./lib/stb_sprintf.h:630:11: warning: value computed is not used [-Wunused-value] 630 | ((double)((va->overflow_arg_area += 8, va->overflow_arg_area - 8))); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/print.c: At top level: lib/print.c:7:24: warning: ‘limine_terminal_request’ is deprecated [-Wdeprecated-declarations] 7 | static volatile struct limine_terminal_request terminal_request = { | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from lib/print.c:5: ./limine.h:227:26: note: declared here 227 | struct LIMINE_DEPRECATED limine_terminal_request { | ^~~~~~~~~~~~~~~~~~~~~~~ lib/print.c: In function ‘printf’: lib/print.c:18:12: warning: ‘limine_terminal’ is deprecated [-Wdeprecated-declarations] 18 | struct limine_terminal terminal; | ^~~~~~~~~~~~~~~ ./limine.h:214:26: note: declared here 214 | struct LIMINE_DEPRECATED limine_terminal { | ^~~~~~~~~~~~~~~ cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/strcmp.c -o lib/strcmp.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/strcpy.c -o lib/strcpy.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/strlen.c -o lib/strlen.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/strncmp.c -o lib/strncmp.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c lib/strncpy.c -o lib/strncpy.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c zealbooter.c -o zealbooter.o cc -g -O2 -pipe -Wall -Wextra -std=gnu11 -ffreestanding -fno-stack-protector -fno-stack-check -fno-lto -fno-PIE -fno-PIC -m64 -march=x86-64 -mabi=sysv -mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone -mcmodel=kernel -I. -I./lib -MMD -MP -c trampoline.S -o trampoline.o ld ./lib.o ./lib/memcmp.o ./lib/memcpy.o ./lib/memmove.o ./lib/memset.o ./lib/print.o ./lib/strcmp.o ./lib/strcpy.o ./lib/strlen.o ./lib/strncmp.o ./lib/strncpy.o ./zealbooter.o ./trampoline.o -nostdlib -static -m elf_x86_64 -z max-page-size=0x1000 -T linker.ld -no-pie -o zealbooter.elf ld: warning: ./trampoline.o: missing .note.GNU-stack section implies executable stack ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker Making temp vdisk, running auto-install ... Formatting '/tmp/zealtmp/ZealOS.raw', fmt=raw size=1073741824 Copying all src/ code into vdisk Tmp/OSBuild/ ... modprobe: FATAL: Module nbd not found in directory /lib/modules/6.3.8-200.fc38.x86_64 qemu-nbd: Failed to open /dev/nbd0: No such file or directory Error: Could not stat device /dev/nbd0 - No such file or directory. mount: /tmp/zealtmp/mnt: permission denied. dmesg(1) may have more information after failed mount system call. mkdir: cannot create directory ‘/tmp/zealtmp/mnt/Tmp/OSBuild/’: No such file or directory cp: target '/tmp/zealtmp/mnt/Tmp/OSBuild': No such file or directory umount: /tmp/zealtmp/mnt: not mounted. qemu-nbd: Cannot open /dev/nbd0: No such file or directory Rebuilding kernel headers, kernel, OS, and building Distro ISO ... Already on 'v4.x-branch-binary' Your branch is up to date with 'origin/v4.x-branch-binary'. Already up to date. rm: remove write-protected regular file 'limine-deploy'? n rm: remove write-protected regular file 'limine-version'? n make: Entering directory '/var/home/bly/ZealOS/build/limine' make: Nothing to be done for 'all'. make: Leaving directory '/var/home/bly/ZealOS/build/limine' cat: limine/LICENSE.md: No such file or directory modprobe: FATAL: Module nbd not found in directory /lib/modules/6.3.8-200.fc38.x86_64 qemu-nbd: Failed to open /dev/nbd0: No such file or directory Error: Could not stat device /dev/nbd0 - No such file or directory. mount: /tmp/zealtmp/mnt: permission denied. dmesg(1) may have more information after failed mount system call. Extracting MyDistro ISO from vdisk ... cp: cannot stat '/tmp/zealtmp/mnt/Tmp/MyDistro.ISO.C': No such file or directory Setting up temp ISO directory contents for use with limine xorriso command ... cp: cannot stat '/tmp/zealtmp/mnt/': No such file or directory cp: cannot create regular file '/tmp/zealtmp/iso/Boot/Limine-HDD.HH': No such file or directory cp: cannot create regular file '/tmp/zealtmp/iso/Boot/Limine-CD-EFI.BIN': No such file or directory cp: cannot create regular file '/tmp/zealtmp/iso/Boot/Limine-CD.BIN': No such file or directory cp: cannot create regular file '/tmp/zealtmp/iso/Boot/Limine.SYS': No such file or directory cp: cannot create regular file '/tmp/zealtmp/iso/Boot/ZealBooter.ELF': No such file or directory cp: cannot create regular file '/tmp/zealtmp/iso/Boot/Limine.CFG': No such file or directory Copying DVDKernel.ZXE over ISO Boot/Kernel.ZXE ... mv: cannot stat '/tmp/zealtmp/mnt/Tmp/DVDKernel.ZXE': No such file or directory umount: /tmp/zealtmp/mnt: not mounted. qemu-nbd: Cannot open /dev/nbd0: No such file or directory xorriso 1.5.4 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:ZealOS-limine.iso' Media current: stdio file, overwriteable Media status : is blank Media summary: 0 sessions, 0 data blocks, 0 data, 740g free Added to ISO image: directory '/'='/tmp/zealtmp/iso' xorriso : UPDATE : 3 files added in 1 seconds xorriso : FAILURE : Cannot find in ISO image: -boot_image ... bin_path='/Boot/Limine-CD.BIN' xorriso : UPDATE : 3 files added in 1 seconds xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE' ERROR: No such file or directory mv: cannot stat './ZealOS-MyDistro.iso': No such file or directory mv: cannot stat './ZealOS-limine.iso': No such file or directory Deleting temp folder ... Finished.

ISOs built:

???????????????????????????????????????????????????????

billyblackburn avatar Jun 19 '23 00:06 billyblackburn

error log has "modprobe: FATAL: Module nbd not found" , how do you have qemu-nbd installed

GutPuncher avatar Jun 19 '23 00:06 GutPuncher

Did you make sure to follow the wiki and install all prerequisites https://github.com/Zeal-Operating-System/ZealOS/wiki/Building-an-ISO#instructions-linux

GutPuncher avatar Jun 19 '23 00:06 GutPuncher

trying now

billyblackburn avatar Jun 19 '23 01:06 billyblackburn

error log has "modprobe: FATAL: Module nbd not found" , how do you have qemu-nbd installed

qemu-nbd is installed but it says it missing a module im trying to install kernel modules now

billyblackburn avatar Jun 19 '23 01:06 billyblackburn

qemu-nbd: Cannot open /dev/nbd0: No such file or directory

billyblackburn avatar Jun 19 '23 01:06 billyblackburn

modprobe: FATAL: Module nbd not found in directory /lib/modules/6.3.8-200.fc38.x86_64 qemu-nbd: Failed to open /dev/nbd0: No such file or directory Error: Could not stat device /dev/nbd0 - No such file or directory. mount: /tmp/zealtmp/mnt: permission denied. dmesg(1) may have more information after failed mount system call.

On Sun, Jun 18, 2023 at 8:57 PM Arsenic Blood @.***> wrote:

Did you make sure to follow the wiki and install all prerequisites

https://github.com/Zeal-Operating-System/ZealOS/wiki/Building-an-ISO#instructions-linux

— Reply to this email directly, view it on GitHub https://github.com/Zeal-Operating-System/ZealOS/issues/110#issuecomment-1596335560, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYOVOXDLERHR32F57AOEZDXL6PWNANCNFSM6AAAAAAZLHCHQA . You are receiving this because you authored the thread.Message ID: @.***>

billyblackburn avatar Jun 19 '23 01:06 billyblackburn

Please try the command listed here https://github.com/RPi-Distro/pi-gen/issues/499#issuecomment-980517599 (another issue on a different project with same error message as what you got) sudo modprobe nbd what output does that give, does it work to build ISO after running that command

GutPuncher avatar Jun 19 '23 04:06 GutPuncher

(After you install nbd, you might need to reboot linux to have the new kernel module(s) be fully functional)

GutPuncher avatar Jun 19 '23 04:06 GutPuncher

@billyblackburn it appears that you are running Fedora 38. Can you try running the following command?

sudo dnf install qemu-img

Midnoclose avatar Jul 13 '23 05:07 Midnoclose