当前位置:   article > 正文

如何在Linux上安装VMware Tools Debian,Ubuntu,Kali,Mint,Fedora,CentOS,RHEL发行版

it appears your system is missing the required /usr/bin/vmhgfs-fuse

VMware is one of the best virtualization company. Especially in the desktop based virtualization it provides far more features than its competitors. VMware provides some tools to make virtualization experience more smooth. These tools are called VMware Tools. In this tutorial we will look how to install these tools into Linux distributions like Debian, Ubuntu, Mint, Kali but this will work for Fedora, CentOS, RHEL too.

VMware是最好的虚拟化公司之一。 特别是在基于桌面的虚拟化中,它提供的功能远远超过竞争对手。 VMware提供了一些工具来使虚拟化体验更加流畅。 这些工具称为VMware Tools。 在本教程中,我们将研究如何将这些工具安装到Debian,Ubuntu,Mint,Kali等Linux发行版中,但这也适用于Fedora,CentOS和RHEL。

将工具ISO挂载到VM (Mount Tool ISO into VM)

VMware tools file or iso is provided over internet or with the VMware products like Workstations, Esxi etc. In this example we will mount from a VMware Workstation from VM ->Update VM Tools menu like below.

VMware的工具文件或ISO是通过互联网或与VMware的产品,如工作站,ESXi的等等。在这个例子中,我们将从从VMware Workstation的安装提供VM > - Update VM Tools如下图所示菜单。

Mount Tool ISO into VM
Mount Tool ISO into VM
将工具ISO挂载到VM

将VMwareTools-10.1.6-5214329.tar.gz复制并解压缩到桌面 (Copy and Extract VMwareTools-10.1.6-5214329.tar.gz To Desktop)

We need to extract the tools which is in a tar.gz archive. So we will copy the files from cdrom to our desktop with the following command. Where cdrom is located at media

我们需要提取tar.gz归档文件中的工具。 因此,我们将使用以下命令将文件从cdrom复制到桌面。 cdrommedia

$ cp /media/ismail/VMware\ Tools/VMwareTools-10.1.6-5214329.tar.gz .

Then we will extract the archive with the tar command like below.

然后,我们将使用tar命令提取档案,如下所示。

$ tar xvf VMwareTools-10.1.6-5214329.tar.gz

Where all extracted files will be put into directory named vmware-tools-distrib

将所有提取的文件放在名为vmware-tools-distrib

安装Ifconfig (Install Ifconfig)

For Ubuntu, Debian, Mint and Kali distributions vmware tools have dependency for ifconfig command. ifconfig command is not installed for the recent versions of these distributions. We have to install ifconfig in order to complete vmware tools installation without problem.

对于Ubuntu,Debian,Mint和Kali发行版, vmware tools具有ifconfig命令的依赖性。 这些发行版的最新版本未安装ifconfig命令。 我们必须安装ifconfig才能完成vmware工具的安装,而不会出现问题。

$ sudo apt install net-tools

开始安装VMware Tools (Start VMware Tools Installation)

We will start vmware tools installation by executing vmware-install.pl with root privileges. Root privielges required because of command installation and kernel compilation. The kernel will be compiled with the vmware tools and drivers automatically by this installation procedure.

我们将通过使用root特权执行vmware-install.pl开始vmware工具安装。 由于安装了命令和进行了内核编译,因此需要root用户特权。 该安装过程将使用vmware工具和驱动程序自动编译内核。

$ sudo ./vmware-tools-distrib/vmware-install.pl
Start VMware Tools Installation
Start VMware Tools Installation
开始安装VMware Tools

After this step there will be a lot of questions about installation just push enter to accepts defaults.

完成此步骤后,将有很多关于安装的问题,只需按Enter即可接受默认设置。

  1. You have a version of VMware Tools installed. Continuing this install will
  2. first uninstall the currently installed version. Do you wish to continue?
  3. (yes/no) [yes]
  4. Uninstalling the tar installation of VMware Tools.
  5. Stopping services for VMware Tools
  6. The removal of VMware Tools 10.1.6 build-5214329 for Linux completed
  7. successfully.
  8. Installing VMware Tools.
  9. In which directory do you want to install the binary files?
  10. [/usr/bin]
  11. What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
  12. [/etc]
  13. What is the directory that contains the init scripts?
  14. [/etc/init.d]
  15. In which directory do you want to install the daemon files?
  16. [/usr/sbin]
  17. In which directory do you want to install the library files?
  18. [/usr/lib/vmware-tools]
  19. The path "/usr/lib/vmware-tools" does not exist currently. This program is
  20. going to create it, including needed parent directories. Is this what you want?
  21. [yes]
  22. In which directory do you want to install the documentation files?
  23. [/usr/share/doc/vmware-tools]
  24. The path "/usr/share/doc/vmware-tools" does not exist currently. This program
  25. is going to create it, including needed parent directories. Is this what you
  26. want? [yes]
  27. The installation of VMware Tools 10.1.6 build-5214329 for Linux completed
  28. successfully. You can decide to remove this software from your system at any
  29. time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
  30. Before running VMware Tools for the first time, you need to configure it by
  31. invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
  32. this program to invoke the command for you now? [yes]
  33. You have chosen to install VMware Tools on top of an open-vm-tools package.
  34. You will now be given the option to replace some commands provided by
  35. open-vm-tools. Please note that if you replace any commands at this time and
  36. later remove VMware Tools, it may be necessary to re-install the open-vm-tools.
  37. WARNING: It appears your system is missing the required /usr/bin/vmhgfs-fuse
  38. Initializing...
  39. Making sure services for VMware Tools are stopped.
  40. The module vmci has already been installed on this system by another installer
  41. or package and will not be modified by this installer.
  42. The module vsock has already been installed on this system by another installer
  43. or package and will not be modified by this installer.
  44. The module vmxnet3 has already been installed on this system by another
  45. installer or package and will not be modified by this installer.
  46. The module pvscsi has already been installed on this system by another
  47. installer or package and will not be modified by this installer.
  48. The module vmmemctl has already been installed on this system by another
  49. installer or package and will not be modified by this installer.
  50. The VMware Host-Guest Filesystem allows for shared folders between the host OS
  51. and the guest OS in a Fusion or Workstation virtual environment. Do you wish
  52. to enable this feature? [yes]
  53. The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
  54. upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)
  55. VMware automatic kernel modules enables automatic building and installation of
  56. VMware kernel modules at boot that are not already present. This feature can
  57. be enabled/disabled by re-running vmware-config-tools.pl.
  58. Would you like to enable VMware automatic kernel modules?
  59. [yes]
  60. Thinprint provides driver-free printing. Do you wish to enable this feature?
  61. [yes]
  62. Creating a new initrd boot image for the kernel.
  63. update-initramfs: Generating /boot/initrd.img-4.10.0-37-generic
LEARN MORE  How To Get Runnig VM Ip Address in Kvm/Libvirt
了解更多信息如何在Kvm / Libvirt中获取Runnig VM IP地址

翻译自: https://www.poftut.com/install-vmware-tools-to-the-linux-debian-ubuntu-kali-mint-fedora-centos-rhel-distributions/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/244148
推荐阅读
相关标签
  

闽ICP备14008679号