Kali Linux installation VirtualBox virtual machine Crawl Pit experience

Source: Internet
Author: User
Tags kali linux

Many Kali enthusiasts want to use Kali Linux as a system, but some win programs sometimes need to be used, and virtual machines are needed at this time.

The Kali system will also encounter a lot of pits when installing the virtual machine, followed by my crawl pit process.

Twists

Environment: Kali Linux 2.0 32-bit

Software: VirtualBox Virtual machine

0X01 bash:/etc/init.d/vboxdrv: no file or directory

One of the problems that occurs after installing VirtualBox is the most common kernel issue

The problem with most people online is to follow the instructions below to see the following reminders. However, a variety of online methods can not be solved at once

Error message

Kernel driver not installed (rc=-1908) The VirtualBox Linux Kernel driver (vboxdrv) are either not loaded or there are a perm Ission 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. The keeps track of Linux kernel changes and recompiles the Vboxdrv kernel module if necessary.

The correct solution is as follows (by default under root privileges)

Execute the following command first

Leafpad/etc/apt/sources.list

Replace the source of the software with the official source

# Regular Repositoriesdeb http://http.kali.org/kali sana main non-free contribdeb http://security.kali.org/ Kali-security sana/updates main contrib non-free# Source repositoriesdeb-src http://http.kali.org/kali Sana Main Non-free contribdeb-src http://security.kali.org/kali-security sana/updates main contrib Non-free

Execute command

Apt-get Clean

And then execute

Apt-get update-y && apt-get dist-upgrade-y && apt-get install linux-headers-$ (uname-r)-y && A Pt-get Install Virtualbox-y

The default VirtualBox is installed, and the following command is entered at the command line

VirtualBox

will start VirtualBox, but pop up such a hint, there is also a bug prompt, is to start the rc=-1908 after the prompt (image in the article header)

0x02 installation virtualbox-dkms

Then proceed to execute the command

Apt-get Install virtualbox-dkms

Installing virtualbox-dkms

If the final appearance Dkms:install completed. Indicates that the installation is complete

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

Next into the third fold

0x03 Bogus

First, uninstall the default VirtualBox! Yes, yes! You've got a half-day thing unloaded!

Execute command

Apt-get Remove VirtualBox

Because Kali Linux 2.0 is a custom-built 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 there is 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 download is 5.1.2 version VirtualBox 5.1.2 for Linux

After the download is complete, install via dpkg

Dpkg-i Virtualbox-5.1_5.1.2-108956~debian~jessie_i386.deb

Then start VirtualBox, execute the command

VirtualBox

A new error has occurred

Well, yes, this is to say that the Vboxdrv kernel module is not loaded. The following is not a lot of look, the solution is as follows

0X04 Fix Kernel module issues

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

The problem arises again, but there must be a solution.

See the details of the problem

It's obviously a lack of reliance.

International practice to fix the dependency problem by executing the repair command, execute the following command

Apt-get-f Install

You may need to enter y to confirm the process

Then start the VirtualBox virtual machine again

Perform

VirtualBox

Launch successfully! Attach a picture of the success of the launch!

Kali Linux installation VirtualBox virtual machine Crawl Pit experience

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.