Kali2023安装VirtualBox7.0

文章讲述了在Kali系统中安装虚拟机时遇到启动报错,需执行vboxconfig进行配置,发现缺少kernel头文件。通过手动安装相关包(如linux-headers)和build-essential,成功解决并重启配置后,虚拟机启动成功。

在kali系统安装虚拟机过程,启动镜像报错,需要执行/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系统镜像启动成功。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值