Kali Installation Vmtools Problem solving

Source: Internet
Author: User
Tags kali linux

Toss a bit Kali system, install Vm-tools when there are several problems, finally resolved, write down standby.

Mount the hard drive, decompression will not say, directly to say the key point.

Install will be prompted to find linux-headers files, direct Apt-get installation will be prompted to find the package, you need to add two source records in Apt source, as follows:

Edit the/etc/apt/sources.list file and add the following two at the end

Deb Http://http.kali.org/kali Kali main non-free contrib
deb-src Http://http.kali.org/kali Kali main Non-free Contrib

And then execute

Apt-get Update

You can install the Linux-headers package, the command is

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

Execute after installation

Ln-s/usr/src/linux-headers-$ (uname-r)/include/generated/uapi/linux/version.h/usr/src/linux-headers-$ (uname-r)/ include/linux/

The problem is solved.

In the final step of the installation, there is also the problem that when you start the Vmtools service, the following prompts appear:

Blocking file system:failed
/etc/init.d/vmware-tools:1185:local: ': Bad variable name

Edit the/etc/init.d/vmware-tools file, 837 lines, and change the Get_version_integer entire function to

# Get the running kernel an integer version
Get_version_integer () {local
  version_uts local
  v1
  Local v2  Local
  v3

  version_uts= ' uname-r '

  # There are no double quote around the back-quoted expression on purpose
  # There is no double quote around $version _uts on purpose
  set ' ifs= '; echo $version _uts ' v1= '
  $ ' v2= '
  $ ' 
  v3= "$"
  # There is no double quote around back-quoted expression on purpose
  # There is no double quote und $v 3 on Purpose
  if [-Z "$v 1"]; then
    v1= "0"
  else
    set ' ifs= '-abcdefghijklmnopqrstuvwxyz_ ABCDEFGHIJKLMNOPQRSTUVWXYZ '; echo $v 1 '
    v1= "$"
  fi
  If [-Z "$v 2"]; then
    v2= "0"
  else
    set ' ifs= '- Abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz '; echo $v 2 '
    v2= "$"
  fi
  If [-Z "$V 3"]; then
    v3= "0"
  else
    set ' ifs= '- Abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz '; echo $v 3 '
    v3= ""
  fi

  Kernel_version_integer "$v 1" "$v 2" "$v 3"
}

Then run vmtools-config-tools.pl, which is located in the bin directory of the Unpacked Vmtools installation package, such as/tmp/vmware-tools-distrib/bin.

Then the reboot is OK.


Reference documents:

Kali Virtual machine installation VMware Tools

Installing Kali Linux as a virtual Machine in virtual Box

Installing VMware Tools on Kali Linux and Some Debugging basics

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.