KALI linux 安装VirtualBox
安装虚拟机,可是碰到了虚拟机无法启动的问题:界面上会弹出一个错误对话框,错误信息如下:Kernel driver not installed (rc=-1908)The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vbox
·
安装虚拟机,可是碰到了虚拟机无法启动的问题:
界面上会弹出一个错误对话框,错误信息如下:
root@localhost:~/Desktop# virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.14-kali1-686-pae) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
root@localhost:~/Desktop# sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
root@localhost:~/Desktop# cat /var/log/vbox-install.log
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
root@localhost:~/Desktop#
root@localhost:~/Desktop# apt-get install dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-headers-3.14-kali1-686-pae linux-headers-3.14-kali1-common
linux-headers-686-pae linux-kbuild-3.14
Recommended packages:
linux-image
The following NEW packages will be installed:
dkms linux-headers-3.14-kali1-686-pae linux-headers-3.14-kali1-common
linux-headers-686-pae linux-kbuild-3.14
0 upgraded, 5 newly installed, 0 to remove and 48 not upgraded.
Need to get 5,076 kB of archives.
After this operation, 33.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrors.ustc.edu.cn/kali/ kali/main dkms all 2.2.0.3-1.2 [77.4 kB]
Get:2 http://mirrors.ustc.edu.cn/kali/ kali/main linux-headers-3.14-kali1-common i386 3.14.5-1kali2 [4,312 kB]
Get:3 http://mirrors.ustc.edu.cn/kali/ kali/main linux-kbuild-3.14 i386 3.14-1kali1 [247 kB]
Get:4 http://mirrors.ustc.edu.cn/kali/ kali/main linux-headers-3.14-kali1-686-pae i386 3.14.5-1kali2 [435 kB]
Get:5 http://mirrors.ustc.edu.cn/kali/ kali/main linux-headers-686-pae i386 3.14+57+kali1 [5,002 B]
Fetched 5,076 kB in 1min 9s (72.6 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 334433 files and directories currently installed.)
Unpacking dkms (from .../dkms_2.2.0.3-1.2_all.deb) ...
Selecting previously unselected package linux-headers-3.14-kali1-common.
Unpacking linux-headers-3.14-kali1-common (from .../linux-headers-3.14-kali1-common_3.14.5-1kali2_i386.deb) ...
Selecting previously unselected package linux-kbuild-3.14.
Unpacking linux-kbuild-3.14 (from .../linux-kbuild-3.14_3.14-1kali1_i386.deb) ...
Selecting previously unselected package linux-headers-3.14-kali1-686-pae.
Unpacking linux-headers-3.14-kali1-686-pae (from .../linux-headers-3.14-kali1-686-pae_3.14.5-1kali2_i386.deb) ...
Selecting previously unselected package linux-headers-686-pae.
Unpacking linux-headers-686-pae (from .../linux-headers-686-pae_3.14+57+kali1_i386.deb) ...
Processing triggers for man-db ...
Setting up dkms (2.2.0.3-1.2) ...
Setting up linux-headers-3.14-kali1-common (3.14.5-1kali2) ...
Setting up linux-kbuild-3.14 (3.14-1kali1) ...
Setting up linux-headers-3.14-kali1-686-pae (3.14.5-1kali2) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.14-kali1-686-pae
Setting up linux-headers-686-pae (3.14+57+kali1) ...
root@localhost:~/Desktop# virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.14-kali1-686-pae) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
root@localhost:~/Desktop# apt-get install linux-
linux-base linux-image-3.12-kali1-rt-686-pae-dbg
linux-compiler-gcc-4.8-x86 linux-image-3.14-kali1-486
linux-doc linux-image-3.14-kali1-686-pae
linux-doc-3.12 linux-image-3.14-kali1-686-pae-dbg
linux-doc-3.14 linux-image-3.14-kali1-amd64
linux-exploit-suggester linux-image-3.14-kali1-rt-686-pae
linux-headers-3.12-kali1-486 linux-image-3.14-kali1-rt-686-pae-dbg
linux-headers-3.12-kali1-686-pae linux-image-486
linux-headers-3.12-kali1-all linux-image-686-pae
linux-headers-3.12-kali1-all-i386 linux-image-686-pae-dbg
linux-headers-3.12-kali1-amd64 linux-image-amd64
linux-headers-3.12-kali1-common linux-image-rt-686-pae
linux-headers-3.12-kali1-common-rt linux-image-rt-686-pae-dbg
linux-headers-3.12-kali1-rt-686-pae linux-kbuild-3.12
linux-headers-3.14-kali1-486 linux-kbuild-3.14
linux-headers-3.14-kali1-686-pae linux-libc-dev
linux-headers-3.14-kali1-all linux-manual-3.12
linux-headers-3.14-kali1-all-i386 linux-manual-3.14
linux-headers-3.14-kali1-amd64 linux-patch-debianlogo
linux-headers-3.14-kali1-common linux-patch-grsecurity2
linux-headers-3.14-kali1-common-rt linux-patch-xenomai
linux-headers-3.14-kali1-rt-686-pae linux-source
linux-headers-486 linux-source-3.12
--More--^C
root@localhost:~/Desktop# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.14-kali1-686-pae is already the newest version.
linux-headers-3.14-kali1-686-pae set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.
root@localhost:~/Desktop#
root@localhost:~/Desktop#
root@localhost:~/Desktop#
root@localhost:~/Desktop# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.
root@localhost:~/Desktop#
root@localhost:~/Desktop#
更多推荐
已为社区贡献2条内容
所有评论(0)