天天看点

2.Kali安装VMware tools(详细+异常处理)

dnt@mt:~$ cd /media/cdrom0 进入光驱内

dnt@mt:/media/cdrom0$ ls 查看当前目录下有哪些内容

manifest.txt run_upgrader.sh vmwaretools-9.6.2-1688356.tar.gz vmware-tools-upgrader-32 vmware-tools-upgrader-64

dnt@mt:/media/cdrom0$ cp vmwaretools*.tar.gz /home 拷贝vwtools到home目录下(注意大小写)

dnt@mt:/media/cdrom0$ cd 

dnt@mt:~$ ls

desktop dnt vmwaretools-9.6.2-1688356.tar.gz

dnt@mt:~$ gzip -d vmwaretools*.tar.gz 把.gz解压成tar(文件大小会变大)

desktop dnt vmwaretools-9.6.2-1688356.tar

dnt@mt:~$ tar -xvf vmwaretools*.tar 解压文件并显示详细解压过程

desktop dnt vmwaretools-9.6.2-1688356.tar vmware-tools-distrib

dnt@mt:~$ cd vmware* 进入 vmware-tools-distrib 目录下

dnt@mt:~/vmware-tools-distrib$ ls

bin doc etc files install installer lib vmware-install.pl

dnt@mt:~/vmware-tools-distrib$ su 切换到root账号

密码:

root@mt:/home/dnt/vmware-tools-distrib# ./vmware*.pl  运行安装包(具体的如下图所示)

2.Kali安装VMware tools(详细+异常处理)

root@mt:reboot  重启一下

注意这个情况:(装过tools但失败了)

root@mt:/home/dnt/vmware-tools-distrib# ./vmware*.pl

a previous installation of vmware tools has been detected.

the previous installation was made by the tar installer (version 4).

keeping the tar4 installer database format.

you have a version of vmware tools installed. continuing this install will 

first uninstall the currently installed version. do you wish to continue? 

(yes/no) [yes]

error: unable to find the binary installation directory (answer bindir)

in the installer database file "/etc/vmware-tools/locations".

uninstall failed. please correct the failure and re run the install.

execution aborted.

解决方法:

root@mt:/home/dnt/vmware-tools-distrib# rm -rf /etc/vmware-tools

root@mt:/home/dnt/vmware-tools-distrib# rm -rf /tmp/vm*

2.Kali安装VMware tools(详细+异常处理)

参考资料:

http://blog.sina.com.cn/s/blog_4fd50c390101897e.html

http://kb.vmware.com/selfservice/search.do?cmd=displaykc&doctype=kc&doctypeid=dt_kb_1_1&externalid=2101470

详细信息如下:

root@hackerkali:/media/cdrom0# cp vmwaretools*.tar.gz /home

root@hackerkali:/media/cdrom0# cd

root@hackerkali:~# ls

desktop

root@hackerkali:~# cd /home

root@hackerkali:/home# ls

dnt vmwaretools-9.6.2-1688356.tar.gz

root@hackerkali:/home# gzip -d vmwaretools*.tar.gz

dnt vmwaretools-9.6.2-1688356.tar

root@hackerkali:/home# tar -xvf vmwaretools*.tar

root@hackerkali:/home# cd vmware*

root@hackerkali:/home/vmware-tools-distrib# ls

bin doc etc files install installer lib vmware-install.pl

root@hackerkali:/home/vmware-tools-distrib# ./vmware*.pl

creating a new vmware tools installer database using the tar4 format.

installing vmware tools.

in which directory do you want to install the binary files? 

[/usr/bin]

what is the directory that contains the init directories (rc0.d/ to rc6.d/)? 

[/etc]

what is the directory that contains the init scripts? 

[/etc/init.d]

in which directory do you want to install the daemon files? 

[/usr/sbin]

in which directory do you want to install the library files? 

[/usr/lib/vmware-tools]

the path "/usr/lib/vmware-tools" does not exist currently. this program is 

going to create it, including needed parent directories. is this what you want?

[yes]

in which directory do you want to install the documentation files? 

[/usr/share/doc/vmware-tools] 

the path "/usr/share/doc/vmware-tools" does not exist currently. this program 

is going to create it, including needed parent directories. is this what you 

want? [yes] 

the installation of vmware tools 9.6.2 build-1688356 for linux completed 

successfully. you can decide to remove this software from your system at any 

