VMware 工具已安装但无法运行

VMware 工具已安装但无法运行

我已经VMwareTools-10.0.5-3228253.tar.gz使用本指南成功安装在 Kali Linux 滚动发行版 2016.1 上:

https://github.com/rasa/vmware-tools-patches

  1. 放在VMwareTools-10.0.5-3228253.tar.gz桌面上名为“new”的文件夹中
  2. 在终端上运行这个git clone https://github.com/rasa/vmware-tools- patches.git
  3. 将文件夹内容复制vmware-tools-patches到桌面上的“new”文件夹中
  4. 在“new”文件夹中打开终端并运行此命令./untar-and-patch-and-compile.sh
  5. 在同一终端上完成后运行此命令./compile.sh
  6. 解压VMwareTools-10.0.5-3228253.tar.gz到另一个文件夹并在该文件夹中打开终端并运行./vmware-install.pl
  7. 重新启动虚拟机

在此之前,我运行apt-get update && apt-get upgrade -y以确保所有内容均已更新并使用apt-get install linux-headers-$(uname -r).我尝试了很多时间安装它,第一次安装后必须先卸载它才能重新安装它,但我不认为它会导致这个问题,但我不确定。我无法使用拖放功能将任何文件复制到 Windows 10 主机或从 Windows 10 主机复制到 Kali Linux VM,也无法复制/粘贴文本等。

以下是我的来宾虚拟机 (VMware Workstation 12.1) 中当前运行的服务

root@kali:~# lsmod
Module                  Size  Used by
nls_utf8               16384  1
isofs                  40960  1
udf                    90112  0
crc_itu_t              16384  1 udf
bnep                   20480  2
vmw_vsock_vmci_transport    28672  0
vsock                  36864  1 vmw_vsock_vmci_transport
fuse                   94208  9
nfnetlink_queue        20480  0
nfnetlink_log          20480  0
nfnetlink              16384  2 nfnetlink_log,nfnetlink_queue
bluetooth             512000  5 bnep
rfkill                 24576  4 bluetooth
binfmt_misc            20480  1
snd_ens1371            28672  4
snd_rawmidi            32768  1 snd_ens1371
snd_seq_device         16384  1 snd_rawmidi
snd_ac97_codec        126976  1 snd_ens1371
snd_pcm               102400  2 snd_ac97_codec,snd_ens1371
snd_timer              32768  1 snd_pcm
snd                    81920  14          snd_ac97_codec,snd_timer,snd_pcm,snd_rawmidi,snd_ens1371,snd_seq_device
soundcore              16384  1 snd
iosf_mbi               16384  0
ac97_bus               16384  1 snd_ac97_codec
evdev                  20480  6
ppdev                  20480  0
psmouse               126976  0
pcspkr                 16384  0
gameport               16384  1 snd_ens1371
serio_raw              16384  0
coretemp               16384  0
vmw_balloon            16384  0
sg                     32768  0
parport_pc             28672  0
parport                49152  2 ppdev,parport_pc
vmwgfx                233472  3
ttm                    94208  1 vmwgfx
8250_fintek            16384  0
nfit                   32768  0
battery                16384  0
drm_kms_helper        131072  1 vmwgfx
drm                   348160  6 ttm,drm_kms_helper,vmwgfx
vmw_vmci               65536  1 vmw_vsock_vmci_transport
shpchp                 36864  0
acpi_cpufreq           20480  0
i2c_piix4              24576  0
processor              36864  1 acpi_cpufreq
ac                     16384  0
button                 16384  0
autofs4                40960  2
ext4                  577536  1
crc16                  16384  2 ext4,bluetooth
mbcache                20480  1 ext4
jbd2                  106496  1 ext4
vmw_pvscsi             24576  0
vmxnet3                53248  0
hid_generic            16384  0
usbhid                 49152  0
hid                   118784  2 hid_generic,usbhid
sd_mod                 40960  3
sr_mod                 24576  1
cdrom                  57344  1 sr_mod
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ata_generic            16384  0
crc32c_intel           24576  0
jitterentropy_rng      16384  0
sha256_ssse3           28672  1
sha256_generic         24576  1 sha256_ssse3
hmac                   16384  1
drbg                   24576  1
ansi_cprng             16384  0
aesni_intel           167936  0
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
cryptd                 20480  2 aesni_intel,ablk_helper
mptspi                 24576  2
scsi_transport_spi     32768  1 mptspi
uhci_hcd               45056  0
ehci_pci               16384  0
ata_piix               36864  1
ehci_hcd               77824  1 ehci_pci
mptscsih               32768  1 mptspi
libata                233472  2 ata_generic,ata_piix
mptbase                77824  2 mptspi,mptscsih
usbcore               233472  4 uhci_hcd,ehci_hcd,ehci_pci,usbhid
e1000                 135168  0
usb_common             16384  1 usbcore
scsi_mod              229376  8     sg,scsi_transport_spi,libata,mptspi,vmw_pvscsi,sd_mod,sr_mod,mptscsih

更新我运行时的输出apt-get install open-vm-tools仍然没有任何区别。

