Kali2023 安装VirtualBox7.0
转置:https://blog.csdn.net/lmpwang/article/details/132502884
下载 VirtualBox7.0 https://download.virtualbox.org/virtualbox/7.0.12/virtualbox-7.0_7.0.12-159484~Debian~bookworm_amd64.deb
安装 dpkg -i virtualbox-7.0_7.0.12-159484~Debian~bookworm_amd64.deb
启动镜像报错,需要执行/sbin/vboxconfig,看来需要执行配置,执行报错
/sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-amd64 linux-headers-6.3.0-kali1-amd64
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-amd64 linux-headers-6.3.0-kali1-amd64
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may 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.
看报错内核竟然缺少header,不可思议
dpkg-query -s linux-headers-$(uname -r)
dpkg-query: package 'linux-headers-6.3.0-kali1-amd64' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
看来只能手动安装,查询发现需要依赖build-essential
sudo apt-get install libqt5concurrent5
sudo apt-get install build-essential
sudo apt install linux-headers-6.3.0-kali1-amd64
再次执行配置
/sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
至此VirtualBox系统镜像启动成功。

浙公网安备 33010602011771号