time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

before running vmware tools for the first time, you need to configure it by 

invoking the following command: "/usr/bin/vmware-config-tools.pl". do you want 

this program to invoke the command for you now? [yes]

initializing...

making sure services for vmware tools are stopped.

stopping thinprint services in the virtual machine:

stopping virtual printing daemon: done

stopping vmware tools services in the virtual machine:

guest operating system daemon: done

unmounting hgfs shares: done

guest filesystem driver: done

update-rc.d: using dependency based boot sequencing

insserv: service cups has to be enabled to start service vmware-tools-thinprint

insserv: exiting now!

update-rc.d: error: insserv rejected the script header

warning: the installer initially used the 'udpate-rc.d' to setup the 

vmware-tools service. that command cannot be found. please re-install the 

'sysv-rc' package. this script will now attempt to manually setup the 

vmware-tools service.the module vmci has already been installed on this system by another installer 

or package and will not be modified by this installer.

the module vsock has already been installed on this system by another installer

the module vmxnet3 has already been installed on this system by another 

installer or package and will not be modified by this installer.

the module pvscsi has already been installed on this system by another 

the module vmmemctl has already been installed on this system by another 

the vmware host-guest filesystem allows for shared folders between the host os 

and the guest os in a fusion or workstation virtual environment. do you wish 

to enable this feature? [yes]

before you can compile modules, you need to have the following installed...

make

gcc

kernel headers of the running kernel

searching for gcc...

detected gcc binary at "/usr/bin/gcc".

the path "/usr/bin/gcc" appears to be a valid path to the gcc binary.

would you like to change it? [no]

searching for a valid kernel header path...

the path "" is not a valid path to the 3.18.0-kali3-amd64 kernel headers.

would you like to change it? [yes] no

warning: this program cannot compile any modules for the following reason(s)...

- this program could not find a valid path to the kernel headers of the running

kernel. please ensure that the header files for the running kernel are 

installed on this sytem.

[ press enter key to continue ]

the filesystem driver (vmhgfs module) is used only for the shared folder 

feature. the rest of the software provided by vmware tools is designed to work 

independently of this feature.

if you wish to have the shared folders feature, you can install the driver by 

running vmware-config-tools.pl again after making sure that gcc, binutils, make

and the kernel sources for your running kernel are installed on your machine. 

these packages are available on your distribution's installation cd.

the vmxnet driver is no longer supported on kernels 3.3 and greater. please 

upgrade to a newer virtual nic. (e.g., vmxnet3 or e1000e)

the vmblock enables dragging or copying files between host and guest in a 

fusion or workstation virtual environment. do you wish to enable this feature?

vmware automatic kernel modules enables automatic building and installation of

vmware kernel modules at boot that are not already present. this feature can be

enabled/disabled by re-running vmware-config-tools.pl.

would you like to enable vmware automatic kernel modules?

[no]

disabling timer-based audio scheduling in pulseaudio.

detected x server version 1.12.4

distribution provided drivers for xorg x server are used.

skipping x configuration because x drivers are not included.

creating a new initrd boot image for the kernel.

update-initramfs: generating /boot/initrd.img-3.18.0-kali3-amd64

starting virtual printing daemon: done

checking acpi hot plug done

starting vmware tools services in the virtual machine:

switching to guest configuration: done

blocking file system: done

the configuration of vmware tools 9.6.2 build-1688356 for linux for this 

running kernel completed successfully.

you must restart your x session before any mouse or graphics changes take 

effect.

you can now run vmware tools by invoking "/usr/bin/vmware-toolbox-cmd" from the

command line.

to enable advanced x features (e.g., guest resolution fit, drag and drop, and 

file and text copy/paste), you will need to do one (or more) of the following:

1. manually start /usr/bin/vmware-user

2. log out and log back into your desktop session; and,

3. restart your x session.

enjoy,

--the vmware team

found vmware tools cdrom mounted at /media/cdrom0. ejecting device /dev/sr0 ...

umount: /media/cdrom0: device is busy.

(in some cases useful info about processes that use

the device is found by lsof(8) or fuser(1))

/usr/bin/eject: unmount of `/media/cdrom0' failed

eject failed: if possible manually eject the tools installer from the guest 

cdrom mounted at /media/cdrom0 before canceling tools install on the host.

root@hackerkali:/home/vmware-tools-distrib#

继续阅读