如何将VMware工具安装到Linux Debian、Ubuntu、Kali、Mint、Fedora、CentOS、RHEL发行版

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

enter键 发泄超大号解压回车键usb电脑办公键盘程序员解压神器抖音网红Big Enter午睡枕头解压发送键创意礼物
解压神器 网红同款 一键多用 午睡枕头 | 月销量1026件
优惠价19.8元
原价¥19.8

淘口令:

¥YQxxXJL8iar¥
 

将工具ISO装入VM

VMware工具文件或iso是通过internet提供的,或是随VMware产品(如工作站、Esxi等)提供的。在本例中,我们将从 VM -> Update VM Tools 菜单如下。

Mount Tool ISO into VM
将工具ISO装入VM

将VMwareTools-10.1.6-5214329.tar.gz复制并解压缩到桌面

我们需要提取tar.gz存档中的工具。因此,我们将使用以下命令将文件从cdrom复制到桌面。在哪里? cdrom 位于 media

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

然后我们将用 tar 命令如下。

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

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

安装Ifconfig

对于Ubuntu、Debian、Mint和Kali发行版 vmware tools 依赖于 ifconfig 命令。 ifconfig 没有为这些发行版的最新版本安装命令。我们必须安装 ifconfig 以便顺利完成vmware工具的安装。

$ sudo apt install net-tools

启动VMware工具安装

我们将通过执行 vmware-install.pl 具有root权限。由于命令安装和内核编译,需要根权限。此安装过程将使用vmware工具和驱动程序自动编译内核。

$ sudo ./vmware-tools-distrib/vmware-install.pl
Start VMware Tools Installation
启动VMware工具安装

在这一步之后,会有很多关于安装的问题,只需按回车键接受默认值。

You have a version of VMware Tools installed. Continuing this install willfirst uninstall the currently installed version. Do you wish to continue?(yes/no) [yes]Uninstalling the tar installation of VMware Tools.Stopping services for VMware ToolsThe removal of VMware Tools 10.1.6 build-5214329 for Linux completedsuccessfully.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 isgoing 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 programis going to create it, including needed parent directories. Is this what youwant? [yes]The installation of VMware Tools 10.1.6 build-5214329 for Linux completedsuccessfully. You can decide to remove this software from your system at anytime by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".Before running VMware Tools for the first time, you need to configure it byinvoking the following command: "/usr/bin/vmware-config-tools.pl". Do you wantthis program to invoke the command for you now? [yes]You have chosen to install VMware Tools on top of an open-vm-tools package.You will now be given the option to replace some commands provided byopen-vm-tools. Please note that if you replace any commands at this time andlater remove VMware Tools, it may be necessary to re-install the open-vm-tools.WARNING: It appears your system is missing the required /usr/bin/vmhgfs-fuseInitializing...Making sure services for VMware Tools are stopped.The module vmci has already been installed on this system by another installeror package and will not be modified by this installer.The module vsock has already been installed on this system by another installeror package and will not be modified by this installer.The module vmxnet3 has already been installed on this system by anotherinstaller or package and will not be modified by this installer.The module pvscsi has already been installed on this system by anotherinstaller or package and will not be modified by this installer.The module vmmemctl has already been installed on this system by anotherinstaller or package and will not be modified by this installer.The VMware Host-Guest Filesystem allows for shared folders between the host OSand the guest OS in a Fusion or Workstation virtual environment. Do you wishto enable this feature? [yes]The vmxnet driver is no longer supported on kernels 3.3 and greater. Pleaseupgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)VMware automatic kernel modules enables automatic building and installation ofVMware kernel modules at boot that are not already present. This feature canbe enabled/disabled by re-running vmware-config-tools.pl.Would you like to enable VMware automatic kernel modules?[yes]Thinprint provides driver-free printing. Do you wish to enable this feature?[yes]Creating a new initrd boot image for the kernel.update-initramfs: Generating /boot/initrd.img-4.10.0-37-generic

相关文章: 如何使用Linux dmesg命令打印系统日志?

© 版权声明
THE END
喜欢就支持一下吧,技术咨询可以联系QQ407933975
点赞0
分享