버츄얼 박스, 제가 뭘 잘못한 거죠?

우여곡절 끝에 우분투 22.04를 다시 설치하고,
다른 곳에 이전했던 home 폴더 내의 파일도 다시 가져다 놓았습니다.
그런데 잘 되던 버츄얼박스가 작동이 되지 않습니다. 아래와 같은 글을 내 뿜으면서…

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
‘/sbin/vboxconfig’
as root.

If your system has EFI Secure Boot …

그래서, 터미널에서 실행했더니…
/var/log/vbox-setup.log 로그파일을 살펴 보래요.
그래서 찾아서 열어 봤는데…
무슨 말인지 도무지… 모르겠네요.

혹시 좀 한가하신 분 계시면,
아래 내용을 좀 살펴 봐 주세요.
제가 어떻게 하라고 말하는 것일까요?

미리, 감사드립니다. ^^

===

Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/6.5.0-26-generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j12 modules
make[1]: 경고: 파생된 메이크에서 -j12 옵션이 강제되었습니다: 작업서버 모드를 초기화합니다.
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using:
make -f ./scripts/Makefile.build obj=/tmp/vbox.0 need-builtin=1 need-modorder=1

cmd_mod /tmp/vbox.0/vboxdrv.mod

printf '%s
’ linux/SUPDrv-linux.o SUPDrv.o SUPDrvGip.o SUPDrvSem.o SUPDrvTracer.o SUPLibAll.o common/string/strformatrt.o combined-agnostic1.o combined-agnostic2.o combined-os-specific.o | awk ‘!x[$0]++ { print(“/tmp/vbox.0/”$0) }’ > /tmp/vbox.0/vboxdrv.mod

CC [M] /tmp/vbox.0/linux/SUPDrv-linux.o

gcc-12 -Wp,-MMD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -mno-80387 -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-main -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -falign-functions=16 -Wvla -Wno-pointer-sign -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -g -gdwarf-5 -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV -DIPRT_WITHOUT_EFLAGS_AC_PRESERVING -DVBOX_WITH_64_BITS_GUESTS -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -fsanitize=bounds-strict -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME=‘“SUPDrv_linux”’ -DKBUILD_MODNAME=‘“vboxdrv”’ -D__KBUILD_MODNAME=kmod_vboxdrv -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /tmp/vbox.0/linux/SUPDrv-linux.o
/bin/sh: 1: gcc-12: not found
make[2]: *** [scripts/Makefile.build:251: /tmp/vbox.0/linux/SUPDrv-linux.o] 오류 127
make[1]: *** [Makefile:2039: /tmp/vbox.0] 오류 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:133: vboxdrv] 오류 2

#버츄얼박스#virtualbox#

CPU 가상화 기능을 사용하기 위해 커널 모듈을 컴파일 하는중에
GCC를 찾지 못해서 발생하는 에러로그 입니다.

/bin/sh: 1: gcc-12: not found

아래 명령어로 설치하시면 됩니다.

$ sudo apt-get install gcc-12
1개의 좋아요

역쒸~~~~~
진정, 강호의 고수이십니다 !!!
문제 완벽하게 해결 했습니다.
그것도 한 방에!!!
진정으로 감사드립니다!