root@kali:~# apt-get install open-vm-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
libxerces-c3.1 libxml-security-c17v5
Suggested packages:
open-vm-tools-desktop
The following NEW packages will be installed:
libxerces-c3.1 libxml-security-c17v5 open-vm-tools
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 1,644 kB of archives.
After this operation, 6,918 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64     libxerces-c3.1 amd64 3.1.2+debian-1 [851 kB]
Get:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64   libxml-security-c17v5 amd64 1.7.3-1 [265 kB]                
Get:3 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64   open-vm-tools amd64 2:10.0.5-3227872-2 [528 kB]             
Fetched 1,644 kB in 2min 24s (11.4 kB/s)                                                                                          
Selecting previously unselected package libxerces-c3.1:amd64.
(Reading database ... 310318 files and directories currently installed.)
Preparing to unpack .../libxerces-c3.1_3.1.2+debian-1_amd64.deb ...
Unpacking libxerces-c3.1:amd64 (3.1.2+debian-1) ...
Selecting previously unselected package libxml-security-c17v5:amd64.
Preparing to unpack .../libxml-security-c17v5_1.7.3-1_amd64.deb ...
Unpacking libxml-security-c17v5:amd64 (1.7.3-1) ...
Selecting previously unselected package open-vm-tools.
Preparing to unpack .../open-vm-tools_2%3a10.0.5-3227872-2_amd64.deb ...
Unpacking open-vm-tools (2:10.0.5-3227872-2) ...
Processing triggers for libc-bin (2.21-6) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (228-4) ...
Setting up libxerces-c3.1:amd64 (3.1.2+debian-1) ...
Setting up libxml-security-c17v5:amd64 (1.7.3-1) ...
Setting up open-vm-tools (2:10.0.5-3227872-2) ...

Configuration file '/etc/vmware-tools/poweroff-vm-default'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z     : start a shell to examine the situation
  The default action is to keep your current version.
 *** poweroff-vm-default (Y/I/N/O/D/Z) [default=N] ? y
 Installing new version of config file /etc/vmware-tools/poweroff- vm-default ...

Configuration file '/etc/vmware-tools/poweron-vm-default'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z     : start a shell to examine the situation
  The default action is to keep your current version.
 *** poweron-vm-default (Y/I/N/O/D/Z) [default=N] ? y
 Installing new version of config file /etc/vmware-tools/poweron-  vm-default ...

Configuration file '/etc/vmware-tools/resume-vm-default'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z     : start a shell to examine the situation
 The default action is to keep your current version.
 *** resume-vm-default (Y/I/N/O/D/Z) [default=N] ? y
 Installing new version of config file /etc/vmware-tools/resume-vm-default ...

Configuration file '/etc/vmware-tools/scripts/vmware/network'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z     : start a shell to examine the situation
 The default action is to keep your current version.
 *** network (Y/I/N/O/D/Z) [default=N] ? y
 Installing new version of config file /etc/vmware-tools/scripts/vmware /network ...

Configuration file '/etc/vmware-tools/statechange.subr'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z     : start a shell to examine the situation
 The default action is to keep your current version.
 *** statechange.subr (Y/I/N/O/D/Z) [default=N] ? y
 Installing new version of config file /etc/vmware-tools/statechange.subr ...

Configuration file '/etc/vmware-tools/suspend-vm-default'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z     : start a shell to examine the situation
 The default action is to keep your current version.
 *** suspend-vm-default (Y/I/N/O/D/Z) [default=N] ? y
 Installing new version of config file /etc/vmware-tools/suspend-vm-default ...

Configuration file '/etc/vmware-tools/vgauth.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z     : start a shell to examine the situation
 The default action is to keep your current version.
 *** vgauth.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/vmware-tools/vgauth.conf ...
update-rc.d: We have no instructions for the open-vm-tools init script.
update-rc.d: It looks like a non-network service, we enable it.
Processing triggers for libc-bin (2.21-6) ...
Processing triggers for systemd (228-4) ...
root@kali:~# 

答案1

如果您已open-vm-tools安装,请先将其删除,然后尝试:

sudo apt-get install libfuse-dev
sudo apt-get install open-vm-tools-desktop fuse

这让我使用 kali 启动并运行

user@user:~$ uname -r
4.6.0-kali1-amd64
user@user:~$ uname -a
Linux mrRobot 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux

答案2

Kali Linux 2.0 是基于 Debian 8.0 的滚动版本。 VMWare 建议对 Debian 8.0 使用 open-vm-tools。

请参阅 VMWare 支持文章,了解有关如何安装 open-vm-tools 的更多信息和说明

http://partnerweb.vmware.com/GOSIG/Debian_8.html

Kali Linux 2.0 是基于 Debian 8.0 的滚动版本。 VMWare 建议对 Debian 8.0 使用 open-vm-tools。

请参阅 VMWare 支持文章,了解有关如何安装 open-vm-tools 的更多信息和说明

http://partnerweb.vmware.com/GOSIG/Debian_8.html

Open VM Tools 是 VMware Tools 的开源实现,由一套虚拟化实用程序组成,可改进 VMware 虚拟机管理程序上虚拟机的功能、管理和管理。 VMware 建议使用操作系统供应商重新分发的 Open VM Tools。有关更多信息,请参阅知识库文章 2073803,VMware support of open-vm-tools,网址为http://kb.vmware.com/kb/2073803

安装开放虚拟机工具

  1. 将以下行添加到 /etc/apt/sources.list 文件中。德布http://ftp.debian.org/debian/杰西主要贡献
  2. 运行命令: $ sudo apt-get update $ sudo apt-get install open-vm-tools

  3. 将以下行添加到 /etc/apt/sources.list 文件中。德布http://ftp.debian.org/debian/杰西主要贡献

  4. 运行命令: $ sudo apt-get update $ sudo apt-get install open-vm-tools

相关内容