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(文件大小会变大)

dnt@MT:~$ ls
Desktop dnt VMwareTools-9.6.2-1688356.tar

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

dnt@MT:~$ ls
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  运行安装包(具体的如下图所示)

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*
root@MT:/home/dnt/vmware-tools-distrib# ./vmware*.pl

参考资料:
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
root@HackerKali:/home# ls
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
or package and will not be modified by this 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 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

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.
[ Press Enter key to continue ]

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?
[yes]

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
Guest operating system daemon: 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#

时间: 2024-09-13 19:53:00

2.Kali安装VMware tools(详细+异常处理)的相关文章

在VMWare上安装ubuntu及VMWare Tools详细教程_VMware

一.摘要 该文主要介绍了如何在虚拟机上安装ubuntu,和安装VMWare Tools设置共享文件夹,最后对ubuntu做了简单的介绍. 二.实验平台 1.VMware Workstation 2.Ubuntu10.04 三.在VMWare上安装ubuntu vmware10安装ubuntu13.10的详细步骤:http://www.jb51.net/os/Ubuntu/160480.html 四.初识ubuntu 1.ubuntu终端 打开终端: Applications-->Accessor

在Red Hat Linux 9下安装VMWare tools

环境 Red Hat Linux 9 + Windows 7 Ultimate +VMWare 7.1 问 题 Red Hat Linux 9安装VMWare tools 解决 1.VM-------- -->Install Vmwaretools---------->等待虚拟机挂载安装文件: 2.进入/mnt/cdrom---------->将VMwareTools-8.4.4-301548.tar.gz 拷贝到桌面: 3.选中VMwareTools-8.4.4-301548.tar.

如何给Ubuntu 安装Vmware Tools

  选择虚拟机菜单栏--安装VMware tools 然后在Ubuntu系统中弹出的VMware tools窗口中 找到VMwaretools-9.6.0-1294478.tar.gz 然后右击--复制到--桌面 复制完之后 这时候左边的文件夹图标--右击退出先 然后在桌面上的VMwaretools-9.6.0-1294478.tar.gz 右击 提取到此处 这时候桌面就多了一个vmware-tools-distrib的文件夹 然后再重新打开左边的文件夹图标 打开之后在右上角有一个搜索 弹出的搜

苹果Mac如何安装vmware tools

  很多Mac电脑用户在安装完Vmare 虚拟机后,还想要得到更好的使用体验,这个号时候,就可以选择在虚拟机上的 Windows 系统中安装 Vmware 虚拟提供的 Tools 工具.当安装了这个工具以后,可以直接在从 Mac 上拖文件到虚拟机中,非常的方便.这里小编简单介绍下Mac安装vmware tools教程. Mac安装vmware tools教程 1.首先请在 Mac 上打开 Vmware 虚拟机,并运行 Windows 系统.等待进入 Windows 系统以后,请点击顶部菜单栏中"

Linux理论03:CentOS6.6安装VMware Tools和配置共享文件夹

文本接上一篇博文,介绍CentOS6.6下安装VMware Tools.配置和Windows宿主机的共享文件夹. 安装VMware Tools VMware Workstation菜单点击虚拟机->安装VMware Tools.CentOS系统桌面会出现一个光盘图标. 双击图标后,复制VMware Tools的tar.gz文件. 打开主文件夹,粘贴. 桌面点击右键->在终端中打开. 输入命令cd ~,tar xzvf VMwareTools-9.9.0-2304977.tar.gz 输入命令s

Unable to find the binary installation directory,安装VMware Tools提示错误

安装VMware Tools错误提示: 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 t

Fedora安装vmware tools步骤详解

Fedora采用的内核和软件比centos要新,稳定性上不及centos,但供个人尝鲜折腾是不错的. vmware中安装了Fedora,在安装vmware tools的时候,同样遇到一些问题. 安装步骤: yum install gcc yum install kernel-devel 检查内核文件的版本是否匹配,如果不匹配需要进行升级 uname -r          # running kernel rpm -q kernel-devel   # installed kernel head

VMware安装VMware Tools遇到的问题

问题: 点击"虚拟机>安装VMware Tools" 弹出: 请确保您已登录客户机操作系统.在客户机中装载虚拟CD驱动器,启动终端,使用tar解压缩安装程序,然后执行vmware-install.pl安装vmware Tools: 客户机操作系统已将 CD-ROM 门锁定,并且可能正在使用 CD-ROM,这可能会导致客户机无法识别介质的更改.如果可能,请在断开连接之前从客户机内部弹出 CD-ROM.确实要断开连接并覆盖锁定设置吗? 然后按官方文档里说的无论怎么挂载都找不到VMwa

【转】VMware中Ubuntu安装VMware Tools

我不是学计算机专业的,但最近认为除了windows之外还应该会个其他的OS,譬如Linux.我首先想到的就是Ubuntu,它应该算是进入Linux殿堂的一个很好的台阶(只是个人观点).于是我就用起了VMware Workstation,先学会在虚拟机中使用Ubuntu,然而其首要任务就是安装VMware Tools,这也是我转载这篇文章的目的--记录下安装VMware Tools的方法. 不多说废话了,下面进入主题(前提是已经能够正常启动Ubuntu): 第一种方法(适用于一般情况):1.安装编