Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the virtualbox virtual machine in kali Linux

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install the virtualbox virtual machine in kali Linux. It is very detailed and has some reference value. If you are interested, you must finish it.

Environment: kali linux 2.032-bit

Software: virtualbox virtual machine

0x01 bash: / etc/init.d/vboxdrv: there is no such file or directory

One of the most common problems that occur after installing virtualbox is the kernel

The problem for most people on the Internet is to execute the following command and the following reminder appears. However, a wide variety of online methods can not be solved at once.

Error message:

Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with / dev/vboxdrv. Please reinstall the kernel module by executing'/ etc/init.d/vboxdrv setup' as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

The correct solution is as follows (operated under root permission by default).

Execute the following command first:

Leafpad / etc/apt/sources.list

Replace the software source with the official source:

# Regular Repositories deb http://http.kali.org/kali sana main non-free contrib deb http://security.kali.org/kali-security sana/updates main contrib non-free # Source Repositories deb-src http://http.kali.org/kali sana main non-free contrib deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

Execute the command:

Apt-get clean

Then execute:

Apt-get update-y & & apt-get dist-upgrade-y & & apt-get install linux-headers-$ (uname-r)-y & & apt-get install virtualbox-y

The default virtualbox is installed, and enter the following command at the command line:

Virtualbox

Virtualbox will be launched, but this prompt will pop up, and there is also an error prompt for rc=-1908 after startup (the picture is at the beginning of the article).

0x02 install virtualbox-dkms

Next, continue to execute the command:

Apt-get install virtualbox-dkms

Install virtualbox-dkms

If DKMS: install completed appears. Indicates that the installation is complete

At this point, you find that you still can't solve the problem, but you just make a mistake.

Next, enter the third discount.

0x03 steals the sky for a change.

Uninstall the default virtualbox first! Yeah, that's right! Unload what you've been loading for a long time!

Execute the command:

Apt-get remove virtualbox

Because kali linux 2.0 is a customized system based on Debian Jessie. So go to the official website to download the Jessis version of virtualbox

Official website:

Https://www.virtualbox.org/wiki/Linux_Downloads

Or

Directly execute the lazy command to download (if you have an updated version, please go to the official website to download):

Wget http://download.virtualbox.org/virtualbox/5.1.2/virtualbox-5.1_5.1.2-108956~Debian~jessie_i386.deb

The current lazy link downloads the 5.1.2 version of VirtualBox 5.1.2 for Linux

After the download is complete, install it through dpkg

Dpkg-I virtualbox-5.1_5.1.2-108956~Debian~jessie_i386.deb

Then start virtualbox and execute the command

Virtualbox

A new error has occurred:

Well, yes, this means that the vboxdrv kernel module is not loaded. Don't look at a lot of things below, and the solutions are as follows

0x04 fixes kernel module problems

Apt-get install linux-headers-$ (uname-r)

The problem arises again, but it must be solvable.

Look at the details of the question:

It's obviously a lack of dependence.

It is international practice to execute repair commands to fix dependency problems, execute the following command:

Apt-get-f install

You may need to enter y confirmation during the process.

Then start the virtualbox virtual machine again.

Execute:

Virtualbox above is all the contents of the article "how to install the virtualbox virtual machine in kali Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report