Virtual Machine Installation Tools

Before encountered this problem has not been time to resolve, the game held tomorrow afternoon also considered suddenly idle, and just then the laboratory vmtools make things right.

    After kali inside, install vmtools a little boring, half-way will ask you to compile the kernel headers kernel modules required, but not installed by default. Installation time and can not download headers because there is no source, so we have to do some preparation work.

    First, open the shell, we want to add a source.

vim /etc/apt/sources.list 
or
nano /etc/apt/sources.list

Personally, I still prefer the nano, because memory humble terms.

    Add the following two lines:

http://http.kali.org/kali Kali main non-deb as Free contrib 
deb-src http://http.kali.org/kali as Free Kali main contrib non- 
increase of the source, we update the look-GET APT:
APT -get update
after the update is complete, begin the installation linux-header:
apt-get install gcc make linux- headers - $ (uname -r) 
here because of the different debian kernel version might be different, so use a uname -r command to obtain the version for installation.

    Then we make a link to the file / usr / src / linux-headers - $ (uname -r) / include / linux /, because when vmtools installed by default to find .h files, we do not have to be a link to manually enter the .

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

So far the preparatory work is completed, you can start the installation vmtools.

    Click Virtual Machine menu: VM - Install vmtools, this time inside the virtual machine will automatically load the cd on vmtools, we need to mount it. But generally we use graphical interface, open the "Computer", which has a CD / DVD drive, which has a tar.gz archive, we copy it to the / root on the line.

    Then in the shell:

CD / root 
the tar zxvf the VMwareTools * 
decompression to just copy / root compressed under. Enter the name when we press the TAB padded on the line, do not lose silly.

    After decompression / the root directory on a multi-folder:

cd vmware-tools-distrib/
./vmware-tools-install.pl

cd into the folder, and allows the directory vmware-tools-install.pl. Then automate the installation process begins, all the way to enter will be able to reach the end.

 





Guess you like

Origin www.cnblogs.com/w1023913214/p/11366749.html