Linux および Windows 仮想マシンに VMware ツールをインストールする方法

Linux および Windows 仮想マシン用の VMware ツールをインストールするには、この記事に記載されているいくつかの簡単な手順を実行するだけです。

インストールされている仮想マシンに追加機能を追加する Oracle VirtualBox 拡張パックと同様に、VMware はVMware ツール

VMware が提供するさまざまなユーティリティのパックである VMware ツールをインストールすると、ゲスト オペレーティング システムのパフォーマンスが向上していることに気づくでしょう。低いビデオ解像度を改善します。
色深度が不十分、マウスの動きが制限される、ファイルのコピー アンド ペーストやドラッグ アンド ドロップができない、ネットワーク速度が正しく表示されない、音声が聞こえない、ゲスト OS のスナップショットと時間を同期する機能が提供されます。

VMware ツールのインストールのプロセスは、Windows10/8/7 などを含む、Ubuntu、Kali、Linux Mint、Debian、Centos、OpenSuse などの Linux の場合と同じです。

Linux および Windows 10/8/7 に VMware Tools をダウンロードしてインストールする

ステップ 1: VMware Workstation Player を実行する

まず、Linux および Windows 仮想マシンをインストールした VMware ワークステーション Payer を開きます。


ステップ 2: VirtualMachine を選択して起動する

VMware プレーヤーを開いた後、実行する仮想マシンと Vmware ツールをインストールする場所を選択します。 Windows 10/8/7 または任意の Linux ディストリビューションが可能です。


ステップ 3: [VMware Tools のインストール] オプションを見つけます。

仮想マシンが完全に起動したら、次のページに進みます。プレーヤーVMware プレーヤーのメニューにあるオプション。それをクリックしてから、管理->VMware ツールをインストールするオプション。


ステップ 4: Vmware Tools のダウンロード

[Install Vmware tools] オプションをクリックすると、Player がシステムを自動的に検出し、それぞれ Linux または Windows 用の Vmware ツールをダウンロードします。


ステップ 5: Linux への VMware Tools のインストール

Windows では、Vmware Tools のインストールVmware プレーヤーをダウンロードした後は、非常に簡単です。それを CD-ROM に自動的にマウントするだけで、ユーザーは他の通常のソフトウェアと同じようにインストールできます。ただし、これは GUI ベースの Linux オペレーティング システムでも同じです。

以下のスクリーンショットでわかるように、VMware Tools がマウントされ、画面上に CD-ROM アイコンが表示されます。

これをインストールするには、コマンド ターミナルを開き、以下のコマンドに従います。

root ユーザーとしてログインします。

su

Vmware ツール ディスクをマウントするためのディレクトリ cdrom を作成します。

mkdir /mnt/cdrom

次に、上で作成した CDROM ディレクトリに CDROM をマウントします。

mount /dev/cdrom /mnt/cdrom

ディレクトリの下にマウントされているファイルのリストを確認する

ls /mnt/cdrom

VMwareTools の圧縮ファイル名をコピーし、以下の copy コマンドで使用します。今回の場合と同様、これは VMwareTools-10.3.2-9925305.tar.gz でしたが、インストール中には異なる可能性があります。したがって、それをコピーして、以下のコマンドで貼り付けます。

ここでは、インストール プロセスのために VmwareTools を一時ディレクトリにコピーしています。

cp /mnt/cdrom/VMwareTools-10.3.2-9925305.tar.gz /tmp/

一時ディレクトリに切り替えます…

cd /tmp

ファイルをリストし、VMware ツールの圧縮ファイルを抽出します。

ls

tar -zxvf VMwareTools-10.3.2-9925305.tar.gz

次に、ディレクトリを、Vmware ツールによって抽出されたディレクトリに変更します。VMware ツールのディストリビューション

cd vmware-tools-distrib

走るパール以下で説明するスクリプト

./vmware-install.pl

押すか叩くか入力キーを数回押して、これらのツールのデフォルトのオプションを選択します…

上記のコマンドの出力

root@h2smedia:/tmp/vmware-tools-distrib# ./vmware-install.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] 

INPUT: [yes]  default

Uninstalling the tar installation of VMware Tools.
Stopping services for VMware Tools
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   VGAuthService:                                                      done
   VMware User Agent (vmware-user):                                    done
   Blocking file system:                                               done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done

cat: /tmp/_cafenv-appconfig_: No such file or directory
This program previously created the directory /etc/vmware-caf/pme/config, and 
was about to remove it. Since there are files in that directory that this 
program did not create, it will not be removed.

This program previously created the directory /etc/vmware-caf/pme, and was 
about to remove it. Since there are files in that directory that this program 
did not create, it will not be removed.

This program previously created the directory /etc/vmware-tools, and was about 
to remove it. Since there are files in that directory that this program did not
create, it will not be removed.

This program previously created the directory /etc/vmware-caf, and was about to
remove it. Since there are files in that directory that this program did not 
create, it will not be removed.

File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.0.

The removal of VMware Tools 10.3.2 build-9925305 for Linux completed 
successfully.
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] 

INPUT: [/etc]  default
What is the directory that contains the init scripts? 
[/etc/init.d] 
INPUT: [/etc/init.d]  default

In which directory do you want to install the daemon files? 
[/usr/sbin] 

INPUT: [/usr/sbin]  default

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] 

INPUT: [/usr/lib/vmware-tools]  default

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] 

INPUT: [yes]  default

In which directory do you want to install the common agent library files? 
[/usr/lib] 
INPUT: [/usr/lib]  default

In which directory do you want to install the common agent transient files? 
[/var/lib] 

INPUT: [/var/lib]  default

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

INPUT: [/usr/share/doc/vmware-tools]  default

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] 

INPUT: [yes]  default

The installation of VMware Tools 10.3.2 build-9925305 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] 

INPUT: [yes]  default

Initializing...

Making sure services for VMware Tools are stopped.

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   VGAuthService:                                                      done
   VMware User Agent (vmware-user):                                    done
   Blocking file system:                                               done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done

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] 

INPUT: [yes]  default

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] 

INPUT: [yes]  default


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

INPUT: [yes]  default

Disabling timer-based audio scheduling in pulseaudio.

Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 
if you want to enable Common Agent (caf). [yes] 

INPUT: [yes]  default

Do you want to enable Common Agent (caf)? [no] 

INPUT: [no]  default

Detected X server version 1.20.0

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-4.17.0-kali1-amd64
cryptsetup: WARNING: Honoring CRYPTSETUP=[y|n] will deprecated in the future. 
    Please uninstall the 'cryptsetup-initramfs' package if you don't want the 
    cryptsetup initramfs integration.

NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and 
      /etc/vmware-tools/GuestProxyData/server/cert.pem already exist.
      They are not generated again. To regenerate them by force,
      use the "vmware-guestproxycerttool -g -f" command.

The configuration of VMware Tools 10.3.2 build-9925305 for Linux for this 
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take 
effect.

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
3. Restart your X session.

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /media/cdrom0. Ejecting device /dev/sr0 ...

Found VMware Tools CDROM mounted at /mnt/cdr/ Ejecting device /dev/sr0 ...

2 番目の方法: VMware ツールを直接ダウンロードする

Vmware Player のインターフェースからツールをダウンロードできない場合;次に、Vmware の公式 Web サイトにアクセスし、Vmware ツールを直接ダウンロードしてインストールします。

ここにリンクがありますのために ダウンロード

このようにして、Linux または Windows に Vmware ツールをインストールできます。

その他の役立つリソース: