virtual box Kernel driver not installed "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/821641f011cc895431422a3ecc4ecc9b.png) Kernel driver not installed (rc=-1908) 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 enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. *** "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/294f876f6d6e2b4e30f45f451bb3d535.png) "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/12334e8945d062783ff095e5ff7fd389.png) 本来好好的,今天突然打不开这个 win10 虚拟机了 是不是 virtualbox 还不支持这个 linux 内盒版本 «virtualbox 已经升级到最新» *** ╭─pon@amd5700g ~/Downloads ╰─➤ sudo /sbin/rcvboxdrv setup 1 ↵ vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong. ╭─pon@amd5700g ~/Downloads ╰─➤ cat /var/log/vbox-setup.log 1 ↵ 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-15-generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j16 modules make[1]: 警告: 子 make 中强制 -j16: 重置 jobserver 模式。 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[2]: *** 正在等待未完成的任务.... # CC [M] /tmp/vbox.0/SUPDrv.o gcc-12 -Wp,-MMD,/tmp/vbox.0/.SUPDrv.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"' -DKBUILD_MODNAME='"vboxdrv"' -D__KBUILD_MODNAME=kmod_vboxdrv -c -o /tmp/vbox.0/SUPDrv.o /tmp/vbox.0/SUPDrv.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /tmp/vbox.0/SUPDrv.o /bin/sh: 1: gcc-12: not found make[2]: *** [scripts/Makefile.build:251:/tmp/vbox.0/SUPDrv.o] 错误 127 make[1]: *** [Makefile:2037:/tmp/vbox.0] 错误 2 make: *** [/tmp/vbox.0/Makefile-footer.gmk:133:vboxdrv] 错误 2
1. 缘由 初玩 home assistant。 使用我的 intel 的 MacBook Air 安装 Home Assistant 。 因为 Docker 安装的话,没有解决网络问题,卡在 iPhone 扫码加入 HomeKit 时,找不到设备。 后来决定使用虚拟机安装,官网推荐 VirtualBox。 2. 问题描述? «电脑本身是开了代理的,之前用 Docker 安装时是可以执行命令安装的,我怀疑是网络问题,Wi-Fi 不行我知道,还专门买了一个网线转接头。» Home Assistant 安装好了,又安装了一个 "Terminal & SSH" 工具,使用"官网" (官网: https://link.segmentfault.com/?enc=wtdC3gp4xeDE25%2BCHIeQdQ%3D%3D.PoqqIwb94KgIjxMg3Z7ske4t78a7IHsSCpz3%2B5ouZxVqY8UvO2VVpV6MbyF2LYaL)给的命令 wget -O - https://get.hacs.xyz | bash - 不行又试了试 wget -O - https://raw.githubusercontent.com/hacs/get/main/get | bash - 依然报错 "VirtualBox 安装的 Home Assistan 中使用 Terminal 安装 HACS 时报错 connection refused" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241030/6db3bddd54052d7f02e48107fac0554b.png) * 我看到网上有文章说用 samba 本地安装,还没有试。 * 还有使用 UTM 安装 Home Assistant 的,但是虚拟机都需要解决网络问题吧。 还有一个疑问,本地开的代理桥接网络,虚拟机是走的代理网络吗