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

Install virtual box on kali

2025-03-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

I'm used to using vmware workstation on win7, but in kali, I want to try virtual box.

So I inquired about some information, but there are no complete tutorials on the Internet! Here, let's talk about the main points.

In fact, the main points are two, the first is which version should be chosen? The second is how to update the kernel header file correctly!

(1) Let's first go to the official website of virtual box, so which version should we download? You can see many versions here, which one should we choose!

Let's analyze it! Remember that there is an article on the Internet, we have just installed kali, we need to modify the software source! On the list of software sources, the domestic software sources are as follows! You can see a keyword wheezy, and kali these are based on the debian type of system! So where should we choose Debian 7.0 ("Wheezy"), according to your own system bit choice, i386 is 32-bit.

(2) after the download is complete, go to the corresponding directory! Use the following command.

Dpkg-I virtualbox-4.3_4.3.10-92957~Debian~wheezy_i386.deb# here is the installation package for the downloaded virtualbox # after we enter the run command virtualbox

Then we'll see the following error, we still can't run vbox correctly, and tell us to recompile the kernel module. And install vboxdrv.

At this point we try to compile as shown in the above figure I performed (Recompiling VirtualBox kernel moudles. Failede!)

(3) at this time, we have reached a critical step in the installation step. Is how to recompile the kernel module! After looking up the information, we learned that we need to download the new kernel header file.

[1] first of all, we have to modify the software source and change the address to the official updated address of kali.

[Note: after testing, there is no way for domestic software sources to update kernel header files, so when updating, it should be written in the official address]

[2] after that, we will update the catalogue index with apt-get update and apt-get upgrade.

[3] execute the following command apt-get install linux-headers-$ (uname-r)

[4] then re-execute sudo / etc/init.d/vboxdrv setup

[5] run on the terminal, virtualbox can

The command is as follows:

Add the official software source to vi / etc/apt/sources.list# at this time. And comment out the original software source # the official software source is as follows (remember to remove the comment number before deb when copying) # deb http://security.kali.org/kali-security kali/updates main contrib non-free#deb-src http://http.kali.org/kali kali main non-free contrib#deb http://security.kali.org/kali-security kali/updates main contrib non-freeapt-get updateapt-get upgradeapt-get install linux-headers-$ ( Uname-r) sudo / etc/init.d/vboxdrv setup

Execution process picture display

(1) modify the software source, add the official software source, and comment out other software sources

Official

Domestic

(2) after setting up the official software source, you can see that the update of the kernel header file is normal.

With the domestic software source set up, there is no way to find the updated header file.

(3) after updating according to the above steps, you can run it on the terminal.

Previously shown that the failed command was executed successfully and the module was recompiled

(4) the rest is the joy of success.

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

Network Security

Wechat

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

12
Report